I'm stil having the same problem :( :( . It's so frustrating :( . I'm using a SIMCOM modem . I'm attaching my configuration file and my log files. Please help me out.
2011/3/28 Nikos Balkanas <[email protected]> > Hi, > > Your problem is obvious from the status page. Your AT SMSc should say > "connected" when ready to send SMS. Since it is not, your SMS are saved to > queue for later delivery. > > It doesn't look that your modem is initializing properly. Check your > bearerbox logs for errors and then read in User Guide the section about > modem initialization. If still having problems, post your relvant detailed > bearerbox logs to this list. > > BR, > Nikos > ----- Original Message ----- From: Prashanth Swaminathan > To: [email protected] > Sent: Sunday, March 27, 2011 5:22 PM > Subject: Yet another "3: Queued for later delivery" problem-Please help :( > > > > Hi all :) > > I'm 19, a student and i'm from India. I've set up my kannel.conf > file and when i run my bearerbox it runs smoothly and my status.html page > shows > > > "Status: running, uptime 0d 0h 39m 34s" > perfectly . This is how my status.html page looks like > > > > ----------------------------------------------------------------------------------------------------------------------------- > Kannel bearerbox version `1.4.3'. Build `Mar 20 2011 19:34:44', compiler > `4.4.5'. System Linux, release 2.6.35-23-generic, version #40-Ubuntu SMP Wed > Nov 17 22:15:35 UTC 2010, machine i686. Hostname TRANSLTR, IP 192.168.1.4. > Libxml version 2.7.7. Using OpenSSL 0.9.8o 01 Jun 2010. Using native malloc. > Status: running, uptime 0d 0h 39m 34s > WDP: received 0 (0 queued), sent 0 (0 queued) > SMS: received 0 (0 queued), sent 0 (3 queued), store size 3 > SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec > DLR: 0 queued, using internal storage > Box connections: > smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 38m 56s) > > SMSC connections: > B5310 AT2[B5310] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs) > FAKE FAKE:10000 (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs) > > -------------------------------------------------------------------------------------------------------------------------------- > I tried sending messages with this " > http://localhost:13013/cgi-bin/sendsms?username=kannel&password=prash&text=helllo+world&to=+919958698191&from=+919790335856" > in my browser > But i get the "3: Queued for later delivery" message with my messages being > only queued up. I'm not sure where i've gone wrong. > I'm BTW using my "Samsung Corby pro B5310" mobile as the modem. (I'm not > sure if it actually supported by kannel) > > > > > I'm attaching my config page along with this. PLEASE HELP ME!!!!!!! :( > > > > ============================================================================================================= > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password = bar > #status-password = foo > #admin-deny-ip = "*.*.*.*" > #admin-allow-ip = "127.0.0.1" > 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" > #dlr-storage = mysql > > > #--------------------------------------------- > # 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 > smsc-id = B5310 > port = 10000 > #speed=9600 > connect-allow-ip =127.0.0.1 > host=127.0.0.1 > modemtype=auto > device=/dev/ttyS0 > my-number="9790335856" > sms-center="+919894051914" > #include = /etc/kannel/modems.conf > > > group = smsc > smsc = fake > smsc-id = FAKE > port = 10000 > 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 > smsbox-id = 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 = "/home/prashanth/access.log" > > > > > group = smsbox-route > smsbox-id = SMSbox > smsc-id = B5310 > > > > > # 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=tester&password=foobar. > .. > > > #group = sendsms-user > #username = tester > #password = foobar > #user-deny-ip = "" > #user-allow-ip = "" > > > group = sendsms-user > username=kannel > password=prash > user-deny-ip="*.*.*.*" > user-allow-ip=127.0.0.1 > > > > > group=modems > id=B5310 > name="B5310" > detect-string="Samsung B5310" > init-string="AT+CNMI=2,3,0,1,0;+CMEE=1" > keepalive-cmd=AT+CSQ > reset-string="AT" > #--------------------------------------------- > # 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 = default > text = "No service specified" > > > =================================================================================================== > > > > > > > -- > Regards > Prashanth Swaminathan > -- Regards Prashanth Swaminathan www.about.me/prashanthswami -- Regards Prashanth Swaminathan www.about.me/prashanthswami
kannel.conf
Description: Binary data
2011-04-14 11:23:41 [2240] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'. 2011-04-14 11:23:41 [2240] [0] INFO: Started access logfile `/tmp/access.log'. 2011-04-14 11:23:41 [2240] [0] WARNING: 'store-file' option deprecated, please use 'store-location' and 'store-type' instead. 2011-04-14 11:23:41 [2240] [0] INFO: HTTP: Opening server at port 13000. 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2011-04-14 11:23:41 [2240] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 2240. 2011-04-14 11:23:41 [2240] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 2240. 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2011-04-14 11:23:41 [2240] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 2240. 2011-04-14 11:23:41 [2240] [0] DEBUG: starting smsbox connection module 2011-04-14 11:23:41 [2240] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2011-04-14 11:23:41 [2240] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 2240. 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2011-04-14 11:23:41 [2240] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 2240. 2011-04-14 11:23:41 [2240] [0] INFO: Set SMS resend frequency to 60 seconds. 2011-04-14 11:23:41 [2240] [0] INFO: SMS resend retry set to unlimited. 2011-04-14 11:23:41 [2240] [0] DEBUG: smsbox MO concatenated message handling enabled 2011-04-14 11:23:41 [2240] [0] INFO: DLR rerouting for smsc id <BSNL> disabled. 2011-04-14 11:23:41 [2240] [0] INFO: AT2[BSNL]: configuration shows modemtype <simcom_ltd> 2011-04-14 11:23:41 [2240] [0] DEBUG: AT2[BSNL]: Reading modem definitions from <kannel.conf> 2011-04-14 11:23:41 [2240] [0] DEBUG: AT2[BSNL]: Found <2> modems in config 2011-04-14 11:23:41 [2240] [0] INFO: AT2[BSNL]: read modem definition for <simcom> 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2011-04-14 11:23:41 [2240] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 2240. 2011-04-14 11:23:41 [2240] [6] INFO: AT2[BSNL]: opening device 2011-04-14 11:23:41 [2240] [6] DEBUG: AT2[BSNL]: device opened. Telnet mode = 0 2011-04-14 11:23:41 [2240] [6] DEBUG: AT2[BSNL]: device opened 2011-04-14 11:23:41 [2240] [6] INFO: AT2[BSNL]: Logging in 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2011-04-14 11:23:41 [2240] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 2240. 2011-04-14 11:23:41 [2240] [0] INFO: ---------------------------------------- 2011-04-14 11:23:41 [2240] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2011-04-14 11:23:41 [2240] [0] INFO: Loading store file `kannel.store' 2011-04-14 11:23:41 [2240] [0] INFO: Store-file size 621, starting to unpack 2011-04-14 11:23:41 [2240] [0] INFO: Retrieved 3 messages, non-acknowledged messages: 3 2011-04-14 11:23:41 [2240] [0] ERROR: Failed to open 'kannel.store.new' for writing, cannot create store-file 2011-04-14 11:23:41 [2240] [0] ERROR: System error 13: Permission denied 2011-04-14 11:23:41 [2240] [0] DEBUG: Started thread 8 (gw/bb_store_file.c:store_dumper) 2011-04-14 11:23:41 [2240] [0] PANIC: Cannot start with store-file failing 2011-04-14 11:23:41 [2240] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80ce49d] 2011-04-14 11:23:41 [2240] [0] PANIC: bearerbox(main+0xd84) [0x8053f04] 2011-04-14 11:23:41 [2240] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xe7) [0x6cece7] 2011-04-14 11:23:41 [2240] [0] PANIC: bearerbox() [0x8052441] 2011-04-14 11:24:02 [2249] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'. 2011-04-14 11:24:02 [2249] [0] INFO: Started access logfile `/tmp/access.log'. 2011-04-14 11:24:02 [2249] [0] WARNING: 'store-file' option deprecated, please use 'store-location' and 'store-type' instead. 2011-04-14 11:24:02 [2249] [0] INFO: HTTP: Opening server at port 13000. 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2011-04-14 11:24:02 [2249] [0] DEBUG: starting smsbox connection module 2011-04-14 11:24:02 [2249] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2011-04-14 11:24:02 [2249] [0] INFO: Set SMS resend frequency to 60 seconds. 2011-04-14 11:24:02 [2249] [0] INFO: SMS resend retry set to unlimited. 2011-04-14 11:24:02 [2249] [0] DEBUG: smsbox MO concatenated message handling enabled 2011-04-14 11:24:02 [2249] [0] INFO: DLR rerouting for smsc id <BSNL> disabled. 2011-04-14 11:24:02 [2249] [0] INFO: AT2[BSNL]: configuration shows modemtype <simcom_ltd> 2011-04-14 11:24:02 [2249] [0] DEBUG: AT2[BSNL]: Reading modem definitions from <kannel.conf> 2011-04-14 11:24:02 [2249] [0] DEBUG: AT2[BSNL]: Found <2> modems in config 2011-04-14 11:24:02 [2249] [0] INFO: AT2[BSNL]: read modem definition for <simcom> 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2011-04-14 11:24:02 [2249] [0] INFO: ---------------------------------------- 2011-04-14 11:24:02 [2249] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2011-04-14 11:24:02 [2249] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 2249. 2011-04-14 11:24:02 [2249] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 2249. 2011-04-14 11:24:02 [2249] [0] INFO: Loading store file `kannel.store' 2011-04-14 11:24:02 [2249] [0] INFO: Store-file size 621, starting to unpack 2011-04-14 11:24:02 [2249] [0] INFO: Retrieved 3 messages, non-acknowledged messages: 3 2011-04-14 11:24:02 [2249] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 2249. 2011-04-14 11:24:02 [2249] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 2249. 2011-04-14 11:24:02 [2249] [6] INFO: AT2[BSNL]: opening device 2011-04-14 11:24:02 [2249] [6] DEBUG: AT2[BSNL]: device opened. Telnet mode = 0 2011-04-14 11:24:02 [2249] [6] DEBUG: AT2[BSNL]: device opened 2011-04-14 11:24:02 [2249] [6] INFO: AT2[BSNL]: Logging in 2011-04-14 11:24:02 [2249] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 2249. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ea40f0 vs 0x9ea40f0) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ea3df8 vs 0x9ea40f0) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ebe770 vs 0x9ea40f0) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ea40f0 vs 0x9ea40f0) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2011-04-14 11:24:02 [2249] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 2249. 2011-04-14 11:24:02 [2249] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 2249. 2011-04-14 11:24:02 [2249] [0] DEBUG: Started thread 8 (gw/bb_store_file.c:store_dumper) 2011-04-14 11:24:02 [2249] [0] INFO: MAIN: Start-up done, entering mainloop 2011-04-14 11:24:02 [2249] [0] DEBUG: AT2[BSNL]: start called 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: gwlist_len = 3 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ea3df8 vs 0x9ea3df8) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ebe770 vs 0x9ea3df8) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ea40f0 vs 0x9ea3df8) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: handling message (0x9ea3df8 vs 0x9ea3df8) 2011-04-14 11:24:02 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:02 [2249] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2011-04-14 11:24:02 [2249] [8] DEBUG: Thread 8 (gw/bb_store_file.c:store_dumper) maps to pid 2249. 2011-04-14 11:24:02 [2249] [6] INFO: AT2[BSNL]: init device 2011-04-14 11:24:02 [2249] [6] INFO: AT2[BSNL]: speed set to 115200 2011-04-14 11:24:02 [2249] [6] DEBUG: AT2[BSNL]: --> ATZ^M 2011-04-14 11:24:22 [2249] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-04-14 11:24:22 [2249] [0] DEBUG: Shutting down Kannel... 2011-04-14 11:24:22 [2249] [0] DEBUG: shutting down smsc 2011-04-14 11:24:22 [2249] [0] DEBUG: AT2[BSNL]: Shutting down SMSCConn, slow 2011-04-14 11:24:22 [2249] [0] DEBUG: shutting down udp 2011-04-14 11:24:22 [2249] [7] DEBUG: sms_router: gwlist_len = 3 2011-04-14 11:24:22 [2249] [7] DEBUG: sms_router: handling message (0x9ebe770 vs 0x9ebe770) 2011-04-14 11:24:22 [2249] [7] DEBUG: Routing failed, re-queued. 2011-04-14 11:24:22 [2249] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) terminates. 2011-04-14 11:24:22 [2249] [8] DEBUG: Dumping 3 messages to store
2011-04-13 22:36:59 [2177] [6] INFO: AT2[mymodem]: opening device 2011-04-13 22:37:00 [2177] [6] INFO: AT2[mymodem]: speed set to 115200 2011-04-13 22:43:48 [2145] [6] INFO: AT2[mymodem]: opening device 2011-04-13 22:43:50 [2145] [6] INFO: AT2[mymodem]: speed set to 115200 2011-04-13 22:54:08 [2254] [6] DEBUG: AT2[mymodem]: detecting modem speed. 2011-04-13 22:54:08 [2254] [6] INFO: AT2[mymodem]: opening device 2011-04-13 22:54:08 [2254] [6] DEBUG: AT2[mymodem]: device opened. Telnet mode = 0 2011-04-13 22:54:09 [2254] [6] DEBUG: AT2[mymodem]: device opened 2011-04-13 22:54:09 [2254] [6] INFO: AT2[mymodem]: speed set to 115200 2011-04-13 22:54:09 [2254] [6] DEBUG: AT2[mymodem]: --> ^M
