brilliant. have been wanting to do this myself but didnt know how!
By: nyasha
By: DMASOFTLAB Radius Manager SMS Notification Configuration « Syed Jahanzaib Personnel Blog to Share Knowledge !
By: Howto setup Mini ISP using Mikrotik as PPPoE Server + DMASOFTLAB Radius Manager Scratch Card Billing System+ Linux Transparent Firewall Bridge + Ubuntu SQUID 2.7 Proxy Server « Syed Jahanzaib Personnel Blog to Share Knowledge !
[...] Howto configure your Local SMS HTTP Gateway using KANNEL on Ubuntu [...]
By: A.J. Hart
I’m not sure if I’m doing someting wrong but the sent sms dust get’s queued. If I sent a sms through gammu, it works fine – so my modem is working!
Here is my logs.
smsbox.log
2012-12-27 12:31:04 [1371] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2012-12-27 12:31:04 [1371] [0] DEBUG: dumping group (sendsms-user):
2012-12-27 12:31:04 [1371] [0] DEBUG: =
2012-12-27 12:31:04 [1371] [0] DEBUG: =
2012-12-27 12:31:04 [1371] [0] DEBUG: =
2012-12-27 12:31:04 [1371] [0] DEBUG: =
2012-12-27 12:31:04 [1371] [0] DEBUG: =
2012-12-27 12:31:04 [1371] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2012-12-27 12:31:04 [1371] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 1371.
2012-12-27 12:31:04 [1371] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2012-12-27 12:31:04 [1371] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 1371.
2012-12-27 12:31:04 [1371] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2012-12-27 12:31:04 [1371] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 1371.
2012-12-27 12:31:04 [1371] [0] INFO: Connected to bearerbox at localhost port 13001.
2012-12-27 12:31:04 [1371] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2012-12-27 12:31:04 [1371] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 1371.
2012-12-27 12:31:13 [1371] [2] DEBUG: HTTP: Creating HTTPClient for `192.168.111.253′.
2012-12-27 12:31:13 [1371] [2] DEBUG: HTTP: Created HTTPClient area 0x8b03a00.
2012-12-27 12:31:13 [1371] [3] INFO: smsbox: Got HTTP request from
2012-12-27 12:31:13 [1371] [3] INFO: sendsms used by
2012-12-27 12:31:13 [1371] [3] INFO: sendsms sender: (192.168.111.253) to: msg:
2012-12-27 12:31:13 [1371] [3] DEBUG: Stored UUID 09c19c5f-7f31-4905-a296-fff39a6ecc2d
2012-12-27 12:31:13 [1371] [3] DEBUG: message length 16, sending 1 messages
2012-12-27 12:31:13 [1371] [3] DEBUG: Status: 202 Answer:
2012-12-27 12:31:13 [1371] [3] DEBUG: Delayed reply – wait for bearerbox
2012-12-27 12:31:13 [1371] [0] DEBUG: Got ACK (3) of 09c19c5f-7f31-4905-a296-fff39a6ecc2d
2012-12-27 12:31:13 [1371] [0] DEBUG: HTTP: Resetting HTTPClient for `192.168.111.253′.
2012-12-27 12:32:13 [1371] [1] DEBUG: Timeout for fd:24 appeares.
2012-12-27 12:32:13 [1371] [1] DEBUG: HTTP: Destroying HTTPClient area 0x8b03a00.
2012-12-27 12:32:13 [1371] [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.111.253′.
Status Page:
Kannel bearerbox version `1.4.3′. Build `Apr 6 2010 13:16:08′, compiler `4.4.3′. System Linux, release 2.6.32-38-generic-pae, version #83-Ubuntu SMP Wed Jan 4 12:11:13 UTC 2012, machine i686. Hostname ubuntu.hartjies.co.za, IP 192.168.111.5. Libxml version 2.7.6. Using OpenSSL 0.9.8k 25 Mar 2009. Compiled with MySQL 5.1.41, using MySQL 5.1.66. Using native malloc.
Status: running, uptime 0d 0h 39m 55s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (1 queued), store size -1
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 4m 22s)
SMSC connections:
unknown AT2[/dev/ttyUSB1] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs)
Status: running, uptime 0d 0h 39m 55s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (1 queued), store size -1
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 4m 22s)
SMSC connections:
unknown AT2[/dev/ttyUSB1] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs)
SMS Page:
3: Queued for later delivery
Any Advice?
By: A.J. Hart
I Think I found the cause – I have changed the init-string = “AT+CNMI=2,2,0,1,1″ to “AT+CNMI=2,1,0,0,0″.
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened
2012-12-27 15:03:11 [2677] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2012-12-27 15:03:11 [2677] [6] INFO: AT2[/dev/ttyUSB1]: Logging in
2012-12-27 15:03:11 [2677] [0] INFO: MAIN: Start-up done, entering mainloop
2012-12-27 15:03:11 [2677] [0] DEBUG: AT2[/dev/ttyUSB1]: start called
2012-12-27 15:03:11 [2677] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 2677.
2012-12-27 15:03:11 [2677] [6] INFO: AT2[/dev/ttyUSB1]: init device
2012-12-27 15:03:11 [2677] [6] INFO: AT2[/dev/ttyUSB1]: speed set to 19200
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: –> ATZ^M
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT^M
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: <– AT
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT&F^M
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: <– AT&F
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: ATE0^M
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: <– ATE0
2012-12-27 15:03:11 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT+IFC=2,2^M
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT+CPIN?^M
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: <– +CPIN: READY
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT+CMGF=0^M
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT+CSMS=?^M
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: <– +CSMS: (0-1)
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: AT+CNMI=2,1,0,0,0^M
2012-12-27 15:03:12 [2677] [6] DEBUG: AT2[/dev/ttyUSB1]: <– OK
2012-12-27 15:03:12 [2677] [6] INFO: AT2[/dev/ttyUSB1]: AT SMSC successfully opened.
By: bilal waheed
how can I use USSD with kannel
By: bilal waheed
I used same configuration as described by syed jahazaib and its working absolutely fine for me.
By: bilal waheed
I just need one more that how to configure it, so I can send USSD command through it.
By: Haroon Rashidi
Dear Zaib
how can I run kannel on boot
when i restart the system I must run the command ( bearerbox -v 0 /etc/kannel/kannel.conf ) and ( smsbox -v 0 /etc/kannel/kannel.conf ) please help me
By: anand
Hi All,
Please Help me out …below is my error after configuring the kannel sms
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: TP-Validity-Period: 24.0 hours
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: –> AT+CMGS=18^M
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: <– AT+CMGS=18
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]:
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: send command status: 1
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: –> 0011000A8199006262660000A7054167D04904
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: –> ^Z
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: 0011000A8199006262660000A7054167D04904
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: maybe Sim storage is full? I’ll have a look at it. (500)
2014-07-07 15:39:22 [12897] [6] DEBUG: AT2[SMSC1]: send command status: 1
2014-07-07 15:39:22 [12897] [7] DEBUG: sms_router: handling message (0x7fd294000c20 vs 0x7fd294000c20)
2014-07-07 15:39:22 [12897] [7] DEBUG: re-queing SMS not-yet-to-be resent
2014-07-07 15:39:22 [12897] [7] DEBUG: sms_router: handling message (0x7fd294000c20 vs 0x7fd294000c20)
2014-07-07 15:39:22 [12897] [7] DEBUG: re-queing SMS not-yet-to-be resent
2014-07-07 15:39:22 [12897] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2014-07-07 15:39:52 [12897] [7] DEBUG: sms_router: gwlist_len = 1
2014-07-07 15:39:52 [12897] [7] DEBUG: sms_router: handling message (0x7fd294000c20 vs 0x7fd294000c20)
2014-07-07 15:39:52 [12897] [7] DEBUG: re-queing SMS not-yet-to-be resent
2014-07-07 15:39:52 [12897] [7] DEBUG: sms_router: handling message (0x7fd294000c20 vs 0x7fd294000c20)
2014-07-07 15:39:52 [12897] [7] DEBUG: re-queing SMS not-yet-to-be resent
2014-07-07 15:39:52 [12897] [7] DEBUG: sms_router: time to sleep 30.00 secs.
By: Syed Jahanzaib / Pinochio~:)
Check your sim storage.
By: haroonnimroozy
thanks Allah save U
I searched very in google but i doesn’t find how fix this issue thank u
By: Syed Jahanzaib / Pinochio~:)
Welcome. JazakAllah
By: spi plus
how to setup huawei e 1550 usb adapter
By: spi plus
i found
Bus 001 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
By: spi plus
and i have problem
2015-01-11 20:08:26 [32368] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log’ with level `0′.
2015-01-11 20:08:26 [32368] [0] INFO: HTTP: Opening server at port 13000.
2015-01-11 20:08:26 [32368] [0] ERROR: bind failed
2015-01-11 20:08:26 [32368] [0] ERROR: System error 98: Address already in use
2015-01-11 20:08:26 [32368] [0] DEBUG: Started thread 1 (gw/bb_http.c:httpadmin run)
2015-01-11 20:08:26 [32368] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) maps to pid 32368.
2015-01-11 20:08:26 [32368] [1] DEBUG: HTTP: No clients with requests, quitting.
2015-01-11 20:08:26 [32368] [0] DEBUG: starting smsbox connection module
2015-01-11 20:08:26 [32368] [0] INFO: BOXC: ‘smsbox-max-pending’ not set, usingdefault (100).
2015-01-11 20:08:26 [32368] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run) terminates.
2015-01-11 20:08:26 [32368] [0] DEBUG: Started thread 2 (gw/bb_boxc.c:sms_to_sms boxes)
2015-01-11 20:08:26 [32368] [2] DEBUG: Thread 2 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 32368.
2015-01-11 20:08:26 [32368] [0] DEBUG: Started thread 3 (gw/bb_boxc.c:smsboxc_ru n)
2015-01-11 20:08:26 [32368] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) maps to pid 32368.
2015-01-11 20:08:26 [32368] [3] ERROR: bind failed
2015-01-11 20:08:26 [32368] [3] ERROR: System error 98: Address already in use
2015-01-11 20:08:26 [32368] [0] INFO: Set SMS resend frequency to 60 seconds.
2015-01-11 20:08:26 [32368] [3] PANIC: Could not open smsbox port 13001
2015-01-11 20:08:26 [32368] [0] INFO: SMS resend retry set to unlimited.
2015-01-11 20:08:26 [32368] [0] DEBUG: smsbox MO concatenated message handling enabled
2015-01-11 20:08:26 [32368] [3] PANIC: bearerbox(gw_panic+0xcd) [0x80ce67d]
2015-01-11 20:08:26 [32368] [3] PANIC: bearerbox() [0x8057fb8]
2015-01-11 20:08:26 [32368] [3] PANIC: bearerbox() [0x80c585e]
2015-01-11 20:08:26 [32368] [3] PANIC: /lib/libpthread.so.0() [0x548b39]
2015-01-11 20:08:26 [32368] [3] PANIC: /lib/libc.so.6(clone+0x5e) [0x48bd6e]
2015-01-11 20:08:26 [32368] [0] INFO: DLR rerouting for smsc id disabled.
By: Attaullah
Assalam O Alaikum Jahanzeb Bhai,
It is an excellent article. Jazal Allah. I would really appreciate if you can guide us on how to start the kannel and sqlbox on ubuntu 14.04 reboot.
Thanks a lot
By: naveen chittimotu
hi sir,
i am using radius manager in centos7 x64
so can you please update this with Howto configure your Local SMS HTTP Gateway using KANNEL on centos7
By: Syed Jahanzaib / Pinochio~:)
Since I dont have any centos base system for test, I will see later
By: serena
you can install on the same server as the radius manager ?