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]: --> AT&F^M 2010-05-18 17:24:14 [444] [6] DEBUG: AT2[nokiaphone]: <-- AT&F 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'. 2010-05-18 17:24:09 [444] [0] INFO: HTTP: Opening server at port 13000. 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-05-18 17:24:09 [444] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 444. 2010-05-18 17:24:09 [444] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 444. 2010-05-18 17:24:09 [444] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 444. 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2010-05-18 17:24:09 [444] [0] DEBUG: starting smsbox connection module 2010-05-18 17:24:09 [444] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-05-18 17:24:09 [444] [0] DEBUG: Adding smsbox routing to id <smsbox> for smsc id <nokiaphone> 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2010-05-18 17:24:09 [444] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-05-18 17:24:09 [444] [0] INFO: SMS resend retry set to unlimited. 2010-05-18 17:24:09 [444] [0] DEBUG: smsbox MO concatenated message handling enabled 2010-05-18 17:24:09 [444] [0] INFO: DLR rerouting for smsc id <nokiaphone> disabled. 2010-05-18 17:24:09 [444] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2010-05-18 17:24:09 [444] [0] INFO: AT2[nokiaphone]: configuration shows modemtype <nokiaphone> 2010-05-18 17:24:09 [444] [0] DEBUG: AT2[nokiaphone]: Reading modem definitions from </etc/kannel/kannel.conf> 2010-05-18 17:24:09 [444] [0] DEBUG: AT2[nokiaphone]: Found <1> modems in config 2010-05-18 17:24:09 [444] [0] INFO: AT2[nokiaphone]: read modem definition for <Nokia 6500 config> 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2010-05-18 17:24:09 [444] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2010-05-18 17:24:09 [444] [0] INFO: ---------------------------------------- 2010-05-18 17:24:09 [444] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-05-18 17:24:09 [444] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 444. 2010-05-18 17:24:09 [444] [6] INFO: Logging thread `6' to logfile `/var/log/kannel/smsbox.log' with level `0'. 2010-05-18 17:24:09 [444] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 444. 2010-05-18 17:24:09 [444] [0] INFO: MAIN: Start-up done, entering mainloop 2010-05-18 17:24:09 [444] [0] DEBUG: AT2[nokiaphone]: start called 2010-05-18 17:24:09 [444] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 444. 2010-05-18 17:24:09 [444] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 444. 2010-05-18 17:24:10 [444] [5] INFO: Client connected from <127.0.0.1> 2010-05-18 17:24:10 [444] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2010-05-18 17:24:10 [444] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 444. 2010-05-18 17:24:10 [444] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2010-05-18 17:24:10 [444] [8] DEBUG: boxc_receiver: got boxc_id <smsbox> from <127.0.0.1> 2010-05-18 17:24:10 [444] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 444. Cheers, Ahmad Pakhri Yahya From: sangprabv [mailto:[email protected]] Sent: Tue, 18 May, 2010 17:09 To: [email protected] Cc: [email protected] Subject: Re: Problem getting Kannel to receive SMS capture your log, with log-level 0 and share to us. sangprabv [email protected] 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
