Re: different smsbox log for different SMSC connection

2009-09-16 Thread Benaiad
Hi,

use log-file and log-level in each smsc group.

Benaiad

On Wed, Sep 16, 2009 at 7:42 AM, khurram jaffery jaf...@gmail.com wrote:

 Hi all

 I have 5 SMSC connection in my config file. How can I define different
 smsbox.log for each SMSC's connection? Can I associate 5 different smsbox
 group per SMSC Connection to have a different log for each SMSC connection?
 If yes, how?

 thanks





Re: help with receiving message

2009-09-16 Thread Nikos Balkanas
OK. This is a bit clearer. You are pushing an sms through kannel's web 
interface to a recipient. He reads it off his mobile. He cannot reply to that, 
unless he sends another sms manually.

Maybe you can do something more dynamic with wap. There you can push a PPG 
message which contains a url, which the user can respond to (the url). The 
response will be in the web server and the url.

Finally, why don't you keep things simple? Just send from you mobile an sms to 
the receiver, and he can reply back if he wants to. You don't need kannel for 
that.

BR,
Nikos


- Original Message - 
  From: RogerCong 
  To: nbalka...@gmail.com 
  Cc: users@kannel.org 
  Sent: Wednesday, September 16, 2009 6:59 AM
  Subject: RE: help with receiving message


  Sorry for the mis-understanding.  what I was trying to say is that: we are 
trying to use this gateway web interface to send out internal message out to 
our co-worker(which is working), what happen if they receiver replys a message 
back to the system, is this replied message stay in Kannel, if so, how can we 
read it?  we are not trying to read other people's message whom use this system.
   

--
  From: nbalka...@gmail.com
  To: r_c...@hotmail.com
  CC: users@kannel.org
  Subject: Re: help with receiving message
  Date: Wed, 16 Sep 2009 06:47:15 +0300


  OK, there seems to be a language barrier here. For people to help, they need 
first to understand you.

  1) When people reply a message back to kannel

  Sorry, i don't get it. People never reply anything to kannel. It is a 
gateway. People send a keyword and expect a (text, ringtone, logo) back. They 
never actually reply to the received object.

  is my get-url will be triggered and automatically reply a message back to 
the sender again?

  Yes. That's exactly what happens with sms-service. You can even select a 
specific section of the returned object as the returned text. I.e. 
  ALCOA: $12.32 (stock quote)

  Read the User guide on how to configure sms-service.

  2) You don't need to do anything. Kannel has a parser and will do it 
automatically for you. If you actually want to eavesdrop on sms traffic 
(unethical), you can find everything you need in the access logs.

  BR,
  Nikos
- Original Message - 
From: RogerCong 
To: nbalka...@gmail.com ; mi...@rattler.kiev.ua 
Cc: users@kannel.org 
Sent: Wednesday, September 16, 2009 6:06 AM
Subject: RE: help with receiving message


Ok, let me clarify this, when people reply a message back to kannel, kannel 
did receive it as I saw it on log, is my get-url will be triggered and 
automaticlly reply a message back to the sender again (i.e. test.php)?  Second 
question, for the contents of reply the message, do I need a script to read it 
from Kannel or do I need a script to listen the serial port and capture it when 
it is coming to the Kannel? 

roger 
 


From: nbalka...@gmail.com
To: mi...@rattler.kiev.ua; r_c...@hotmail.com
CC: users@kannel.org
Subject: Re: help with receiving message
Date: Tue, 15 Sep 2009 09:00:06 +0300


Hi,

You are correct, but no biggie. If the url reponds, response is returned, 
and text is ignored.

BR,
Nikos
  - Original Message - 
  From: Michael Bochkaryov 
  To: rcong 
  Cc: users@kannel.org 
  Sent: Tuesday, September 15, 2009 7:10 AM
  Subject: Re: help with receiving message


  Hi!

  Do not mix get-url and text in sms-service group.
  If you want to forward MO message to HTTP service, you need only 
get-url.



  2009/9/15 rcong r_c...@hotmail.com

  [skip] 

group = sms-service
keyword = default
catch-all = yes
get-url =
http://192.168.10.173/test.php?smsvendor=kannelfrom=%Pto=%ptext=%b;
assume-plain-text = true
max-messages = 3
text = No service specified


  In this section you need to remove text parameter.

  -- 
  Regards,
  Michael Bochkaryov
  www.rattler.kiev.ua




�ΉΣΓΠΒ»΄� Windows Live Messenger 
ΗαΛΙ½»Αχ��Ή²�ν£΅ ΑΆ���ΒΤΨ£΅ 


--
  MessengerδΏ�ζ�¤η›Ύ2.0οΌ�更安全ε�―ι� η�„Messengerθ��天οΌ� 
��就下载� 

Re: help with receiving message

2009-09-16 Thread Henri Hovi
Hi,

or if the Kannel is dedicated for this service, You can define service
where the message is routed via HTTP when user replies for Kannel.

Let's assume that Your situation is something like a dispatcher who
sends SMS via WEB Interface to the worker/s on a field. Later this
worker needs to reply for the dispatcher ? In this case, You could
route the reply message from Kannel back to the web-server and in
there, store it to a database.

Then the WEB-Page where the message was originally sent out, could
implement a AJAX-based module which polls the database for changes and
displays the reply for the dispatcher. In this way You can connect the
message sent out and the reply in a common web-interface.

Hope this helps,

--
Henri Hovi
http://www.patidure.com
http://patidure.blogspot.com













2009/9/16 Nikos Balkanas nbalka...@gmail.com:
 OK. This is a bit clearer. You are pushing an sms through kannel's web
 interface to a recipient. He reads it off his mobile. He cannot reply to
 that, unless he sends another sms manually.

 Maybe you can do something more dynamic with wap. There you can push a PPG
 message which contains a url, which the user can respond to (the url). The
 response will be in the web server and the url.

 Finally, why don't you keep things simple? Just send from you mobile an sms
 to the receiver, and he can reply back if he wants to. You don't need kannel
 for that.

 BR,
 Nikos


 - Original Message -

 From: RogerCong
 To: nbalka...@gmail.com
 Cc: users@kannel.org
 Sent: Wednesday, September 16, 2009 6:59 AM
 Subject: RE: help with receiving message
 Sorry for the mis-understanding.  what I was trying to say is that: we are
 trying to use this gateway web interface to send out internal message out to
 our co-worker(which is working), what happen if they receiver replys a
 message back to the system, is this replied message stay in Kannel, if so,
 how can we read it?  we are not trying to read other people's message whom
 use this system.

 
 From: nbalka...@gmail.com
 To: r_c...@hotmail.com
 CC: users@kannel.org
 Subject: Re: help with receiving message
 Date: Wed, 16 Sep 2009 06:47:15 +0300

 OK, there seems to be a language barrier here. For people to help, they need
 first to understand you.

 1) When people reply a message back to kannel

 Sorry, i don't get it. People never reply anything to kannel. It is a
 gateway. People send a keyword and expect a (text, ringtone, logo) back.
 They never actually reply to the received object.

 is my get-url will be triggered and automatically reply a message back to
 the sender again?

 Yes. That's exactly what happens with sms-service. You can even select a
 specific section of the returned object as the returned text. I.e.
 ALCOA: $12.32 (stock quote)

 Read the User guide on how to configure sms-service.

 2) You don't need to do anything. Kannel has a parser and will do it
 automatically for you. If you actually want to eavesdrop on sms traffic
 (unethical), you can find everything you need in the access logs.

 BR,
 Nikos

 - Original Message -
 From: RogerCong
 To: nbalka...@gmail.com ; mi...@rattler.kiev.ua
 Cc: users@kannel.org
 Sent: Wednesday, September 16, 2009 6:06 AM
 Subject: RE: help with receiving message
 Ok, let me clarify this, when people reply a message back to kannel, kannel
 did receive it as I saw it on log, is my get-url will be triggered and
 automaticlly reply a message back to the sender again (i.e. test.php)?
  Second question, for the contents of reply the message, do I need a script
 to read it from Kannel or do I need a script to listen the serial port and
 capture it when it is coming to the Kannel?

 roger

 
 From: nbalka...@gmail.com
 To: mi...@rattler.kiev.ua; r_c...@hotmail.com
 CC: users@kannel.org
 Subject: Re: help with receiving message
 Date: Tue, 15 Sep 2009 09:00:06 +0300

 Hi,

 You are correct, but no biggie. If the url reponds, response is returned,
 and text is ignored.

 BR,
 Nikos

 - Original Message -
 From: Michael Bochkaryov
 To: rcong
 Cc: users@kannel.org
 Sent: Tuesday, September 15, 2009 7:10 AM
 Subject: Re: help with receiving message
 Hi!

 Do not mix get-url and text in sms-service group.
 If you want to forward MO message to HTTP service, you need only get-url.


 2009/9/15 rcong r_c...@hotmail.com
 [skip]

 group = sms-service
 keyword = default
 catch-all = yes
 get-url =
 http://192.168.10.173/test.php?smsvendor=kannelfrom=%Pto=%ptext=%b;
 assume-plain-text = true
 max-messages = 3
 text = No service specified

 In this section you need to remove text parameter.

 --
 Regards,
 Michael Bochkaryov
 www.rattler.kiev.ua

 
 Ξ Ξ‰Ξ£Ξ“Ξ Ξ’ο£ΊΒ»Ξ„Ο Windows Live Messenger ΗαΛΙ½»ΑχΠΠΉ²Πν£΅
 ΑΆΠΠΠΒΤΨ£΅

 
 MessengerδΏ ζ ¤η›Ύ2.0οΌ ζ›΄ε®‰ε…¨ε ―ι  η „Messengerθ ε¤©οΌ η °ε ¨ε°±δΈ‹θ½½οΌ



-- 
Henri Hovi

Problem matching DLR to MT (destination mismatch)

2009-09-16 Thread Konstantin Vayner
Hello, users!

I have a problem matching a DLR to the original message.
Here's what happens: I send a message to an smsc with international msisdn
(+97250...), and get back DLR for local number (050... )
Is there anything i can do on my side?

Here's transaction dump from the log:

2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP[smsc_pelephone_mt]: Manually
forced source addr ton = 1, source add npi = 1
2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP[smsc_pelephone_mt]: Sending PDU:
2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP PDU 0x81bda20 dump:
2009-09-16 10:30:46 [4977] [6] DEBUG:   type_name: submit_sm
2009-09-16 10:30:46 [4977] [6] DEBUG:   command_id: 4 = 0x0004
2009-09-16 10:30:46 [4977] [6] DEBUG:   command_status: 0 = 0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   sequence_number: 67 = 0x0043
2009-09-16 10:30:46 [4977] [6] DEBUG:   service_type: NULL
2009-09-16 10:30:46 [4977] [6] DEBUG:   source_addr_ton: 1 = 0x0001
2009-09-16 10:30:46 [4977] [6] DEBUG:   source_addr_npi: 1 = 0x0001
2009-09-16 10:30:46 [4977] [6] DEBUG:   source_addr: 1234
2009-09-16 10:30:46 [4977] [6] DEBUG:   dest_addr_ton: 1 = 0x0001
2009-09-16 10:30:46 [4977] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2009-09-16 10:30:46 [4977] [6] DEBUG:   destination_addr: *972507867645*
2009-09-16 10:30:46 [4977] [6] DEBUG:   esm_class: 3 = 0x0003
2009-09-16 10:30:46 [4977] [6] DEBUG:   protocol_id: 0 = 0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   priority_flag: 0 = 0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   schedule_delivery_time: NULL
2009-09-16 10:30:46 [4977] [6] DEBUG:   validity_period: NULL
2009-09-16 10:30:46 [4977] [6] DEBUG:   registered_delivery: 1 = 0x0001
2009-09-16 10:30:46 [4977] [6] DEBUG:   replace_if_present_flag: 0 =
0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   data_coding: 0 = 0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   sm_default_msg_id: 0 = 0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   sm_length: 4 = 0x0004
2009-09-16 10:30:46 [4977] [6] DEBUG:   short_message: test
2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP PDU dump ends.
2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP[smsc_pelephone_mt]: Got PDU:
2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP PDU 0x81bda20 dump:
2009-09-16 10:30:46 [4977] [6] DEBUG:   type_name: submit_sm_resp
2009-09-16 10:30:46 [4977] [6] DEBUG:   command_id: 2147483652 = 0x8004
2009-09-16 10:30:46 [4977] [6] DEBUG:   command_status: 0 = 0x
2009-09-16 10:30:46 [4977] [6] DEBUG:   sequence_number: 67 = 0x0043
2009-09-16 10:30:46 [4977] [6] DEBUG:   message_id: FF0208008043
2009-09-16 10:30:46 [4977] [6] DEBUG: SMPP PDU dump ends.
2009-09-16 10:30:46 [4977] [6] DEBUG: DLR[internal]: Adding DLR
smsc=smsc_pelephone_mt, ts=FF0208008043, src=1234, *dst=+972507867645*,
mask=31, boxc=
2009-09-16 10:30:46 [4977] [6] DEBUG: SMSC[smsc_pelephone_mt]: creating DLR
message
2009-09-16 10:30:46 [4977] [6] DEBUG: SMSC[smsc_pelephone_mt]: DLR =
http://127.0.0.1/imsc/interfaces/kannel_http/dlr.php?msg_id=1287dlr=%dreason=%A

...and then comes the DLR...


2009-09-16 10:30:49 [4977] [6] DEBUG: SMPP[smsc_pelephone_mt]: Got PDU:
2009-09-16 10:30:49 [4977] [6] DEBUG: SMPP PDU 0x81c dump:
2009-09-16 10:30:49 [4977] [6] DEBUG:   type_name: deliver_sm
2009-09-16 10:30:49 [4977] [6] DEBUG:   command_id: 5 = 0x0005
2009-09-16 10:30:49 [4977] [6] DEBUG:   command_status: 0 = 0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   sequence_number: 64 = 0x0040
2009-09-16 10:30:49 [4977] [6] DEBUG:   service_type: NULL
2009-09-16 10:30:49 [4977] [6] DEBUG:   source_addr_ton: 1 = 0x0001
2009-09-16 10:30:49 [4977] [6] DEBUG:   source_addr_npi: 1 = 0x0001
2009-09-16 10:30:49 [4977] [6] DEBUG:   source_addr: *0507867645*
2009-09-16 10:30:49 [4977] [6] DEBUG:   dest_addr_ton: 1 = 0x0001
2009-09-16 10:30:49 [4977] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
2009-09-16 10:30:49 [4977] [6] DEBUG:   destination_addr: 1234
2009-09-16 10:30:49 [4977] [6] DEBUG:   esm_class: 4 = 0x0004
2009-09-16 10:30:49 [4977] [6] DEBUG:   protocol_id: 0 = 0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   priority_flag: 0 = 0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   schedule_delivery_time: NULL
2009-09-16 10:30:49 [4977] [6] DEBUG:   validity_period: NULL
2009-09-16 10:30:49 [4977] [6] DEBUG:   registered_delivery: 0 = 0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   replace_if_present_flag: 0 =
0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   data_coding: 0 = 0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   sm_default_msg_id: 0 = 0x
2009-09-16 10:30:49 [4977] [6] DEBUG:   sm_length: 111 = 0x006f
2009-09-16 10:30:49 [4977] [6] DEBUG:   short_message:
2009-09-16 10:30:49 [4977] [6] DEBUG:Octet string at 0x81c3fa0:
2009-09-16 10:30:49 [4977] [6] DEBUG:  len:  111
2009-09-16 10:30:49 [4977] [6] DEBUG:  size: 112
2009-09-16 10:30:49 [4977] [6] DEBUG:  immutable: 0
2009-09-16 10:30:49 [4977] [6] DEBUG:  data: 69 64 3a 32 38 30 

RE: HTTP SMSC with the latest CVS

2009-09-16 Thread Franck LAMASUTA
Willy,

Are the MO received by bearerbox and not processed or are they not received at 
all?
Did you get anything interesting in the log files?

Franck


 -Original Message-
 From: devel-boun...@kannel.org
 [mailto:devel-boun...@kannel.org] On Behalf Of sangprabv
 Sent: Wednesday, September 16, 2009 2:29 AM
 To: users@kannel.org;Kannel Devel
 Subject: HTTP SMSC with the latest CVS

 I found that using the latest CVS cause not all MO received and
 processed. Is it a bug? Because if I use CVS-20080727 all MO received
 and processed 100%. I simulated generic and Kannel HTTP SMSC
 all returns
 the same problem. TIA



 Willy








Re: Throttling

2009-09-16 Thread Henri Hovi
Check the page: http://www.kannel.org/download.shtml


--
Henri Hovi
http://www.patidure.com
http://patidure.blogspot.com


On Wed, Sep 16, 2009 at 11:48 AM, sapna singh sapnasingh...@gmail.com wrote:
 Could you plz tell me what is cvs?

 Regards
 Sapna


 2009/9/15 Abdulraheem Obaisi aopa...@hotmail.com

 Hi,
 I think you should try the latest CVS ,it has a much improved throughput
 handling.

 ...
 Best Regards
 Abdulraheem A Obaisi
 Software Engineer




 
 Date: Mon, 14 Sep 2009 19:07:47 +0530
 Subject: Re: Throttling
 From: sapnasingh...@gmail.com
 To: nbalka...@gmail.com; users@kannel.org; users-requ...@kannel.org

 Can you help me to resolve Throttling error.
 --
 Regards
 Sapna




 2009/9/13 Nikos Balkanas nbalka...@gmail.com

 Please address the list, so that others may benefit. Don't send me
 personnals. I am not your unpaid personnal consultant.

 Nikos

 - Original Message -
 From: sapna singh
 To: nbalka...@gmail.com
 Sent: Sunday, September 13, 2009 5:25 PM
 Subject: Throttling

 Can you help me to resolve Throttling error.
 --
 Regards
 Sapna



 --
 Regards
 Sapna

 
 See all the ways you can stay connected to friends and family


 --
 Regards
 Sapna




-- 
Henri Hovi
http://www.patidure.com



RE: HTTP SMSC with the latest CVS

2009-09-16 Thread sangprabv
Bearerbox didn't receive all. I tried to send 1000 MO but not all
received. It doesn't happen with 20080727 cvs version. And also this
morning I tried 1.4.3, it seems received all 1000 MO. Does fieldmap
patch cause this problem?



Willy


On Wed, 2009-09-16 at 10:41 +0200, Franck LAMASUTA wrote:
 Willy,
 
 Are the MO received by bearerbox and not processed or are they not received 
 at all?
 Did you get anything interesting in the log files?
 
 Franck
  
 
  -Original Message-
  From: devel-boun...@kannel.org 
  [mailto:devel-boun...@kannel.org] On Behalf Of sangprabv
  Sent: Wednesday, September 16, 2009 2:29 AM
  To: users@kannel.org;Kannel Devel
  Subject: HTTP SMSC with the latest CVS
  
  I found that using the latest CVS cause not all MO received and
  processed. Is it a bug? Because if I use CVS-20080727 all MO received
  and processed 100%. I simulated generic and Kannel HTTP SMSC 
  all returns
  the same problem. TIA
  
  
  
  Willy
  
  
  
  
 
 




Re: help with receiving message

2009-09-16 Thread rcong

Yes, you are right, that's what we are trying to do. Does anyone have simple
script that able to capture the incoming message from serial port?  

roger

rcong wrote:
 
 Hi,  
 
 I've read user manual and past mail reply, but maybe I am stupid, I really
 dont get it.  Do I need write a own script to receive reply message from
 Kannel?  Can I read in-coming message from http?  I am able to send sms,
 but when people reply it, SMS shows received, but where/how can I read the
 reply message?  
 
 Thanks for your help.
 
 roger
 enclos is kannel.conf
 
 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 #status-password = foo
 #admin-deny-ip = 
 #admin-allow-ip = 
 #log-file = /tmp/kannel.log
 #log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #unified-prefix = +358,00358,0;+,00
 #access-log = /tmp/access.log
 #store-file = kannel.store
 #ssl-server-cert-file = cert.pem
 #ssl-server-key-file = key.pem
 #ssl-certkey-file = mycertandprivkeyfile.pem
 
 #-
 # SMSC CONNECTIONS
 #
 # SMSC connections are created in bearerbox and they handle SMSC specific
 # protocol and message relying. You need these to actually receive and
 send
 # messages to handset, but can use GSM modems as virtual SMSCs
 
 # This is a fake smsc connection, _only_ used to test the system and
 services.
 # It really cannot relay messages to actual handsets!
 
 group = smsc
 smsc = at
 modemtype = auto
 device=/dev/ttyS0
 my-number = +8615810365155
 #smsc-id = FAKE
 alt-charset = GB2312
 #port = 12000
 connect-allow-ip = 127.0.0.1
 
 #-
 # SMSBOX SETUP
 #
 # Smsbox(es) do higher-level SMS handling after they have been received
 from
 # SMS centers by bearerbox, or before they are given to bearerbox for
 delivery
 
 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013
 #sendsms-chars = 0123456789 +-
 #log-file = /tmp/smsbox.log
 #log-level = 0
 #access-log = /tmp/access.log
 
 #-
 # SEND-SMS USERS
 #
 # These users are used when Kannel smsbox sendsms interface is used to
 # send PUSH sms messages, i.e. calling URL like
 #
 http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar...
 
 group = sendsms-user
 username = tester
 password = foobar
 #user-deny-ip = 
 #user-allow-ip = 
 
 #-
 # SERVICES
 #
 # These are 'responses' to sms PULL messages, i.e. messages arriving from
 # handsets. The response is based on message content. Only one sms-service
 is
 # applied, using the first one to match.
 
 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!
 
 # There should be always a 'default' service. This service is used when no
 # other 'sms-service' is applied.
 
 group = sms-service
 keyword = www
 get-url = http://%S;
 
 group = sms-service
 keyword = relay
 #get-url =
 http://localhost:13130/sms?user=kannelpass=rL4yfrom=%pto=%Ptext=%r;
 max-messages = 0
 
 group = sms-service
 keyword = default
 catch-all = yes
 get-url =
 http://192.168.10.173/test.php?smsvendor=kannelfrom=%Pto=%ptext=%b;
 assume-plain-text = true
 max-messages = 3
 text = No service specified
 
 include = /usr/local/kannel/modems.conf
 
 

-- 
View this message in context: 
http://www.nabble.com/help-with-receiving-message-tp25419665p25468549.html
Sent from the Kannel - User mailing list archive at Nabble.com.




how can i remove kannel which was compiled from source

2009-09-16 Thread freeburn
i installed kannel from debian repositories. so i want to remove a
previous installation which was compiled from the source. it was
installed in a different directory(/usr/local/kannel). so when i issue 
$make clean command, the installation in the /usr/local/kannel is not
removed.

how can i solve this?




Re: help with receiving message

2009-09-16 Thread Henri Hovi
Hi,

Kannel does that for You if it's properly configured. But what You
need to do, is to configure SMS-service for Kannel to send the
incoming SMS'es to the application over HTTP.
http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN3309

The application You can write with any language You like. LAMP
(Apache,PHP,MySQL) is good choice.


--
Henri Hovi
http://www.patidure.com
http://patidure.blogspot.com




On Wed, Sep 16, 2009 at 12:02 PM, rcong r_c...@hotmail.com wrote:

 Yes, you are right, that's what we are trying to do. Does anyone have simple
 script that able to capture the incoming message from serial port?

 roger

 rcong wrote:

 Hi,

 I've read user manual and past mail reply, but maybe I am stupid, I really
 dont get it.  Do I need write a own script to receive reply message from
 Kannel?  Can I read in-coming message from http?  I am able to send sms,
 but when people reply it, SMS shows received, but where/how can I read the
 reply message?

 Thanks for your help.

 roger
 enclos is kannel.conf

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 #status-password = foo
 #admin-deny-ip = 
 #admin-allow-ip = 
 #log-file = /tmp/kannel.log
 #log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #unified-prefix = +358,00358,0;+,00
 #access-log = /tmp/access.log
 #store-file = kannel.store
 #ssl-server-cert-file = cert.pem
 #ssl-server-key-file = key.pem
 #ssl-certkey-file = mycertandprivkeyfile.pem

 #-
 # SMSC CONNECTIONS
 #
 # SMSC connections are created in bearerbox and they handle SMSC specific
 # protocol and message relying. You need these to actually receive and
 send
 # messages to handset, but can use GSM modems as virtual SMSCs

 # This is a fake smsc connection, _only_ used to test the system and
 services.
 # It really cannot relay messages to actual handsets!

 group = smsc
 smsc = at
 modemtype = auto
 device=/dev/ttyS0
 my-number = +8615810365155
 #smsc-id = FAKE
 alt-charset = GB2312
 #port = 12000
 connect-allow-ip = 127.0.0.1

 #-
 # SMSBOX SETUP
 #
 # Smsbox(es) do higher-level SMS handling after they have been received
 from
 # SMS centers by bearerbox, or before they are given to bearerbox for
 delivery

 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013
 #sendsms-chars = 0123456789 +-
 #log-file = /tmp/smsbox.log
 #log-level = 0
 #access-log = /tmp/access.log

 #-
 # SEND-SMS USERS
 #
 # These users are used when Kannel smsbox sendsms interface is used to
 # send PUSH sms messages, i.e. calling URL like
 #
 http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar...

 group = sendsms-user
 username = tester
 password = foobar
 #user-deny-ip = 
 #user-allow-ip = 

 #-
 # SERVICES
 #
 # These are 'responses' to sms PULL messages, i.e. messages arriving from
 # handsets. The response is based on message content. Only one sms-service
 is
 # applied, using the first one to match.

 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!

 # There should be always a 'default' service. This service is used when no
 # other 'sms-service' is applied.

 group = sms-service
 keyword = www
 get-url = http://%S;

 group = sms-service
 keyword = relay
 #get-url =
 http://localhost:13130/sms?user=kannelpass=rL4yfrom=%pto=%Ptext=%r;
 max-messages = 0

 group = sms-service
 keyword = default
 catch-all = yes
 get-url =
 http://192.168.10.173/test.php?smsvendor=kannelfrom=%Pto=%ptext=%b;
 assume-plain-text = true
 max-messages = 3
 text = No service specified

 include = /usr/local/kannel/modems.conf



 --
 View this message in context: 
 http://www.nabble.com/help-with-receiving-message-tp25419665p25468549.html
 Sent from the Kannel - User mailing list archive at Nabble.com.






-- 
Henri Hovi
http://www.patidure.com



Re: how can i remove kannel which was compiled from source

2009-09-16 Thread seikath
rm -fr /usr/local/kannel

and you may ask debian lists ?


freeburn wrote:
 i installed kannel from debian repositories. so i want to remove a
 previous installation which was compiled from the source. it was
 installed in a different directory(/usr/local/kannel). so when i issue 
 $make clean command, the installation in the /usr/local/kannel is not
 removed.
 
 how can i solve this?
 
 
 
 



hide phone number

2009-09-16 Thread Elvis Jorge
Hello all..

There´s some way to send SMS without the phone number, I want to send the SMS 
with a nickname or hidden.

Thanks

Elvis Jorge
Cell: 809-706-8824
ETGTEL DOMINICANA


Trouble setting up GSM Modem

2009-09-16 Thread Wilhelm Ellmann | Fontera

Hi,

I seem be having a trouble setting up my GSM modem to work correctly. My 
goal is not to send messages through the modem I only want receive 
messages and push them on to my script to be processed.


There are two problems that I am having. The first is that once I have 
received a message it looks like to me that the server tries to 
acknowledge that it has received the message but runs into a error. This 
causes a problem as the message is stored in the store file and the 
server continually tries to re-acknowledge.


2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command 
status: 1
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- 
0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603

2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ^Z
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- 
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ERROR
2009-09-16 15:19:02 [22753] [6] ERROR: AT2[EDGARSLONG]: Generic error: ERROR
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command 
status: -1
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message 
(0x8f35200 vs 0x8f35200)

2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message 
(0x8f35200 vs 0x8f35200)

2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: gwlist_len = 1

From what I can find on the internet is that it is a problem with my 
init-string in modems config file. Is this correct and how can I find 
the correct values that is supposed to be entered in here.



My second problem that I am having on receiving the message the sms box 
is telling me this ( the snippet below ) and not forwarding the message 
on. I am stumped as I am using a similar config on my other services


2009-09-16 15:18:55 [22758] [4] DEBUG: match found: ^[ ]*()[ ]*
2009-09-16 15:18:55 [22758] [4] WARNING: No translation found for This 
is a good test from +2782*87 to 2773*30

2009-09-16 15:18:55 [22758] [4] ERROR: request failed
2009-09-16 15:18:55 [22758] [4] DEBUG: message length 14, sending 1 messages
2009-09-16 15:18:55 [22758] [0] DEBUG: Got ACK (0) of 
455e08bb-6081-4820-b600-5fcbe6a8aa90
2009-09-16 15:18:55 [22758] [0] DEBUG: No client - multi-send or ACK to 
pull-reply


I have attached my config file and logs and would appreciate any help.

--

Kind Regards,

Wilhelm Ellmann

.
2009-09-16 15:18:47 [22758] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.
2009-09-16 15:18:47 [22758] [0] INFO: Logging accesses to 
'/var/log/kannel/smsbox.access'.
2009-09-16 15:18:47 [22758] [0] INFO: Started access logfile 
`/var/log/kannel/smsbox.access'.
2009-09-16 15:18:47 [22758] [0] INFO: HTTP: Opening server at port 13013.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Set up send sms service at port 13013
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: 
--
2009-09-16 15:18:47 [22758] [0] DEBUG: Kannel smsbox version 1.4.2 starting
2009-09-16 15:18:47 [22758] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to 
pid 22758.
2009-09-16 15:18:47 [22758] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Connected to bearerbox at 127.0.0.1 port 
13001.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
2009-09-16 15:18:47 [22758] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps to pid 22758.
2009-09-16 15:18:55 [22758] [4] DEBUG: match found: ^[ ]*()[ ]*
2009-09-16 15:18:55 [22758] [4] WARNING: No translation found for This is a 
good test from +2782*87 to 2773*30
2009-09-16 15:18:55 [22758] [4] ERROR: request failed
2009-09-16 15:18:55 [22758] [4] DEBUG: message length 14, sending 1 messages
2009-09-16 15:18:55 [22758] [0] DEBUG: Got ACK (0) of 
455e08bb-6081-4820-b600-5fcbe6a8aa90
2009-09-16 15:18:55 

Re: hide phone number

2009-09-16 Thread Jovan Kostovski
On Wed, Sep 16, 2009 at 4:50 PM, Elvis Jorge elvis.jo...@etgtel.com wrote:
 Hello all..

 There´s some way to send SMS without the phone number, I want to send the
 SMS with a nickname or hidden.

Yes, there is a way to send alphanumeric senders instead of the phone number.

If you have SMPP connection to the SMSC, but you have to tell your
service provider (mobile operator) to let you send messages with
alphanumeric sender.
This way you'll be able to set the sender at your own will.

If you are using GSM modem, not in general, but once again, if you can ask your
service provider to configure a translation of your phone number to
some alphanumeric text.
This means that you will send the messages with the phone number, and
the sender will
be translated in the provider's SMSC.

HTH, Jovan



dlr storage with mysql

2009-09-16 Thread freeburn
if i use fakesmsc does the mysql database gets any entry in the
specified fields? because my kannel runs without any warning and in the
log i can see that connection with mysql is established.

but when i looked through the database i havent seen any entry. 

is it ok? or there is a problem.




Re: dlr storage with mysql

2009-09-16 Thread Alejandro Guerrieri
Dlr records are only kept on the database while the messages are in
transit. Once a message gets accepted/rejected (any final status) the
record is removed from the DB.

Hope it help,

Alejandro
On Wed, Sep 16, 2009 at 8:41 PM, freeburn hoss...@finder-lbs.com wrote:

 if i use fakesmsc does the mysql database gets any entry in the
 specified fields? because my kannel runs without any warning and in the
 log i can see that connection with mysql is established.

 but when i looked through the database i havent seen any entry.

 is it ok? or there is a problem.





Re: Trouble setting up GSM Modem

2009-09-16 Thread Nikos Balkanas

Hi,

There seems to be a problem right after you send the PDU (TPDU 27 octets):

0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603

Does anyone know how to read it?

BR,
Nikos


- Original Message - 
From: Wilhelm Ellmann | Fontera wilh...@fontera.com

To: users@kannel.org
Sent: Wednesday, September 16, 2009 5:56 PM
Subject: Trouble setting up GSM Modem



Hi,

I seem be having a trouble setting up my GSM modem to work correctly. My
goal is not to send messages through the modem I only want receive
messages and push them on to my script to be processed.

There are two problems that I am having. The first is that once I have
received a message it looks like to me that the server tries to
acknowledge that it has received the message but runs into a error. This
causes a problem as the message is stored in the store file and the
server continually tries to re-acknowledge.

2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command
status: 1
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: --
0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ^Z
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- 
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ERROR
2009-09-16 15:19:02 [22753] [6] ERROR: AT2[EDGARSLONG]: Generic error: 
ERROR

2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command
status: -1
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message
(0x8f35200 vs 0x8f35200)
2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message
(0x8f35200 vs 0x8f35200)
2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: time to sleep 30.00 
secs.

2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: gwlist_len = 1

From what I can find on the internet is that it is a problem with my
init-string in modems config file. Is this correct and how can I find
the correct values that is supposed to be entered in here.


My second problem that I am having on receiving the message the sms box
is telling me this ( the snippet below ) and not forwarding the message
on. I am stumped as I am using a similar config on my other services

2009-09-16 15:18:55 [22758] [4] DEBUG: match found: ^[ ]*()[ ]*
2009-09-16 15:18:55 [22758] [4] WARNING: No translation found for This
is a good test from +2782*87 to 2773*30
2009-09-16 15:18:55 [22758] [4] ERROR: request failed
2009-09-16 15:18:55 [22758] [4] DEBUG: message length 14, sending 1 
messages

2009-09-16 15:18:55 [22758] [0] DEBUG: Got ACK (0) of
455e08bb-6081-4820-b600-5fcbe6a8aa90
2009-09-16 15:18:55 [22758] [0] DEBUG: No client - multi-send or ACK to
pull-reply

I have attached my config file and logs and would appreciate any help.

--

Kind Regards,

Wilhelm Ellmann









.
2009-09-16 15:18:47 [22758] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.
2009-09-16 15:18:47 [22758] [0] INFO: Logging accesses to 
'/var/log/kannel/smsbox.access'.
2009-09-16 15:18:47 [22758] [0] INFO: Started access logfile 
`/var/log/kannel/smsbox.access'.

2009-09-16 15:18:47 [22758] [0] INFO: HTTP: Opening server at port 13013.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Set up send sms service at port 
13013
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
2009-09-16 15:18:47 [22758] [0] 
DEBUG: --
2009-09-16 15:18:47 [22758] [0] DEBUG: Kannel smsbox version 1.4.2 
starting
2009-09-16 15:18:47 [22758] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [3] DEBUG: Thread 3 
(gw/smsbox.c:sendsms_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Connected to bearerbox at 127.0.0.1 
port 13001.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
2009-09-16 15:18:47 [22758] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [6] DEBUG: Thread 6 
(gw/smsbox.c:http_queue_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps 

Re: Trouble setting up GSM Modem

2009-09-16 Thread Nikos Balkanas
Also try adding AT+CMEE = 1 or 2 in your init-string to get more detailed 
info from your modem.


BR,
Nikos
- Original Message - 
From: Nikos Balkanas nbalka...@gmail.com

To: Wilhelm Ellmann | Fontera wilh...@fontera.com; users@kannel.org
Sent: Wednesday, September 16, 2009 11:45 PM
Subject: Re: Trouble setting up GSM Modem



Hi,

There seems to be a problem right after you send the PDU (TPDU 27 octets):

0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603

Does anyone know how to read it?

BR,
Nikos


- Original Message - 
From: Wilhelm Ellmann | Fontera wilh...@fontera.com

To: users@kannel.org
Sent: Wednesday, September 16, 2009 5:56 PM
Subject: Trouble setting up GSM Modem



Hi,

I seem be having a trouble setting up my GSM modem to work correctly. My
goal is not to send messages through the modem I only want receive
messages and push them on to my script to be processed.

There are two problems that I am having. The first is that once I have
received a message it looks like to me that the server tries to
acknowledge that it has received the message but runs into a error. This
causes a problem as the message is stored in the store file and the
server continually tries to re-acknowledge.

2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command
status: 1
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: --
0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ^Z
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- 
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ERROR
2009-09-16 15:19:02 [22753] [6] ERROR: AT2[EDGARSLONG]: Generic error: 
ERROR

2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command
status: -1
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message
(0x8f35200 vs 0x8f35200)
2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message
(0x8f35200 vs 0x8f35200)
2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: time to sleep 30.00 
secs.

2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: gwlist_len = 1

From what I can find on the internet is that it is a problem with my
init-string in modems config file. Is this correct and how can I find
the correct values that is supposed to be entered in here.


My second problem that I am having on receiving the message the sms box
is telling me this ( the snippet below ) and not forwarding the message
on. I am stumped as I am using a similar config on my other services

2009-09-16 15:18:55 [22758] [4] DEBUG: match found: ^[ ]*()[ ]*
2009-09-16 15:18:55 [22758] [4] WARNING: No translation found for This
is a good test from +2782*87 to 2773*30
2009-09-16 15:18:55 [22758] [4] ERROR: request failed
2009-09-16 15:18:55 [22758] [4] DEBUG: message length 14, sending 1 
messages

2009-09-16 15:18:55 [22758] [0] DEBUG: Got ACK (0) of
455e08bb-6081-4820-b600-5fcbe6a8aa90
2009-09-16 15:18:55 [22758] [0] DEBUG: No client - multi-send or ACK to
pull-reply

I have attached my config file and logs and would appreciate any help.

--

Kind Regards,

Wilhelm Ellmann









.
2009-09-16 15:18:47 [22758] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.
2009-09-16 15:18:47 [22758] [0] INFO: Logging accesses to 
'/var/log/kannel/smsbox.access'.
2009-09-16 15:18:47 [22758] [0] INFO: Started access logfile 
`/var/log/kannel/smsbox.access'.

2009-09-16 15:18:47 [22758] [0] INFO: HTTP: Opening server at port 13013.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Set up send sms service at port 
13013
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
2009-09-16 15:18:47 [22758] [0] 
DEBUG: --
2009-09-16 15:18:47 [22758] [0] DEBUG: Kannel smsbox version 1.4.2 
starting
2009-09-16 15:18:47 [22758] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [3] DEBUG: Thread 3 
(gw/smsbox.c:sendsms_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Connected to bearerbox at 127.0.0.1 
port 13001.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
2009-09-16 15:18:47 [22758] [4] DEBUG: Thread 4 

Re: Trouble setting up GSM Modem

2009-09-16 Thread Nikos Balkanas

Hi,

Sorry for replying in portions. It seems that you have a configuration issue 
that prevents correct modem initialization:


In group smsc, modemType should match id in group modems, not name. Name is 
text used only in logging.


BR,
Nikos
- Original Message - 
From: Nikos Balkanas nbalka...@gmail.com
To: Nikos Balkanas nbalka...@gmail.com; Wilhelm Ellmann | Fontera 
wilh...@fontera.com; users@kannel.org

Sent: Thursday, September 17, 2009 1:35 AM
Subject: Re: Trouble setting up GSM Modem


Also try adding AT+CMEE = 1 or 2 in your init-string to get more detailed 
info from your modem.


BR,
Nikos
- Original Message - 
From: Nikos Balkanas nbalka...@gmail.com

To: Wilhelm Ellmann | Fontera wilh...@fontera.com; users@kannel.org
Sent: Wednesday, September 16, 2009 11:45 PM
Subject: Re: Trouble setting up GSM Modem



Hi,

There seems to be a problem right after you send the PDU (TPDU 27 
octets):


0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603

Does anyone know how to read it?

BR,
Nikos


- Original Message - 
From: Wilhelm Ellmann | Fontera wilh...@fontera.com

To: users@kannel.org
Sent: Wednesday, September 16, 2009 5:56 PM
Subject: Trouble setting up GSM Modem



Hi,

I seem be having a trouble setting up my GSM modem to work correctly. My
goal is not to send messages through the modem I only want receive
messages and push them on to my script to be processed.

There are two problems that I am having. The first is that once I have
received a message it looks like to me that the server tries to
acknowledge that it has received the message but runs into a error. This
causes a problem as the message is stored in the store file and the
server continually tries to re-acknowledge.

2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command
status: 1
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: --
0011000B917228283085F7A70ED272BC5E9ED341C6709A5D2603
2009-09-16 15:18:56 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ^Z
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- 
2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: -- ERROR
2009-09-16 15:19:02 [22753] [6] ERROR: AT2[EDGARSLONG]: Generic error: 
ERROR

2009-09-16 15:19:02 [22753] [6] DEBUG: AT2[EDGARSLONG]: send command
status: -1
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message
(0x8f35200 vs 0x8f35200)
2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be 
resent

2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: handling message
(0x8f35200 vs 0x8f35200)
2009-09-16 15:19:02 [22753] [7] DEBUG: re-queing SMS not-yet-to-be 
resent
2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: time to sleep 30.00 
secs.

2009-09-16 15:19:02 [22753] [7] DEBUG: sms_router: gwlist_len = 1

From what I can find on the internet is that it is a problem with my
init-string in modems config file. Is this correct and how can I find
the correct values that is supposed to be entered in here.


My second problem that I am having on receiving the message the sms box
is telling me this ( the snippet below ) and not forwarding the message
on. I am stumped as I am using a similar config on my other services

2009-09-16 15:18:55 [22758] [4] DEBUG: match found: ^[ ]*()[ ]*
2009-09-16 15:18:55 [22758] [4] WARNING: No translation found for This
is a good test from +2782*87 to 2773*30
2009-09-16 15:18:55 [22758] [4] ERROR: request failed
2009-09-16 15:18:55 [22758] [4] DEBUG: message length 14, sending 1 
messages

2009-09-16 15:18:55 [22758] [0] DEBUG: Got ACK (0) of
455e08bb-6081-4820-b600-5fcbe6a8aa90
2009-09-16 15:18:55 [22758] [0] DEBUG: No client - multi-send or ACK to
pull-reply

I have attached my config file and logs and would appreciate any help.

--

Kind Regards,

Wilhelm Ellmann









.
2009-09-16 15:18:47 [22758] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.
2009-09-16 15:18:47 [22758] [0] INFO: Logging accesses to 
'/var/log/kannel/smsbox.access'.
2009-09-16 15:18:47 [22758] [0] INFO: Started access logfile 
`/var/log/kannel/smsbox.access'.
2009-09-16 15:18:47 [22758] [0] INFO: HTTP: Opening server at port 
13013.
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2009-09-16 15:18:47 [22758] [0] INFO: Set up send sms service at port 
13013
2009-09-16 15:18:47 [22758] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
2009-09-16 15:18:47 [22758] [0] 
DEBUG: --
2009-09-16 15:18:47 [22758] [0] DEBUG: Kannel smsbox version 1.4.2 
starting
2009-09-16 15:18:47 [22758] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
maps to pid 22758.
2009-09-16 15:18:47 [22758] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) maps to pid 22758.
2009-09-16 15:18:47 [22758] [3] DEBUG: Thread 3 
(gw/smsbox.c:sendsms_thread) maps