Problem getting Kannel to receive SMS
Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log sendsms-chars=0123456789 +- access-log = /var/log/kannel/access.log group = smsbox-route smsbox-id = smsbox smsc-id = nokiaphone # SEND-SMS USERS group = sendsms-user username = kanneluser password = kannelpass max-messages = 10 concatenation = true # SMS Service group = sms-service keyword = default #keyword-regex = .* catch-all = yes #max-messages = 10 #concatenation = true get-url = http://localhost/test; #exec /home/brite/watcer/stopwatch omit-empty = true accept-x-kannel-headers = true Please help me to read the SMS from the phone. Thank you. Regards, Ahmad Pakhri Yahya
RE: Problem getting Kannel to receive SMS
Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ahmad Pakhri Yahya Sent: dinsdag 18 mei 2010 10:58 To: users@kannel.org Subject: Problem getting Kannel to receive SMS Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log sendsms-chars=0123456789 +- access-log = /var/log/kannel/access.log group = smsbox-route smsbox-id = smsbox smsc-id = nokiaphone # SEND-SMS USERS group = sendsms-user username = kanneluser password = kannelpass max-messages = 10 concatenation = true # SMS Service group = sms-service keyword = default #keyword-regex = .* catch-all = yes #max-messages = 10 #concatenation = true get-url = http://localhost/test; #exec /home/brite/watcer/stopwatch omit-empty = true accept-x-kannel-headers = true Please help me to read the SMS from the phone. Thank you. Regards, Ahmad Pakhri Yahya
Re: Problem getting Kannel to receive SMS
capture your log, with log-level 0 and share to us. sangprabv sangpr...@gmail.com On May 18, 2010, at 3:58 PM, Ahmad Pakhri Yahya wrote: Hi, I’m new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it’s running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log sendsms-chars=0123456789 +- access-log = /var/log/kannel/access.log group = smsbox-route smsbox-id = smsbox smsc-id = nokiaphone # SEND-SMS USERS group = sendsms-user username = kanneluser password = kannelpass max-messages = 10 concatenation = true # SMS Service group = sms-service keyword = default #keyword-regex = .* catch-all = yes #max-messages = 10 #concatenation = true get-url = http://localhost/test; #exec /home/brite/watcer/stopwatch omit-empty = true accept-x-kannel-headers = true Please help me to read the SMS from the phone. Thank you. Regards, Ahmad Pakhri Yahya
RE: Problem getting Kannel to receive SMS
Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Generic error: ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Initialization of device failed. 2010-05-18 16:25:29 [31637] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Couldn't connect (retrying in 10 seconds). Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 17:09 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ahmad Pakhri Yahya Sent: dinsdag 18 mei 2010 10:58 To: users@kannel.org Subject: Problem getting Kannel to receive SMS Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log sendsms-chars=0123456789 +- access-log = /var/log/kannel/access.log group = smsbox-route smsbox-id = smsbox smsc-id = nokiaphone # SEND-SMS USERS group = sendsms-user username = kanneluser password = kannelpass max-messages = 10 concatenation = true # SMS Service group = sms-service keyword = default #keyword-regex = .* catch-all = yes #max-messages = 10 #concatenation = true get-url = http://localhost/test; #exec /home/brite/watcer/stopwatch omit-empty = true accept-x-kannel-headers = true Please help me to read the SMS from the phone. Thank you. Regards, Ahmad Pakhri Yahya
RE: Problem getting Kannel to receive SMS
Hi sangprav, As I said before, when receiving sms, kannel log does not indicate that it's receiving anything, so no activity when receiving sms. Here's the log from smsbox. 2010-05-18 17:24:10 [470] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2010-05-18 17:24:10 [470] [0] INFO: Service global sender set as '13013' 2010-05-18 17:24:10 [470] [0] INFO: Logging accesses to '/var/log/kannel/access.log'. 2010-05-18 17:24:10 [470] [0] INFO: Started access logfile `/var/log/kannel/access.log'. 2010-05-18 17:24:10 [470] [0] INFO: HTTP: Opening server at port 13013. 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-05-18 17:24:10 [470] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 470. 2010-05-18 17:24:10 [470] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 470. 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-05-18 17:24:10 [470] [0] INFO: Set up send sms service at port 13013 2010-05-18 17:24:10 [470] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 470. 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2010-05-18 17:24:10 [470] [0] DEBUG: -- 2010-05-18 17:24:10 [470] [0] DEBUG: Kannel smsbox version 1.4.3 starting 2010-05-18 17:24:10 [470] [0] DEBUG: dumping group (sendsms-user): 2010-05-18 17:24:10 [470] [0] DEBUG: group = sendsms-user 2010-05-18 17:24:10 [470] [0] DEBUG: max-messages = 10 2010-05-18 17:24:10 [470] [0] DEBUG: username = kanneluser 2010-05-18 17:24:10 [470] [0] DEBUG: concatenation = true 2010-05-18 17:24:10 [470] [0] DEBUG: password = softbrite 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2010-05-18 17:24:10 [470] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 470. 2010-05-18 17:24:10 [470] [0] INFO: Connected to bearerbox at localhost port 13001. 2010-05-18 17:24:10 [470] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2010-05-18 17:24:10 [470] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 470. 2010-05-18 17:24:10 [470] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 470. 2010-05-18 17:24:10 [470] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 470. 2010-05-18 17:24:12 [444] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 17:24:12 [444] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 17:24:12 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:12 [444] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 17:24:12 [444] [6] INFO: AT2[nokiaphone]: speed is 9600 2010-05-18 17:24:12 [444] [6] INFO: AT2[nokiaphone]: opening device 2010-05-18 17:24:12 [444] [6] DEBUG: AT2[nokiaphone]: device opened. Telnet mode = 0 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: device opened 2010-05-18 17:24:13 [444] [6] INFO: AT2[nokiaphone]: Logging in 2010-05-18 17:24:13 [444] [6] INFO: AT2[nokiaphone]: init device 2010-05-18 17:24:13 [444] [6] INFO: AT2[nokiaphone]: speed set to 9600 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- ATZ 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:13 [444] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: -- OK 2 And here's the log from bearerbox 2010-05-18 17:24:09 [444] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'.
SMS Relaying
Hie I need to perform an sms relay from my client to my Kannel server of which I will forward to my Mobile SMSC Network. Please help on how to do it. I am using SMPP for my connection the Mobile SMSC network and running Linux Fedora 11. thank you -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter, and is believed to be clean.
RE: Problem getting Kannel to receive SMS
What do you get if you send AT+CNMI=? (in hyper terminal or as an init string in Kannel). - If you get an error: Probably you are out of luck and your phone doesn't support relaying messages to the TE. Try another phone as modem. - If you get a string like: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1) then try to get the best options, e.g.: AT+CNMI=3,1,0,2,0 (in this case), depending on the values returned. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 11:30 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Generic error: ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Initialization of device failed. 2010-05-18 16:25:29 [31637] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Couldn't connect (retrying in 10 seconds). Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 17:09 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ahmad Pakhri Yahya Sent: dinsdag 18 mei 2010 10:58 To: users@kannel.org Subject: Problem getting Kannel to receive SMS Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 admin-allow-ip = 192.168.1.16 log-file = /var/log/kannel/bearerbox.log log-level = 0 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 box-allow-ip = 192.168.1.16 #store-file=/etc/kannel/kannel.store # SMSC group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM6 #device = /dev/ttyS0 speed = 0 smsc-id = nokiaphone port = 13013 log-level = 0 log-file = /var/log/kannel/smsbox.log #sim-buffering = true # Nokia mobile phone setup group = modems id = nokiaphone name = Nokia 6500 config detect-string=Nokia detect-string2=Nokia 6500 init-string = ATZ #init-string = AT+CMGF=1 #init-string = AT+CNMI=1,2,0,0,0 #init-string = AT+CNMI=? #init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0 #speed = 19200 enable-hwhs = AT+IFC=2,2 message-storage = SM need-sleep=true keepalive-cmd=AT+CBC;+CSQ group = smsbox smsbox-id = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-level=0 log-file = /var/log/kannel/smsbox.log
Re: SMS Relaying
Is your client also using Kannel? Then maybe setting up a http relay will work. See documentation. From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Innocent Muchedzi Sent: dinsdag 18 mei 2010 12:03 To: us...@vm1.kannel.org Subject: SMS Relaying Hie I need to perform an sms relay from my client to my Kannel server of which I will forward to my Mobile SMSC Network. Please help on how to do it. I am using SMPP for my connection the Mobile SMSC network and running Linux Fedora 11. thank you -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter and is believed to be clean.
RE: Problem getting Kannel to receive SMS
The error message I got is 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- AT+CNMI=1,1,0,0,0^M 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: Operation not supported (303) 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Initialization of device failed. 2010-05-18 17:10:56 [32143] [6] INFO: AT2[sonyphone]: Closing device 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Couldn't connect (retrying in 10 seconds). 2010-05-18 17:11:06 [32143] [6] INFO: AT2[sonyphone]: opening device 2010-05-18 17:11:06 [32143] [6] DEBUG: AT2[sonyphone]: device opened. Telnet mode = 0 It could be due to the phone not supporting the feature. Do you know any normal GSM phone that might work? Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 18:30 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS What do you get if you send AT+CNMI=? (in hyper terminal or as an init string in Kannel). - If you get an error: Probably you are out of luck and your phone doesn't support relaying messages to the TE. Try another phone as modem. - If you get a string like: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1) then try to get the best options, e.g.: AT+CNMI=3,1,0,2,0 (in this case), depending on the values returned. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 11:30 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Generic error: ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Initialization of device failed. 2010-05-18 16:25:29 [31637] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Couldn't connect (retrying in 10 seconds). Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 17:09 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Ahmad Pakhri Yahya Sent: dinsdag 18 mei 2010 10:58 To: users@kannel.org Subject: Problem getting Kannel to receive SMS Hi, I'm new to Kannel and am having problem to get Kannel to receive SMS from the phone. Currently it's running on Ubuntu and using Nokia 5610 as the modem. I have no problem sending sms through kannel, but receiving SMS is still unsuccessful. No messages in the log (bearer or sms) regarding received sms, which I suspect that kannel is not being notified by the phone about the sms. How do I get the phone to inform Kannel about the SMS received. Below is my config. # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core
RE: Problem getting Kannel to receive SMS
CMS ERROR 303 means: The operation to be done by the AT command is not supported. But judging from your log file: Are you using a sony (ericsson?) phone? Or a Nokia phone? Like I said: Try to send AT+CNMI=? And see what you get. Depending on the values returned you can adapt your final AT+CNMI command in the init string. Maybe some other people on the list can recommend you a phone or gsm modem that will work. Personally I have experience with the (old) Siemens SL45, TC35 and related phones that work. But that was a long time ago. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 12:43 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS The error message I got is 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- AT+CNMI=1,1,0,0,0^M 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: Operation not supported (303) 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Initialization of device failed. 2010-05-18 17:10:56 [32143] [6] INFO: AT2[sonyphone]: Closing device 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Couldn't connect (retrying in 10 seconds). 2010-05-18 17:11:06 [32143] [6] INFO: AT2[sonyphone]: opening device 2010-05-18 17:11:06 [32143] [6] DEBUG: AT2[sonyphone]: device opened. Telnet mode = 0 It could be due to the phone not supporting the feature. Do you know any normal GSM phone that might work? Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 18:30 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS What do you get if you send AT+CNMI=? (in hyper terminal or as an init string in Kannel). - If you get an error: Probably you are out of luck and your phone doesn't support relaying messages to the TE. Try another phone as modem. - If you get a string like: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1) then try to get the best options, e.g.: AT+CNMI=3,1,0,2,0 (in this case), depending on the values returned. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 11:30 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Generic error: ERROR 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Initialization of device failed. 2010-05-18 16:25:29 [31637] [6] INFO: AT2[nokiaphone]: Closing device 2010-05-18 16:25:29 [31637] [6] ERROR: AT2[nokiaphone]: Couldn't connect (retrying in 10 seconds). Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 17:09 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Check your init string and in particular AT+CNMI=.. This setting will let your phone notify if there is any incoming message to Kannel. There's a few options you have there. Depending on which settings your phone supports (not sure about the 5610). From: users-boun...@kannel.org
Re: Regarding OTA Message
Hi, I've checked your html page and it looks ok to me but I'm not sure if it's ok to send the request to kannel from html page instead of using a programming language like php or java because you need to add \r\n at the end of each line. Regards. -- Benaiad On Tue, May 18, 2010 at 11:38 AM, Harmeet Singh harmeet.dhing...@gmail.comwrote: Hi, The same problem still there i.e OTA message is received by handset but “unable to open message format not supported” Please find the attach details of all Logs at kannel server. Please help me regarding this . Regards Harmeet Singh *From:* Benaiad [mailto:bena...@gmail.com] *Sent:* 07 May 2010 22:33 *To:* Harmeet Singh *Cc:* kannel users *Subject:* Re: Regarding OTA Message Harmeet, Try the following: 1- download kannel from cvs. 2- download latest openssl and config it using ./config threads shared enable-rc5 --prefix=/usr/local/64 then make depend make make test make install 3- configure kannel with these parameters: --enable-ssl --with-ssl=/path to openssl source then make make install 4- add the following conf params to kannel core group: ssl-server-cert-file = /path-to-kannel-src/gw/cert.pem ssl-server-key-file = /path-to-kannel-src/gw/key.pem 5- send using: http://127.0.0.1:13013/cgi-bin/sendota?username=$userpassword=$passwdto=$msisdntext=$URLEncoderDoctype=settingspin=$pinsec=userpin If it doesn't work; post the related logs. Regards, -- Benaiad
Re: Problem getting Kannel to receive SMS
Several Nokia phones do not support CNMI command. So kannel never receives the MO's. You must use sim-buffering=true in combination with message-storage=XX to have kannel look at the messages in the modem Either the sim or the TE. This does not work either with all nokia phones. If this fails, you need to change the phone you are using as modem, or use a gsm modem. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Tue, May 18, 2010 at 6:14 AM, Rene Kluwen rene.klu...@chimit.nl wrote: CMS ERROR 303 means: The operation to be done by the AT command is not supported. But judging from your log file: Are you using a sony (ericsson?) phone? Or a Nokia phone? Like I said: Try to send AT+CNMI=? And see what you get. Depending on the values returned you can adapt your final AT+CNMI command in the init string. Maybe some other people on the list can recommend you a phone or gsm modem that will work. Personally I have experience with the (old) Siemens SL45, TC35 and related phones that work. But that was a long time ago. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 12:43 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS The error message I got is 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- AT+CNMI=1,1,0,0,0^M 2010-05-18 17:10:56 [32143] [6] DEBUG: AT2[sonyphone]: -- +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: +CMS ERROR: 303 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: CMS ERROR: Operation not supported (303) 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Initialization of device failed. 2010-05-18 17:10:56 [32143] [6] INFO: AT2[sonyphone]: Closing device 2010-05-18 17:10:56 [32143] [6] ERROR: AT2[sonyphone]: Couldn't connect (retrying in 10 seconds). 2010-05-18 17:11:06 [32143] [6] INFO: AT2[sonyphone]: opening device 2010-05-18 17:11:06 [32143] [6] DEBUG: AT2[sonyphone]: device opened. Telnet mode = 0 It could be due to the phone not supporting the feature. Do you know any normal GSM phone that might work? Cheers, Ahmad Pakhri Yahya From: Rene Kluwen [mailto:rene.klu...@chimit.nl] Sent: Tue, 18 May, 2010 18:30 To: pakhri.ya...@ymail.com; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS What do you get if you send AT+CNMI=? (in hyper terminal or as an init string in Kannel). - If you get an error: Probably you are out of luck and your phone doesn’t support relaying messages to the TE. Try another phone as modem. - If you get a string like: +CNMI: (0,1,2,3),(0,1,2,3),(0,2),(0,1,2),(0,1) then try to get the best options, e.g.: AT+CNMI=3,1,0,2,0 (in this case), depending on the values returned. From: Ahmad Pakhri Yahya [mailto:pakhri.ya...@ymail.com] Sent: dinsdag 18 mei 2010 11:30 To: 'Rene Kluwen'; users@kannel.org Subject: RE: Problem getting Kannel to receive SMS Hi Rene, I tried adding the AT+CNMI= command, but it gave me error during initialization. Messages from the log. 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATZ^M 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:28 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATF 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- ATE0 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+IFC=2,2^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CPIN?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CPIN: READY 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CMGF=0^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CSMS=?^M 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- +CSMS: (0) 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- OK 2010-05-18 16:25:29 [31637] [6] DEBUG: AT2[nokiaphone]: -- AT+CNMI=0,0,0,0,0^M 2010-05-18 16:25:29 [31637] [6] DEBUG:
Re:
Emmanuel CHANSON emmanuelchanson at gmail.com writes: Hello Langa,Please I invite you to read the user guide of Kannel where the running configuration procedure are described:http://www.kannel.org/userguide.shtmlTo start kannel when its configuration file has been properly done you may have the choice:$ service kannel start (if you have an init script called kannel in /etc/init.d/ )or/usr/local/sbin/bearerbox -v 2 /etc/kannel.conf (for bearerbox, smsbox, wapbox, ...)These examples have to be used regarding your configuration path and so one...Regards,Emmanuel 2010/5/15 Langa Dlamini libalele at swazi.net I am new to the Linux system .I want to make a Kannel SMS gateway. I have installed theKannel-1.4.1-3.rh9.rf.i386.rpm.Ihave tried to configure the kannel bearer box and sms box. When I type the command: /etc/kannel.conf. The reply is Permission denied. Is there any way to configure the boxes or am I using the wrong command. Regars Langa -- EmmanuelCHANSON EmmanuelMobile Nouvelle-Calédonie: +687.77.35.02Mobile France: +33 (0) 6.68.03.89.56 at email : emmanuelchanson at gmail.com Langa, The Problem you are facing is that your current user isn't authorized to edit this file /etc/kannel.conf try switching into root before editing the file.
Re:
No! Please do not confuse user. Emmanuel is right. He is not starting it right, and he needs desperately a Linux primer before using kannel. BR, Nikos - Original Message - From: Mohammed gab...@gmail.com To: users@kannel.org Sent: Tuesday, May 18, 2010 1:44 AM Subject: Re: Emmanuel CHANSON emmanuelchanson at gmail.com writes: Hello Langa,Please I invite you to read the user guide of Kannel where the running configuration procedure are described:http://www.kannel.org/userguide.shtmlTo start kannel when its configuration file has been properly done you may have the choice:$ service kannel start (if you have an init script called kannel in /etc/init.d/ )or/usr/local/sbin/bearerbox -v 2 /etc/kannel.conf (for bearerbox, smsbox, wapbox, ...)These examples have to be used regarding your configuration path and so one...Regards,Emmanuel 2010/5/15 Langa Dlamini libalele at swazi.net I am new to the Linux system .I want to make a Kannel SMS gateway. I have installed theKannel-1.4.1-3.rh9.rf.i386.rpm.Ihave tried to configure the kannel bearer box and sms box. When I type the command: /etc/kannel.conf. The reply is Permission denied. Is there any way to configure the boxes or am I Β using the wrong command. Regars Β Langa Β -- EmmanuelCHANSON EmmanuelMobile Nouvelle-CalΓ©donie: +687.77.35.02Mobile France: +33 (0) 6.68.03.89.56 at email : emmanuelchanson at gmail.com Langa, The Problem you are facing is that your current user isn't authorized to edit this file /etc/kannel.conf try switching into root before editing the file.
RE: SMS Relaying
http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN2276 From: Innocent Muchedzi [mailto:innoc...@syldah.co.bw] Sent: dinsdag 18 mei 2010 13:53 To: Rene Kluwen Subject: Re: SMS Relaying Yes they all use kannel, How do I set up http relay - Original Message - From: Rene Kluwen mailto:rene.klu...@chimit.nl To: 'Innocent mailto:innoc...@syldah.co.bw Muchedzi' Sent: Tuesday, May 18, 2010 12:17 PM Subject: RE: SMS Relaying Is your client also using Kannel? Then maybe setting up a http relay will work. From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Innocent Muchedzi Sent: dinsdag 18 mei 2010 12:03 To: us...@vm1.kannel.org Subject: SMS Relaying Hie I need to perform an sms relay from my client to my Kannel server of which I will forward to my Mobile SMSC Network. Please help on how to do it. I am using SMPP for my connection the Mobile SMSC network and running Linux Fedora 11. thank you -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter and is believed to be clean. -- This message has been scanned for viruses and dangerous content by http://www.mailscanner.info/ MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by the BBI SMTP filter and is believed to be clean.
Wavecom Modem Buffering but not sending
Dear all, I am installing a wavecom modem on kannel 1.4.3 and although kannel seems to communicate with the modem, when we send an MT SMS we see that the message is buffered but not sent. The SIM card is operational in a normal mobile phone, by sending and receiving messages. Your help will be greatly appreciated. Dr. Peter Kontopoulos ++ kannel.conf # CORE SETUP group = core admin-port = 13000 admin-password = 123 status-password = 123 admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 log-file = /var/log/kannel/kannel.log log-level = 2 access-log = /var/log/kannel/access.log smsbox-port = 13001 wapbox-port = 13002 store-location = /var/log/kannel/kannel.store store-type = file box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 dlr-storage = mysql # SMSBOX SETUP group = smsbox bearerbox-host = localhost bearerbox-port = 13001 sendsms-port = 13013 sendsms-chars = 0123456789+ log-file = /var/log/kannel/smsbox.log log-level = 1 access-log = /var/log/kannel/access.log include = /etc/kannel/kannel.mdm include = /etc/kannel/kannel.dlr # SMS SERVICE 'Default' # there should be default always group = sms-service keyword = default max-messages = 0 exec = /usr/local/bin/kannel_incoming %t %q %Q %a #get-url = http://localhost/plugin/gateway/kannel/geturl.php?t=%tq=% qa=%a accept-x-kannel-headers = true text = thank you ++ kannel/kannel.mdm # Modems configuration # # Example and default values # # group = modems # id = my-id # name = my-name # detect-string = MODEM # detect-string2 = [Default] # init-string = AT+CNMI=1,2,0,0,0 [Default] # speed = 9600 [Default] # enable-hwhs = AT+IFC=2,2 [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = AT [Default] # broken = false [Default] # message-storage = SM # enable-mms = false [Default] group = smsc smsc = at smsc-id = wavecom_1 allowed-smsc-id = wavecom_1 modemtype = wavecom device = /dev/ttyS0 speed = 9600 pin = 4980 sim-buffering = true max-error-count = 5 group = modems id = wavecom name = Wavecom detect-string = WAVECOM init-string = AT+CNMI=2,0,0,1,0 reset-string = AT+CFUN=1 # SEND-SMS USERS group = sendsms-user username = tester password = foobar max-messages = 3 concatenation = 1 #user-deny-ip = #user-allow-ip = forced-smsc = wavecom_1 ++ access.log 2010-05-18 19:09:22 send-SMS request added - sender:tester:123456789 127.0.0.1 target:306937123456 request: '!...@#$%^*()-_=+{}[],.?/\|':;~' €£¤¥§¿ 1234567890 1234567890 1234567890 1234' 2010-05-18 19:09:28 Sent SMS [SMSC:wavecom_1] [SVC:tester] [ACT:] [BINF:] [FID:4] [from:123456789] [to:306937123456] [flags:-1:0:-1:-1:31] [msg:160:!.#.%..*()-.= +.(.)..,.?/./.@':;.='..e.$._`.AB..EZH.IK.MN.O.P.TY.XAB..EZH.IK.MN.O.P.TY.X...AEHIOY..AEHIOY..IYIYIY.1234567890.1234567890.1234567890.1234] [udh:0:] 2010-05-18 19:09:28 Receive DLR [SMSC:wavecom_1] [SVC:tester] [ACT:] [BINF:] [FID:4] [from:123456789] [to:306937123456] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:] 2010-05-18 19:09:28 Receive DLR [SMSC:wavecom_1] [SVC:tester] [ACT:] [BINF:] [FID:4] [from:123456789] [to:306937123456] [flags:-1:-1:-1:-1:4] [msg:8:Buffered] [udh:0:] 2010-05-18 19:47:29 Log ends + console output (-v 0) 2010-05-18 20:31:34 [7008] [0] INFO: Connected to bearerbox at localhost port 13001. 2010-05-18 20:31:34 [7008] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2010-05-18 20:31:34 [7008] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 7008. 2010-05-18 20:32:05 [6952] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-05-18 20:32:05 [6952] [2] DEBUG: HTTP: Created HTTPClient area 0x8ada838. 2010-05-18 20:32:05 [6952] [3] DEBUG: sql: SELECT count(*) FROM dlr; 2010-05-18 20:32:05 [6952] [3] DEBUG: HTTP: Destroying HTTPClient area 0x8ada838. 2010-05-18 20:32:05 [6952] [3] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. 2010-05-18 20:32:14 [6952] [6] DEBUG: AT2[wavecom_1]: -- AT+CPMS?^M 2010-05-18 20:32:14 [6952] [6] DEBUG: AT2[wavecom_1]: -- +CPMS: SM,0,40,SM,0,40 2010-05-18 20:32:14 [6952] [6] DEBUG: AT2[wavecom_1]: -- OK 2010-05-18 20:32:24 [7008] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-05-18 20:32:24 [7008] [2] DEBUG: HTTP: Created HTTPClient area 0xb4200550. 2010-05-18 20:32:24 [7008] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 127.0.0.1 2010-05-18 20:32:24 [7008] [3] INFO: sendsms used by tester 2010-05-18 20:32:24 [7008] [3] INFO: sendsms sender:tester:123456789 (127.0.0.1) to:306937123456 msg:!...@#$%^*()-_=+{}[],.?/\|':;~' €£¤¥§¿ 1234567890 1234567890 1234567890 1234 2010-05-18 20:32:24 [7008] [3] INFO: send-sms request smsc id ignored, as smsc id forced to wavecom_1 2010-05-18 20:32:24 [7008] [3] DEBUG: Stored UUID d0b0afa5-9eaf-45d6-a75f-684bb10febfa 2010-05-18 20:32:24 [7008] [3] DEBUG: message length
Java API for Kannel SMS/WAP gateway
Hello all, We released version 1.0.1 of Java API for Kannel SMS/WAP gateway. In the latest version a bug is fixed concerning the GSM encoding of SMS messages. Now messages are properly encoded and send to the SMSC for all available encodings (GSM, UTF-8, UCS2) The latest version also introduces WAP Push functionality. You can send a WAP Push message using a single API command. For more information visit our blog http://javacodegeeks.blogspot.com/ The upcoming version will introduce, bulk WAP Push messaging functionality and prioritization of WAP Push messages, so stay tuned! Best Regards Justin
Re: Wavecom Modem Buffering but not sending
Hi, Please separate clearly smsbox logs from bearerbox logs. Having them mixed like that makes very difficult to follow. It seems that SMS reaches your provider and is then buffered by them. This is not a kannel issue. Final DLR and SMS delivery is asynchronous and depends on destination availability. Sometimes it may take as long as 2 days before SMS is returned as expired. I don't see anything wrong from your side, here. BR, Nikos - Original Message - From: Peter To: us...@vm1.kannel.org Sent: Tuesday, May 18, 2010 8:47 PM Subject: Wavecom Modem Buffering but not sending Dear all, I am installing a wavecom modem on kannel 1.4.3 and although kannel seems to communicate with the modem, when we send an MT SMS we see that the message is buffered but not sent. The SIM card is operational in a normal mobile phone, by sending and receiving messages. Your help will be greatly appreciated. Dr. Peter Kontopoulos ++ kannel.conf # CORE SETUP group = core admin-port = 13000 admin-password = 123 status-password = 123 admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 log-file = /var/log/kannel/kannel.log log-level = 2 access-log = /var/log/kannel/access.log smsbox-port = 13001 wapbox-port = 13002 store-location = /var/log/kannel/kannel.store store-type = file box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 dlr-storage = mysql # SMSBOX SETUP group = smsbox bearerbox-host = localhost bearerbox-port = 13001 sendsms-port = 13013 sendsms-chars = 0123456789+ log-file = /var/log/kannel/smsbox.log log-level = 1 access-log = /var/log/kannel/access.log include = /etc/kannel/kannel.mdm include = /etc/kannel/kannel.dlr # SMS SERVICE 'Default' # there should be default always group = sms-service keyword = default max-messages = 0 exec = /usr/local/bin/kannel_incoming %t %q %Q %a #get-url = http://localhost/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a; accept-x-kannel-headers = true text = thank you ++ kannel/kannel.mdm # Modems configuration # # Example and default values # # group = modems # id = my-id # name = my-name # detect-string = MODEM # detect-string2 = [Default] # init-string = AT+CNMI=1,2,0,0,0 [Default] # speed = 9600 [Default] # enable-hwhs = AT+IFC=2,2 [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = AT [Default] # broken = false [Default] # message-storage = SM # enable-mms = false [Default] group = smsc smsc = at smsc-id = wavecom_1 allowed-smsc-id = wavecom_1 modemtype = wavecom device = /dev/ttyS0 speed = 9600 pin = 4980 sim-buffering = true max-error-count = 5 group = modems id = wavecom name = Wavecom detect-string = WAVECOM init-string = AT+CNMI=2,0,0,1,0 reset-string = AT+CFUN=1 # SEND-SMS USERS group = sendsms-user username = tester password = foobar max-messages = 3 concatenation = 1 #user-deny-ip = #user-allow-ip = forced-smsc = wavecom_1 ++ access.log 2010-05-18 19:09:22 send-SMS request added - sender:tester:123456789 127.0.0.1 target:306937123456 request: '!...@#$%^*()-_=+{}[],.?/\|':;~' €£¤¥§¿ 1234567890 1234567890 1234567890 1234' 2010-05-18 19:09:28 Sent SMS [SMSC:wavecom_1] [SVC:tester] [ACT:] [BINF:] [FID:4] [from:123456789] [to:306937123456] [flags:-1:0:-1:-1:31] [msg:160:!.#.%..*()-.=+.(.)..,.?/./.@':;.='..e.$._`.AB..EZH.IK.MN.O.P.TY.XAB..EZH.IK.MN.O.P.TY.X...AEHIOY..AEHIOY..IYIYIY.1234567890.1234567890.1234567890.1234] [udh:0:] 2010-05-18 19:09:28 Receive DLR [SMSC:wavecom_1] [SVC:tester] [ACT:] [BINF:] [FID:4] [from:123456789] [to:306937123456] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:] 2010-05-18 19:09:28 Receive DLR [SMSC:wavecom_1] [SVC:tester] [ACT:] [BINF:] [FID:4] [from:123456789] [to:306937123456] [flags:-1:-1:-1:-1:4] [msg:8:Buffered] [udh:0:] 2010-05-18 19:47:29 Log ends + console output (-v 0) 2010-05-18 20:31:34 [7008] [0] INFO: Connected to bearerbox at localhost port 13001. 2010-05-18 20:31:34 [7008] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2010-05-18 20:31:34 [7008] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 7008. 2010-05-18 20:32:05 [6952] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-05-18 20:32:05 [6952] [2] DEBUG: HTTP: Created HTTPClient area 0x8ada838. 2010-05-18 20:32:05 [6952] [3] DEBUG: sql: SELECT count(*) FROM dlr; 2010-05-18 20:32:05 [6952] [3] DEBUG: HTTP: Destroying HTTPClient area 0x8ada838. 2010-05-18 20:32:05 [6952] [3] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. 2010-05-18 20:32:14 [6952] [6] DEBUG: AT2[wavecom_1]: -- AT+CPMS?^M 2010-05-18 20:32:14 [6952] [6] DEBUG: AT2[wavecom_1]: -- +CPMS: SM,0,40,SM,0,40 2010-05-18 20:32:14 [6952] [6] DEBUG: AT2[wavecom_1]: -- OK 2010-05-18 20:32:24 [7008] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-05-18 20:32:24 [7008]
Re: DLR not fw to Kannel when mailling SMS is performed
Emmanuel Always CC users list, they can benefit from the shared info. dlrs over modems is a very tricky thing since from the operator point of view, it is not important and can klugg their network. A dlr is a special MO... they do not charge for... so most operators does not provide dlrs, and if do, they do not warranty them. Also, if the dlr can not reach the destination in the first try they drop it. This might be the problem with you. As you are sending several MT, your modem is busy and cant receive the dlr, thus the operator drop it. About dlrs stored in sim hmmm don´t know what to say. Never seen dlrs stored in sim/terminal About the modem huawei, never used but read some threads here from people that recomends it. Hope helps Alvaro On Tue, May 18, 2010 at 4:28 PM, Emmanuel CHANSON emmanuelchan...@gmail.com wrote: Hello Alvajo, Because you know well how modem works I ask you this question below to have your mind... I wonder why I have very few of my DLRs that are forwarded to bearerbox when I send let's say 80 SMS using cgi script. I always receive the ACKs but very few DLRs and I see they seems to be stored in the mobile right ? I am using a Nokia 6230. Do I have an issue in my modem config ? I have to test using message-storage = SM instead of ME maybe ? BTW I plan to buy a Huawei E220 is it a good choice for sending/receiving MO/MT/ACK/DLR ... Thanks by advance Emmanuel -- Forwarded message -- From: Emmanuel CHANSON emmanuelchan...@gmail.com Date: 2010/5/11 Subject: DLR not fw to Kannel when mailling SMS is performed To: users users@kannel.org Hello, I would like to ask the community about this behavior. I am using a Nokia 6230 as modem. When I send a single SMS I got the ACK and the STATUS-REPORT, behavior is Ok. 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- +CDS: 24 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: -- 069186770720F0067C099186773705F2015011311513440150113115134400 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: received message from SMSC: +687770020 2010-05-11 13:51:44 [14368] [6] DEBUG: AT2[nokiaphone]: got STATUS-REPORT for message 124: When I send let's say 20 SMS using cgi script, I got all the ACK but no STATUS-REPORT and I see this in smsc.log: 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- AT+CPMS?^M 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- +CPMS: ME,0,150,SM,18,60,MT,18,210 2010-05-11 13:46:59 [14249] [6] DEBUG: AT2[nokiaphone]: -- OK So isn't it my DLRs that are stored in the mobile ? Why aren't they forwarded to bearerbox ? My modem config for the modem is the following: group = modems id = nokiaphone name = Nokia Phone detect-string = Nokia Mobile Phone init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 need-sleep = true speed = 460800 keepalive-cmd = AT+CBC;+CSQ enable-mms = true message-storage = ME Regards, Emmanuel -- Emmanuel CHANSON Emmanuel Mobile Nouvelle-Calédonie: +687.77.35.02 Mobile France: +33 (0) 6.68.03.89.56 @email : emmanuelchan...@gmail.com -- |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com