kannel - sms not sending through huawei e173 - sms

I am new to kannel and i have configured and tried to test
but sms is not delivering.
smskannel.conf
group = core
admin-port = 13003
smsbox-port = 13004
admin-password = bar
log-file = /usr/local/log/kannel.log
access-log = /usr/local/log/access.log
group = modems
id = huawei_e173
name = "Huawei E173"
detect-string = "huawei"
init-string = "AT+CFUN=1"
init-string= “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
init-string = “AT+CNMI=3,2,0,0,0″
init-string = “AT+CMEE=2;+CNMI=3,1,0,0,0″
reset-string = “ATZ”
speed=115200
need-sleep = true
keepalive-cmd = “AT+CBC;+CSQ”
enable-mms = true
message-storage=”SM”
group = smsc
smsc = at
smsc-id = Huawei
modemtype = auto
device=/dev/ttyUSB0
my-number = 00923348648921
sms-center= 00923330005150
connect-allow-ip = localhost
log-level = 0
group = smsbox-route
smsbox-id = ab
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
log-file = /tmp/smsbox.log
log-level = 0
access-log = /tmp/access.log
Test Sms
http://localhost:13013/cgi-bin/sendsms?username=DineshKumaraJayasinghe&password=foobar&to=+94715487593&text=thisisatestmessage
SmsBox log
2014-01-01 14:42:06 [18837] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2014-01-01 14:42:06 [18837] [2] DEBUG: HTTP: Created HTTPClient area 0x7f5078000a80.
2014-01-01 14:42:06 [18837] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
2014-01-01 14:42:06 [18837] [3] INFO: sendsms used by <DineshKumaraJayasinghe>
2014-01-01 14:42:06 [18837] [3] INFO: sendsms sender:<DineshKumaraJayasinghe:13013> (127.0.0.1) to:<0719237093> msg:<thisisatestmessage>
2014-01-01 14:42:06 [18837] [3] DEBUG: Stored UUID f386a11d-ea51-41c2-b391-f419de3bca4a
2014-01-01 14:42:06 [18837] [3] DEBUG: message length 18, sending 1 messages
2014-01-01 14:42:06 [18837] [3] DEBUG: Status: 202 Answer: <Sent.>
2014-01-01 14:42:06 [18837] [3] DEBUG: Delayed reply - wait for bearerbox
2014-01-01 14:42:06 [18837] [0] DEBUG: Got ACK (3) of f386a11d-ea51-41c2-b391-f419de3bca4a
2014-01-01 14:42:06 [18837] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
Bearerbox.log
2014-01-01 14:42:01 [18826] [6] DEBUG: AT2[Huawei]: detecting modem type
2014-01-01 14:42:01 [18826] [6] INFO: AT2[Huawei]: opening device
2014-01-01 14:42:01 [18826] [6] WARNING: AT2[Huawei]: trying to open device with not closed device!!! Please report!!!
2014-01-01 14:42:01 [18826] [6] INFO: AT2[Huawei]: closing device
2014-01-01 14:42:01 [18826] [6] DEBUG: AT2[Huawei]: device opened
2014-01-01 14:42:02 [18826] [6] DEBUG: AT2[Huawei]: device opened
2014-01-01 14:42:02 [18826] [6] INFO: AT2[Huawei]: speed set to 115200
2014-01-01 14:42:02 [18826] [6] DEBUG: AT2[Huawei]: --> ^M
2014-01-01 14:42:04 [18826] [6] DEBUG: AT2[Huawei]: --> AT^M
2014-01-01 14:42:06 [18826] [8] DEBUG: boxc_receiver: sms received
2014-01-01 14:42:06 [18826] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2014-01-01 14:42:06 [18826] [7] DEBUG: sms_router: handling message (0x7fb268001770 vs 0x7fb268001770)
2014-01-01 14:42:06 [18826] [7] DEBUG: sms_router: handling message (0x7fb268001770 vs 0x7fb268001770)
2014-01-01 14:42:06 [18826] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2014-01-01 14:42:08 [18826] [6] DEBUG: AT2[Huawei]: --> AT&F^M
2014-01-01 14:42:12 [18826] [6] DEBUG: AT2[Huawei]: detecting modem type
2014-01-01 14:42:12 [18826] [6] INFO: AT2[Huawei]: opening device
2014-01-01 14:42:12 [18826] [6] WARNING: AT2[Huawei]: trying to open device with not closed device!!! Please report!!!
2014-01-01 14:42:12 [18826] [6] INFO: AT2[Huawei]: closing device
2014-01-01 14:42:12 [18826] [6] DEBUG: AT2[Huawei]: device opened
2014-01-01 14:42:13 [18826] [6] DEBUG: AT2[Huawei]: device opened
2014-01-01 14:42:13 [18826] [6] INFO: AT2[Huawei]: speed set to 115200
2014-01-01 14:42:13 [18826] [6] DEBUG: AT2[Huawei]: --> ^M
2014-01-01 14:42:15 [18826] [6] DEBUG: AT2[Huawei]: --> AT^M
2014-01-01 14:42:19 [18826] [6] DEBUG: AT2[Huawei]: --> AT&F^M
2014-01-01 14:42:20 [18826] [6] DEBUG: AT2[Huawei]: <-- +CIND: 5,0,0,0,0,1,0,0
2014-01-01 14:42:20 [18826] [6] DEBUG: AT2[Huawei]: <-- OK
2014-01-01 14:42:20 [18826] [6] DEBUG: AT2[Huawei]: --> ATE0^M
2014-01-01 14:42:24 [18826] [6] DEBUG: AT2[Huawei]: detecting modem type
2014-01-01 14:42:24 [18826] [6] INFO: AT2[Huawei]: opening device
2014-01-01 14:42:24 [18826] [6] WARNING: AT2[Huawei]: trying to open device with not closed device!!! Please report!!!
2014-01-01 14:42:24 [18826] [6] INFO: AT2[Huawei]: closing device
2014-01-01 14:42:24 [18826] [6] DEBUG: AT2[Huawei]: device opened
2014-01-01 14:42:25 [18826] [6] DEBUG: AT2[Huawei]: device opened
2014-01-01 14:42:25 [18826] [6] INFO: AT2[Huawei]: speed set to 115200
with my log files it seems sms is sending to smsbox and bearerebox as well.
but the test sms not receiving to my phone

Try to replace localhost with 127.0.0.1 in the configuration file and set modemtype = HUAWEI

Related

Kannel: maybe Sim storage is full? I'll have a look at it.(500)

The server was sending SMS properly, but at a moment of time I got this error: ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)
Here are my logs:
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: TP-Validity-Period: 24.0 hours
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: --> AT+CMGS=17^M
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: <-- >
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: send command status: 1
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: --> 0011000A8170440674530000A704E872390F
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: --> ^Z
2016-05-25 14:24:53 [27725] [6] DEBUG: AT2[A]: <-- >
2016-05-25 14:25:14 [27725] [6] DEBUG: AT2[A]: send command status: 1
2016-05-25 14:25:14 [27725] [7] DEBUG: sms_router: handling message (0x7f2934000fc0 vs 0x7f2934000fc0)
2016-05-25 14:25:14 [27725] [7] DEBUG: re-queing SMS not-yet-to-be resent
2016-05-25 14:25:14 [27725] [7] DEBUG: sms_router: handling message (0x7f2934000fc0 vs 0x7f2934000fc0)
2016-05-25 14:25:14 [27725] [7] DEBUG: re-queing SMS not-yet-to-be resent
2016-05-25 14:25:14 [27725] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2016-05-25 14:25:18 [27725] [6] DEBUG: AT2[A]: <- +CMS ERROR: 500
2016-05-25 14:25:18 [27725] [6] ERROR: AT2[A]: CMS ERROR: +CMS ERROR: 500
2016-05-25 14:25:18 [27725] [6] ERROR: AT2[A]: CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look at it. (500)
2016-05-25 14:25:44 [27725] [7] DEBUG: sms_router: gwlist_len = 1
2016-05-25 14:25:44 [27725] [7] DEBUG: sms_router: handling message (0x7f2934000fc0 vs 0x7f2934000fc0)
2016-05-25 14:25:44 [27725] [7] DEBUG: re-queing SMS not-yet-to-be resent
2016-05-25 14:25:44 [27725] [7] DEBUG: sms_router: handling message (0x7f2934000fc0 vs 0x7f2934000fc0)
2016-05-25 14:25:44 [27725] [7] DEBUG: re-queing SMS not-yet-to-be resent
2016-05-25 14:25:44 [27725] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2016-05-25 14:26:14 [27725] [7] DEBUG: sms_router: gwlist_len = 1
2016-05-25 14:26:14 [27725] [7] DEBUG: sms_router: handling message (0x7f2934000fc0 vs 0x7f2934000fc0)
2016-05-25 14:26:14 [27725] [7] DEBUG: Message routed successfully.
I tried to fix it using:
I had configured max-messages = 100 for group = sendsms-user and restarted the server, but same result
I had configured sim-buffering = true and message-storage = "SM" and restarted the server, but same result
I already checked:
The SIM has credit.
The receiver phone number is correct.
Thanks for help,
Valentin
I used this and it worked. Just upgrade kernel to 1.4.5 or 1.5.0 the add to:
group = modems
message-start = 0
After that didn't happen any more, hope this will work for you.

Kannel configuration for CSMS on AT

I am working on a web app that is configured to send smses to mobile clients. My main problem is with the sms settings on the kannel gateway(new to framwork!). When I run the bearerbox, I get the following stack..
2013-01-10 16:17:34 [4875] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2013-01-10 16:17:34 [4875] [0] INFO: MAIN: Start-up done, entering mainloop
2013-01-10 16:17:34 [4875] [0] DEBUG: AT2[Huawei]: start called
2013-01-10 16:17:34 [4875] [6] DEBUG: AT2[Huawei]: device opened. Telnet mode = 0
2013-01-10 16:17:34 [4875] [6] DEBUG: AT2[Huawei]: device opened
2013-01-10 16:17:34 [4875] [6] INFO: AT2[Huawei]: speed set to 9600
2013-01-10 16:17:34 [4875] [6] DEBUG: AT2[Huawei]: --> ^M
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: --> AT^M
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: <-- AT
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:36 [4875] [6] INFO: AT2[Huawei]: Closing device
2013-01-10 16:17:36 [4875] [6] INFO: AT2[Huawei]: speed is 9600
2013-01-10 16:17:36 [4875] [6] INFO: AT2[Huawei]: opening device
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: device opened. Telnet mode = 0
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: device opened
2013-01-10 16:17:36 [4875] [6] INFO: AT2[Huawei]: Logging in
2013-01-10 16:17:36 [4875] [6] INFO: AT2[Huawei]: init device
2013-01-10 16:17:36 [4875] [6] INFO: AT2[Huawei]: speed set to 9600
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: --> ATZ^M
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: <-- ATZ
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: --> AT^M
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: <-- AT
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:36 [4875] [6] DEBUG: AT2[Huawei]: --> AT&F^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- AT&F
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: --> ATE0^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- ATE0
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: --> ATQ0^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: --> AT+CPIN?^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- +CPIN: READY
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: --> AT+CMGF=0^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: --> AT+CSMS=?^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- +CSMS: (0,1,128)
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- OK
2013-01-10 16:17:37 [4875] [6] INFO: AT2[Huawei]: Phase 2+ is supported
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: --> AT+CSMS=1^M
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- +CSMS: 1,1,1
2013-01-10 16:17:37 [4875] [6] DEBUG: AT2[Huawei]: <-- ERROR
2013-01-10 16:17:37 [4875] [6] ERROR: AT2[Huawei]: Generic error: ERROR
2013-01-10 16:17:37 [4875] [6] ERROR: AT2[Huawei]: Initialization of device failed.
2013-01-10 16:17:37 [4875] [6] INFO: AT2[Huawei]: Closing device
I've checked around for similar problems but can't seem to get a clear solution as none of them works so far.
Any help is greatly appreciated...

Kannel Concatenated SMS ACKed but NOT Delivered

I'm using Kannel to send SMSs to an SMSC:
Sending a 1-part SMS (<=160 chars) is ACKed and Delivered to the handset.
Sending a multi-part (long) SMS is:
A. If concatenation = false: split by Kannel, and parts are ACKed and Delived (as unique SMSs).
B. If concatenation = true: split by Kannel, and parts are ACKed but NOT Delived.
Moreover, any subsequent SMSs sent to the destination number that just experienced this case [2.B] are also ACKed but NOT Delivered, even if it was a 1 part SMS!
Has anyone had a similar experience?
Since 1-parters are behaving normally, I suspect the problem is with the concatenation process itself.. but is it from:
Kannel (version or conf?).
The SMSC (does the specific SMSC I'm connecting with require something special?).
The Handset (doubtful, I tried several numbers from several networks and several devices).
The way I'm giving the SMS to Kannel to send (sendsms cgi)?!
The mind-boggling thing is that ALL messages (1-part, separate multi-parts, and concatenated multi-parts) are Accepted for Delivery by the SMSC and delivered EXCEPT concatenated messages that are lost somewhere AND cause the mobile not to receive anything anymore!
Reconnecting to the SMSC does not unblock the number, restarting the phone does not unblock the number. Once a concatenated message is sent to a number, ACKed and Undelivered, nothing will get through to it from kannel.
The number can still receive and display short and long SMSs sent to it from other numbers, even from a web interface the operator (SMSC provider) has for testing!
EDIT: As it turned out, the MSISDN is not blocked indefinitely, just for ~24-hours after submitting the concatenated multi-part SMS. After the 24-hours period, all 1-part SMSs are delivered (at once), but not the multi-part SMS. --which further suggests the problem is within the SMSC I guess?!
EDIT: Problem Found!
The mobile operator finally reported that there is a bug in their SMSC! It's incapable of handling 7-bit (GSM) concatenated messages! UCS-2 concatenation is handled successfully however!
They reported the bug to their SMSC vendor and are waiting for the fix. Meanwhile, they suggested sending 7bit long messages (multi-part) in 8-bit encoding [charset=UTF-8&coding=1 using Kannels' SMSPush URL].
This method worked, but left me with another problem, an 8-bit part can hold up to 134 characters (140 octed - 6 UDH) which is 19 characters less than a 7-bit part. So my question now is: Is it possible to pack a 7-bit string in an 8-bit string using PHP + Kannel in order to bypass the SMSC's bug and send 153 character per part?
Below are the Kannel conf, bearer and sms boxes startup logs, and tests logs.. please help me in figuring this out.. thnx.
smskannel.conf:
group = smsc
smsc = smpp
smsc-id = UMNIAH
host = *****
port = *****
smsc-username = *****
smsc-password = *****
system-type = VMA
interface-version = 34
transceiver-mode = false #only want to send.. no MOs
connect-allow-ip = 127.0.0.1
#thought the below ton and npi confs might fix the problem, but they had no effect
source-addr-ton = 5 #Alphanumeric
source-addr-npi = 0
source-addr-autodetect = false
dest-addr-ton = 1 #International
dest-addr-npi = 0
bind-addr-ton = 0
bind-addr-npi = 0
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
group = sendsms-user
username = tester
password = foobar
max-messages = 5
concatenation = true #false works fine, but I need long messages to be concatenated
#will setup DLR when I get concatenated messages to work
#no services are defined.. only want to send and won't be recieving
bearerbox startup:
[root#vps-1098126-9711 kannel]# sbin/bearerbox smskannel.conf &
[1] 3517
[root#vps-1098126-9711 kannel]# 2012-07-31 03:41:32 [3517] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
[3517] [0] WARNING: DLR: using default 'internal' for storage type.
[3517] [0] INFO: DLR using storage type: internal
[3517] [0] DEBUG: Kannel bearerbox version `1.4.3'.
Build `Jul 4 2012 11:03:53', compiler `4.1.2 20080704 (Red Hat 4.1.2-52)'.
System Linux, release 2.6.32-042stab057.1, version #1 SMP Fri Jun 22 02:17:07 MSD 2012, machine x86_64.
Hostname *****, IP *****.
Libxml version 2.6.26.
Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
Compiled with MySQL 5.5.14, using MySQL 5.5.14.
Using native malloc.
[3517] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'.
[3517] [0] INFO: HTTP: Opening server at port 13000.
[3517] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
[3517] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3517.
[3517] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
[3517] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
[3517] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3517.
[3517] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3517.
[3517] [0] DEBUG: starting smsbox connection module
[3517] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
[3517] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
[3517] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
[3517] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3517.
[3517] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 3517.
[3517] [0] INFO: Set SMS resend frequency to 60 seconds.
[3517] [0] INFO: SMS resend retry set to unlimited.
[3517] [0] DEBUG: smsbox MO concatenated message handling enabled
[3517] [0] INFO: DLR rerouting for smsc id <UMNIAH> disabled.
[3517] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread)
[3517] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
[3517] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 3517.
[3517] [0] INFO: ----------------------------------------
[3517] [0] INFO: Kannel bearerbox II version 1.4.3 starting
[3517] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 3517.
[3517] [0] INFO: MAIN: Start-up done, entering mainloop
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG: type_name: bind_transmitter
[3517] [6] DEBUG: command_id: 2 = 0x00000002
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 1 = 0x00000001
[3517] [6] DEBUG: system_id: "*****"
[3517] [6] DEBUG: password: "*****"
[3517] [6] DEBUG: system_type: "VMA"
[3517] [6] DEBUG: interface_version: 52 = 0x00000034
[3517] [6] DEBUG: addr_ton: 0 = 0x00000000
[3517] [6] DEBUG: addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: address_range: NULL
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG: type_name: bind_transmitter_resp
[3517] [6] DEBUG: command_id: 2147483650 = 0x80000002
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 1 = 0x00000001
[3517] [6] DEBUG: system_id: "*****"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending enquire link:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG: type_name: enquire_link
[3517] [6] DEBUG: command_id: 21 = 0x00000015
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 2 = 0x00000002
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e37300 dump:
[3517] [6] DEBUG: type_name: enquire_link_resp
[3517] [6] DEBUG: command_id: 2147483669 = 0x80000015
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 2 = 0x00000002
[3517] [6] DEBUG: SMPP PDU dump ends.
smsbox startup:
[root#vps-1098126-9711 kannel]# sbin/smsbox smskannel.conf &
[2] 3525
[root#vps-1098126-9711 kannel]# 2012-07-31 03:43:25 [3525] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
[3525] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Jul 4 2012 11:03:53', compiler `4.1.2 20080704 (Red Hat 4.1.2-52)'.
System Linux, release 2.6.32-042stab057.1, version #1 SMP Fri Jun 22 02:17:07 MSD 2012, machine x86_64.
Hostname *****, IP *****.
Libxml version 2.6.26.
Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
Compiled with MySQL 5.5.14, using MySQL 5.5.14.
Using native malloc.
[3525] [0] INFO: Starting to log to file /tmp/smsbox.log level 0
[3525] [0] INFO: Added logfile `/tmp/smsbox.log' with level `0'.
[3525] [0] INFO: Service global sender set as '13013'
[3525] [0] INFO: HTTP: Opening server at port 13013.
[3525] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
[3525] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
[3525] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3525.
[3525] [0] INFO: Set up send sms service at port 13013
[3525] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3525.
[3525] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
[3525] [0] DEBUG: ----------------------------------------------
[3525] [0] DEBUG: Kannel smsbox version 1.4.3 starting
[3525] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3525.
[3525] [0] DEBUG: dumping group (sendsms-user):
[3525] [0] DEBUG: <group> = <sendsms-user>
[3525] [0] DEBUG: <max-messages> = <5>
[3525] [0] DEBUG: <username> = <tester>
[3525] [0] DEBUG: <concatenation> = <true>
[3525] [0] DEBUG: <password> = <foobar>
[3525] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
[3525] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 3525.
[3525] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
[3525] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3525.
[3525] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
[3525] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 3525.
[3525] [0] INFO: Connected to bearerbox at 127.0.0.1 port 13001.
[3517] [5] INFO: Client connected from <127.0.0.1>
[3525] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
[3525] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 3525.
[3517] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
[3517] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 3517.
[3517] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
[3517] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 3517.
1-part request --Actually Delivered:
[root#vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962796061912&text=test123&charset=UTF-8&coding=0"
0: Accepted for delivery
[3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
[3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1db8280.
[3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3525] [3] INFO: sendsms used by <tester>
[3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962796061912> msg:<test123>
[3525] [3] DEBUG: Stored UUID fe83e486-a35b-43a5-9592-0a11ef19153d
[3525] [3] DEBUG: message length 7, sending 1 messages
[3525] [3] DEBUG: Status: 202 Answer: <Sent.>
[3525] [3] DEBUG: Delayed reply - wait for bearerbox
[3517] [8] DEBUG: boxc_receiver: sms received
[3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3525] [0] DEBUG: Got ACK (0) of fe83e486-a35b-43a5-9592-0a11ef19153d
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e392b0 dump:
[3517] [6] DEBUG: type_name: submit_sm
[3517] [6] DEBUG: command_id: 4 = 0x00000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 15 = 0x0000000f
[3517] [6] DEBUG: service_type: NULL
[3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: source_addr: "test"
[3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: destination_addr: "962796061912"
[3517] [6] DEBUG: esm_class: 3 = 0x00000003
[3517] [6] DEBUG: protocol_id: 0 = 0x00000000
[3517] [6] DEBUG: priority_flag: 0 = 0x00000000
[3517] [6] DEBUG: schedule_delivery_time: NULL
[3517] [6] DEBUG: validity_period: NULL
[3517] [6] DEBUG: registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG: data_coding: 0 = 0x00000000
[3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1db8280.
[3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG: sm_length: 7 = 0x00000007
[3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: short_message: "test123"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e392b0 dump:
[3517] [6] DEBUG: type_name: submit_sm_resp
[3517] [6] DEBUG: command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 15 = 0x0000000f
[3517] [6] DEBUG: message_id: "65B634C3"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending enquire link:
[3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump:
[3517] [6] DEBUG: type_name: enquire_link
[3517] [6] DEBUG: command_id: 21 = 0x00000015
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 16 = 0x00000010
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump:
[3517] [6] DEBUG: type_name: enquire_link_resp
[3517] [6] DEBUG: command_id: 2147483669 = 0x80000015
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 16 = 0x00000010
[3517] [6] DEBUG: SMPP PDU dump ends.
Multi-part request [concatenation = true] --NOT Delivered:
[root#vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962796061912&text=test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123&charset=UTF-8&coding=0"
0: Accepted for delivery
[3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
[3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1dbfc00.
[3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3525] [3] INFO: sendsms used by <tester>
[3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962796061912> msg:<test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123test123>
[3525] [3] DEBUG: Stored UUID 273d4165-ab63-4757-857a-a64413b95bc8
[3525] [3] DEBUG: message length 168, sending 2 messages
[3525] [3] DEBUG: Status: 202 Answer: <Sent. Message splits: 2>
[3525] [3] DEBUG: Delayed reply - wait for bearerbox
[3517] [8] DEBUG: boxc_receiver: sms received
[3517] [8] DEBUG: new split_parts created 0x1e33a00
[3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3525] [0] DEBUG: Got ACK (0) of 273d4165-ab63-4757-857a-a64413b95bc8
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG: type_name: submit_sm
[3517] [6] DEBUG: command_id: 4 = 0x00000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 29 = 0x0000001d
[3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: service_type: NULL
[3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: source_addr: "test"
[3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: destination_addr: "962796061912"
[3517] [6] DEBUG: esm_class: 67 = 0x00000043
[3517] [6] DEBUG: protocol_id: 0 = 0x00000000
[3517] [6] DEBUG: priority_flag: 0 = 0x00000000
[3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1dbfc00.
[3517] [6] DEBUG: schedule_delivery_time: NULL
[3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: validity_period: NULL
[3517] [6] DEBUG: registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG: data_coding: 0 = 0x00000000
[3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG: sm_length: 159 = 0x0000009f
[3517] [6] DEBUG: short_message:
[3517] [6] DEBUG: Octet string at 0x1e392b0:
[3517] [6] DEBUG: len: 159
[3517] [6] DEBUG: size: 1024
[3517] [6] DEBUG: immutable: 0
[3517] [6] DEBUG: data: 05 00 03 01 02 01 74 65 73 74 31 32 33 74 65 73 ......test123tes
[3517] [6] DEBUG: data: 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 t123test123test1
[3517] [6] DEBUG: data: 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 33 23test123test123
[3517] [6] DEBUG: data: 74 65 73 74 31 32 33 74 65 73 74 31 32 33 74 65 test123test123te
[3517] [6] DEBUG: data: 73 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 st123test123test
[3517] [6] DEBUG: data: 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 123test123test12
[3517] [6] DEBUG: data: 33 74 65 73 74 31 32 33 74 65 73 74 31 32 33 74 3test123test123t
[3517] [6] DEBUG: data: 65 73 74 31 32 33 74 65 73 74 31 32 33 74 65 73 est123test123tes
[3517] [6] DEBUG: data: 74 31 32 33 74 65 73 74 31 32 33 74 65 73 74 31 t123test123test1
[3517] [6] DEBUG: data: 32 33 74 65 73 74 31 32 33 74 65 73 74 31 32 23test123test12
[3517] [6] DEBUG: Octet string dump ends.
[3517] [6] DEBUG: more_messages_to_send: 1 = 0x00000001
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG: type_name: submit_sm
[3517] [6] DEBUG: command_id: 4 = 0x00000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 30 = 0x0000001e
[3517] [6] DEBUG: service_type: NULL
[3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: source_addr: "test"
[3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: destination_addr: "962796061912"
[3517] [6] DEBUG: esm_class: 67 = 0x00000043
[3517] [6] DEBUG: protocol_id: 0 = 0x00000000
[3517] [6] DEBUG: priority_flag: 0 = 0x00000000
[3517] [6] DEBUG: schedule_delivery_time: NULL
[3517] [6] DEBUG: validity_period: NULL
[3517] [6] DEBUG: registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG: data_coding: 0 = 0x00000000
[3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG: sm_length: 21 = 0x00000015
[3517] [6] DEBUG: short_message:
[3517] [6] DEBUG: Octet string at 0x1e394d0:
[3517] [6] DEBUG: len: 21
[3517] [6] DEBUG: size: 1024
[3517] [6] DEBUG: immutable: 0
[3517] [6] DEBUG: data: 05 00 03 01 02 02 33 74 65 73 74 31 32 33 74 65 ......3test123te
[3517] [6] DEBUG: data: 73 74 31 32 33 st123
[3517] [6] DEBUG: Octet string dump ends.
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG: type_name: submit_sm_resp
[3517] [6] DEBUG: command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 29 = 0x0000001d
[3517] [6] DEBUG: message_id: "65B6354E"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38f80 dump:
[3517] [6] DEBUG: type_name: submit_sm_resp
[3517] [6] DEBUG: command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 30 = 0x0000001e
[3517] [6] DEBUG: message_id: "65B6354F"
[3517] [6] DEBUG: SMPP PDU dump ends.
1-part request (same as the one from before) NOT Delivered This Time!:
[root#vps-1098126-9711 kannel]# curl "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=test&to=962796061912&text=test123&charset=UTF-8&coding=0"
0: Accepted for delivery
[3525] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
[3525] [2] DEBUG: HTTP: Created HTTPClient area 0x1dc3060.
[3525] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
[3525] [3] INFO: sendsms used by <tester>
[3525] [3] INFO: sendsms sender:<tester:test> (127.0.0.1) to:<962796061912> msg:<test123>
[3525] [3] DEBUG: Stored UUID 18070d9d-dafb-4a27-8e10-e5573b4e48d4
[3525] [3] DEBUG: message length 7, sending 1 messages
[3525] [3] DEBUG: Status: 202 Answer: <Sent.>
[3525] [3] DEBUG: Delayed reply - wait for bearerbox
[3517] [8] DEBUG: boxc_receiver: sms received
[3517] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced source addr ton = 5, source add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Manually forced dest addr ton = 1, dest add npi = 0
[3517] [6] DEBUG: SMPP[UMNIAH]: Sending PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e3c830 dump:
[3517] [6] DEBUG: type_name: submit_sm
[3517] [6] DEBUG: command_id: 4 = 0x00000004
[3525] [0] DEBUG: Got ACK (0) of 18070d9d-dafb-4a27-8e10-e5573b4e48d4
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 44 = 0x0000002c
[3517] [6] DEBUG: service_type: NULL
[3517] [6] DEBUG: source_addr_ton: 5 = 0x00000005
[3517] [6] DEBUG: source_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: source_addr: "test"
[3517] [6] DEBUG: dest_addr_ton: 1 = 0x00000001
[3517] [6] DEBUG: dest_addr_npi: 0 = 0x00000000
[3517] [6] DEBUG: destination_addr: "962796061912"
[3517] [6] DEBUG: esm_class: 3 = 0x00000003
[3525] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: protocol_id: 0 = 0x00000000
[3517] [6] DEBUG: priority_flag: 0 = 0x00000000
[3517] [6] DEBUG: schedule_delivery_time: NULL
[3517] [6] DEBUG: validity_period: NULL
[3517] [6] DEBUG: registered_delivery: 0 = 0x00000000
[3517] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000
[3517] [6] DEBUG: data_coding: 0 = 0x00000000
[3517] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
[3517] [6] DEBUG: sm_length: 7 = 0x00000007
[3517] [6] DEBUG: short_message: "test123"
[3517] [6] DEBUG: SMPP PDU dump ends.
[3525] [1] DEBUG: HTTP: Destroying HTTPClient area 0x1dc3060.
[3525] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
[3517] [6] DEBUG: SMPP[UMNIAH]: Got PDU:
[3517] [6] DEBUG: SMPP PDU 0x1e38cc0 dump:
[3517] [6] DEBUG: type_name: submit_sm_resp
[3517] [6] DEBUG: command_id: 2147483652 = 0x80000004
[3517] [6] DEBUG: command_status: 0 = 0x00000000
[3517] [6] DEBUG: sequence_number: 44 = 0x0000002c
[3517] [6] DEBUG: message_id: "65B63601"
[3517] [6] DEBUG: SMPP PDU dump ends.
Is it possible to pack a 7-bit string in an 8-bit string using PHP + Kannel in order to bypass the SMSC's bug and send 153 character per part?
Unlikely. When you set coding=1 in your sendsms URL, this changes the data_coding parameter in the SMS PDU. It sets it to "unspecified octet" which handsets will probably not ever try to decode as 7-bit GSM messages.
Interestingly, according to a comment in the source code of Android's SMS parsing, some carriers use this data_coding to send text messages in UTF8.

Error in sending sms to oversea mobile number by using Kannel gateway

I'm in Cambodia, and I'm currently able to use kannel gateway to send sms to local mobile numbers. However, I run into an error why trying to send SMS to oversea mobile number (Singapore mobile number). If I take out my sim card and place into a phone, I'm able to send the SMS to oversea.
The error is 2011-01-11 10:58:04 [3960] [6] ERROR: AT2[abcd]: Generic error: ERROR
Has anyone ever encountered this issue? I really appreciate for your help. Thank you.
I'm using Kannel 1.4.3 installed on Ubuntu 10.04 LTS. I use a wavecom modem whose model is WAVECOM FASTRACK type DUAL BRANCH MODEM connected to kannel via serial port.
This is the command I use to send SMS from a web browser
http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from=+85516872490&to=+6597379814&text=TestSendingAnSMSFromTheSystem
Below are my config file and log files.
Should you need further detail, please let me know.
Config file: kannel.conf
group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
smsbox-port-ssl = false
log-file = "/home/sambath/Documents/softwares/kannel/kannel.log"
log-level = 0
access-log = "/home/sambath/Documents/softwares/kannel/access.log"
access-log-clean = true
sms-resend-retry = 0
# SMSC GSM
group = smsc
smsc = at
smsc-id = abcd
modemtype = wavecom
device = /dev/ttyUSB0
pin = 0000
alt-charset = "ASCII"
group = modems
id = wavecom
name = "wavecom"
detect-string = "wavecom"
message-storage = sm
speed = 115200
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
log-file = "/home/sambath/Documents/softwares/kannel/smsbox.log"
access-log = "/home/sambath/Documents/softwares/kannel/access.log"
mo-recode = true
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
# SMS SERVICES
group = sms-service
keyword = default
get-url = "http://localhost:8080/ReceiveSms.php?sender=%p&text=%a"
catch-all = true
max-messages = 0
Log file: kannel.log
2011-01-11 10:57:44 [3960] [0] INFO: Added logfile `/home/sambath/Documents/softwares/kannel/kannel.log' with level `0'.
2011-01-11 10:57:44 [3960] [0] INFO: Started access logfile `/home/sambath/Documents/softwares/kannel/access.log'.
2011-01-11 10:57:44 [3960] [0] INFO: SSL not supported, no SSL initialization done.
2011-01-11 10:57:44 [3960] [0] INFO: HTTP: Opening server at port 13000.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2011-01-11 10:57:44 [3960] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2011-01-11 10:57:44 [3960] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: starting smsbox connection module
2011-01-11 10:57:44 [3960] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
2011-01-11 10:57:44 [3960] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2011-01-11 10:57:44 [3960] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] INFO: Set SMS resend frequency to 60 seconds.
2011-01-11 10:57:44 [3960] [0] INFO: SMS resend retry set to 0.
2011-01-11 10:57:44 [3960] [0] DEBUG: smsbox MO concatenated message handling enabled
2011-01-11 10:57:44 [3960] [0] INFO: DLR rerouting for smsc id <abcd> disabled.
2011-01-11 10:57:44 [3960] [0] INFO: AT2[abcd]: configuration shows modemtype <wavecom>
2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: Reading modem definitions from <kannel.conf>
2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: Found <1> modems in config
2011-01-11 10:57:44 [3960] [0] INFO: AT2[abcd]: read modem definition for <wavecom>
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread)
2011-01-11 10:57:44 [3960] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2011-01-11 10:57:44 [3960] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 3960.
2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: trying to use speed <115200> from modem definition
2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: opening device
2011-01-11 10:57:44 [3960] [0] INFO: ----------------------------------------
2011-01-11 10:57:44 [3960] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2011-01-11 10:57:44 [3960] [0] INFO: MAIN: Start-up done, entering mainloop
2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: start called
2011-01-11 10:57:44 [3960] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3960.
2011-01-11 10:57:44 [3960] [6] DEBUG: AT2[abcd]: device opened. Telnet mode = 0
2011-01-11 10:57:44 [3960] [6] DEBUG: AT2[abcd]: device opened
2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: speed set to 115200
2011-01-11 10:57:44 [3960] [6] DEBUG: AT2[abcd]: --> ^M
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: --> AT^M
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- AT
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: Closing device
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: speed is 115200
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: opening device
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: device opened. Telnet mode = 0
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: device opened
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: Logging in
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: init device
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: speed set to 115200
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: --> ATZ^M
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- ATZ
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: --> AT^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- AT
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> AT&F^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- AT&F
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> ATE0^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- ATE0
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> AT+IFC=2,2^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> AT+CPIN?^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- +CPIN: READY
2011-01-11 10:57:48 [3960] [5] INFO: Client connected from <127.0.0.1>
2011-01-11 10:57:48 [3960] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2011-01-11 10:57:48 [3960] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 3960.
2011-01-11 10:57:48 [3960] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
2011-01-11 10:57:48 [3960] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 3960.
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CMGF=0^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CSMS=?^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- +CSMS: (0,1)
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] INFO: AT2[abcd]: Phase 2+ is supported
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CSMS=1^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- +CSMS: 1,1,1
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CNMI=1,2,0,1,0^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] INFO: AT2[abcd]: AT SMSC successfully opened.
2011-01-11 10:58:00 [3960] [8] DEBUG: boxc_receiver: sms received
2011-01-11 10:58:00 [3960] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: TP-Validity-Period: 24.0 hours
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: --> AT+CMGS=39^M
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: <--
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: <-- >
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: send command status: 1
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: --> 0011000A8156797377780000A71DD4F29C3E2DBBC969F739E89E36A746F9BB4D4597A7F939BDDC06
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: --> ^Z
2011-01-11 10:58:04 [3960] [6] DEBUG: AT2[abcd]: <-- ERROR
2011-01-11 10:58:04 [3960] [6] ERROR: AT2[abcd]: Generic error: ERROR
2011-01-11 10:58:04 [3960] [6] DEBUG: AT2[abcd]: send command status: -1
2011-01-11 10:58:04 [3960] [7] DEBUG: sms_router: handling message (0x9268090 vs 0x9268090)
2011-01-11 10:58:04 [3960] [7] DEBUG: re-queing SMS not-yet-to-be resent
Log file: smsbox.log
2011-01-11 10:57:48 [3968] [0] INFO: Added logfile `/home/sambath/Documents/softwares/kannel/smsbox.log' with level `0'.
2011-01-11 10:57:48 [3968] [0] INFO: Logging accesses to '/home/sambath/Documents/softwares/kannel/access.log'.
2011-01-11 10:57:48 [3968] [0] INFO: Started access logfile `/home/sambath/Documents/softwares/kannel/access.log'.
2011-01-11 10:57:48 [3968] [0] INFO: HTTP: Opening server at port 13013.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2011-01-11 10:57:48 [3968] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2011-01-11 10:57:48 [3968] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] INFO: Set up send sms service at port 13013
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2011-01-11 10:57:48 [3968] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: ----------------------------------------------
2011-01-11 10:57:48 [3968] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2011-01-11 10:57:48 [3968] [0] DEBUG: dumping group (sendsms-user):
2011-01-11 10:57:48 [3968] [0] DEBUG: <group> = <sendsms-user>
2011-01-11 10:57:48 [3968] [0] DEBUG: <username> = <tester>
2011-01-11 10:57:48 [3968] [0] DEBUG: <password> = <foobar>
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2011-01-11 10:57:48 [3968] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2011-01-11 10:57:48 [3968] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2011-01-11 10:57:48 [3968] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] INFO: Connected to bearerbox at localhost port 13001.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2011-01-11 10:57:48 [3968] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 3968.
2011-01-11 10:58:00 [3968] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2011-01-11 10:58:00 [3968] [2] DEBUG: HTTP: Created HTTPClient area 0x84472b0.
2011-01-11 10:58:00 [3968] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
2011-01-11 10:58:00 [3968] [3] INFO: sendsms used by <tester>
2011-01-11 10:58:00 [3968] [3] INFO: sendsms sender:<tester: 85516872490> (127.0.0.1) to:< 6597379814> msg:<TestSendingAnSMSFromTheSystem>
2011-01-11 10:58:00 [3968] [3] DEBUG: Stored UUID 7b596f94-9784-456c-bd51-930b1f129df0
2011-01-11 10:58:00 [3968] [3] DEBUG: message length 29, sending 1 messages
2011-01-11 10:58:00 [3968] [3] DEBUG: Status: 202 Answer: <Sent.>
2011-01-11 10:58:00 [3968] [3] DEBUG: Delayed reply - wait for bearerbox
2011-01-11 10:58:00 [3968] [0] DEBUG: Got ACK (0) of 7b596f94-9784-456c-bd51-930b1f129df0
2011-01-11 10:58:00 [3968] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
Try replacing the + with 00..so your destination number should be 0065xxxxxx

How to config kannel gateway to receive messages from mobile phone?

I'm using Kannel as an SMS gateway to send and receive SMS messages. I have downloaded, installed, and configured Kannel according to the document guided. I can send an SMS by typing http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&from="from number"&to="to number"&text=Testing in a browser. However, when I send an SMS from a phone to the gateway, I got the error ERROR: request failed.
I'm using Kannel 1.4.3 installed on Ubuntu 10.04 LTS. I use a wavecom modem whose model is WAVECOM FASTRACK type DUAL BRANCH MODEM connected to kannel via serial port.
Should you need further information, please let me know.
I'm really thankful for your help.
Kannel.conf
group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
smsbox-port-ssl = false
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/home/sambath/kannel/access.log"
access-log-clean = true
# SMSC GSM
group = smsc
smsc = at
smsc-id = abc
modemtype = wavecom
device = /dev/ttyUSB0
pin = 0000
alt-charset = "ASCII"
group = modems
id = wavecom
name = "wavecom"
detect-string = "wavecom"
message-storage = sm
speed = 115200
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
#log-level = 0
access-log = "/home/sambath/kannel/access.log"
mo-recode = true
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
access.log
2010-10-04 14:36:30 Log begins
Receive SMS [SMSC:abc] [SVC:] [ACT:] [BINF:] [FID:] [from:+85516635262] [to:1234] [flags:-1:0:-1:0:-1] [msg:5:Hello] [udh:0:]
Sent SMS [SMSC:abc] [SVC:] [ACT:] [BINF:] [FID:] [from:1234] [to:+85516635262] [flags:-1:0:-1:-1:-1] [msg:14:Request Failed] [udh:0:]
2010-10-04 14:36:55 Log ends
Receive SMS [SMSC:abc] [SVC:] [ACT:] [BINF:] [FID:] [from:+85516635262] [to:1234] [flags:0:0:-1:0:-1] [msg:113:Your message on <04/10/10,14:36> has been received by +85516635262 on <04/10/10,14:36> Thank you for using hello.] [udh:0:]
kannel.log
2010-10-04 14:36:15 [2524] [0] INFO: Added logfile `/tmp/kannel.log' with level `0'.
2010-10-04 14:36:15 [2524] [0] INFO: Started access logfile `/home/sambath/kannel/access.log'.
2010-10-04 14:36:15 [2524] [0] INFO: SSL not supported, no SSL initialization done.
2010-10-04 14:36:15 [2524] [0] INFO: HTTP: Opening server at port 13000.
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2010-10-04 14:36:15 [2524] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2010-10-04 14:36:15 [2524] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2010-10-04 14:36:15 [2524] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] DEBUG: starting smsbox connection module
2010-10-04 14:36:15 [2524] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
2010-10-04 14:36:15 [2524] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2010-10-04 14:36:15 [2524] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-10-04 14:36:15 [2524] [0] INFO: SMS resend retry set to unlimited.
2010-10-04 14:36:15 [2524] [0] DEBUG: smsbox MO concatenated message handling enabled
2010-10-04 14:36:15 [2524] [0] INFO: DLR rerouting for smsc id <abc> disabled.
2010-10-04 14:36:15 [2524] [0] INFO: AT2[abc]: configuration shows modemtype <wavecom>
2010-10-04 14:36:15 [2524] [0] DEBUG: AT2[abc]: Reading modem definitions from <kannel.conf>
2010-10-04 14:36:15 [2524] [0] DEBUG: AT2[abc]: Found <1> modems in config
2010-10-04 14:36:15 [2524] [0] INFO: AT2[abc]: read modem definition for <wavecom>
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread)
2010-10-04 14:36:15 [2524] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2010-10-04 14:36:15 [2524] [6] INFO: AT2[abc]: trying to use speed <115200> from modem definition
2010-10-04 14:36:15 [2524] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 2524.
2010-10-04 14:36:15 [2524] [0] INFO: ----------------------------------------
2010-10-04 14:36:15 [2524] [6] INFO: AT2[abc]: opening device
2010-10-04 14:36:15 [2524] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2010-10-04 14:36:15 [2524] [0] INFO: MAIN: Start-up done, entering mainloop
2010-10-04 14:36:15 [2524] [0] DEBUG: AT2[abc]: start called
2010-10-04 14:36:15 [2524] [6] DEBUG: AT2[abc]: device opened. Telnet mode = 0
2010-10-04 14:36:15 [2524] [6] DEBUG: AT2[abc]: device opened
2010-10-04 14:36:15 [2524] [6] INFO: AT2[abc]: speed set to 115200
2010-10-04 14:36:15 [2524] [6] DEBUG: AT2[abc]: --> ^M
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: --> AT^M
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:17 [2524] [6] INFO: AT2[abc]: Closing device
2010-10-04 14:36:17 [2524] [6] INFO: AT2[abc]: speed is 115200
2010-10-04 14:36:17 [2524] [6] INFO: AT2[abc]: opening device
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: device opened. Telnet mode = 0
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: device opened
2010-10-04 14:36:17 [2524] [6] INFO: AT2[abc]: Logging in
2010-10-04 14:36:17 [2524] [6] INFO: AT2[abc]: init device
2010-10-04 14:36:17 [2524] [6] INFO: AT2[abc]: speed set to 115200
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: --> ATZ^M
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:17 [2524] [6] DEBUG: AT2[abc]: --> AT^M
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- AT
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: --> AT&F^M
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- AT&F
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: --> ATE0^M
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- ATE0
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: --> AT+IFC=2,2^M
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: --> AT+CPIN?^M
2010-10-04 14:36:18 [2524] [6] DEBUG: AT2[abc]: <-- +CPIN: READY
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: --> AT+CMGF=0^M
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: --> AT+CSMS=?^M
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: <-- +CSMS: (0,1)
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:29 [2524] [6] INFO: AT2[abc]: Phase 2+ is supported
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: --> AT+CSMS=1^M
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: <-- +CSMS: 1,1,1
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: --> AT+CNMI=1,2,0,1,0^M
2010-10-04 14:36:29 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:29 [2524] [6] INFO: AT2[abc]: AT SMSC successfully opened.
2010-10-04 14:36:30 [2524] [5] INFO: Client connected from <127.0.0.1>
2010-10-04 14:36:30 [2524] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2010-10-04 14:36:30 [2524] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 2524.
2010-10-04 14:36:30 [2524] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
2010-10-04 14:36:30 [2524] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 2524.
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: <-- +CMT: ,24
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: <-- 07915815860000F0240B915815665362F200000101404163218205C8329BFD06
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: received message from SMSC: +85516800000
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: Numeric sender (international) <+85516635262>
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: User data length read as (5)
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: Udh decoding done len=5 udhi=0 udhlen=0 udh=''
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: --> AT+CNMA^M
2010-10-04 14:36:46 [2524] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-10-04 14:36:46 [2524] [9] DEBUG: boxc_sender: sent message to <127.0.0.1>
2010-10-04 14:36:46 [2524] [8] DEBUG: boxc_receiver: sms received
2010-10-04 14:36:46 [2524] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-10-04 14:36:46 [2524] [8] DEBUG: boxc_receiver: got ack
2010-10-04 14:36:46 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:47 [2524] [6] DEBUG: AT2[abc]: TP-Validity-Period: 24.0 hours
2010-10-04 14:36:47 [2524] [6] DEBUG: AT2[abc]: --> AT+CMGS=27^M
2010-10-04 14:36:47 [2524] [6] DEBUG: AT2[abc]: <-- >
2010-10-04 14:36:47 [2524] [6] DEBUG: AT2[abc]: send command status: 1
2010-10-04 14:36:47 [2524] [6] DEBUG: AT2[abc]: --> 0011000B915815665362F20000A70ED272BC5E9ED341C6709A5D2603
2010-10-04 14:36:47 [2524] [6] DEBUG: AT2[abc]: --> ^Z
2010-10-04 14:36:49 [2524] [6] DEBUG: AT2[abc]: <-- >
2010-10-04 14:36:49 [2524] [6] DEBUG: AT2[abc]: <-- +CMGS: 122
2010-10-04 14:36:49 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:36:49 [2524] [6] DEBUG: AT2[abc]: send command status: 0
2010-10-04 14:36:55 [2524] [8] DEBUG: boxc_receiver: heartbeat with load value 0 received
2010-10-04 14:36:55 [2524] [8] INFO: Connection closed by the box <127.0.0.1>
2010-10-04 14:36:55 [2524] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2010-10-04 14:36:55 [2524] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) terminates.
2010-10-04 14:36:55 [2524] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) terminates.
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: <-- +CMT: ,118
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: <-- 07915815860000F0040B915815665362F200100101404163328271D9775D0E6A97E7F3F0B90C7ABB413C18ED1583BD6230568CA69BD97C2074780E1297CB6E90BC3C2EA7ED6532489C07AD70B55ACC669BD5643619E8ED06F160B4570CF68AC158319A6E66F381A8E8B07B0DCABFEB20F35B0EAACFD3EE33085D66B3DF2E
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: received message from SMSC: +85516800000
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: Numeric sender (international) <+85516635262>
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: User data length read as (113)
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: Udh decoding done len=113 udhi=0 udhlen=0 udh=''
2010-10-04 14:36:58 [2524] [6] WARNING: smsbox_list empty!
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: --> AT+CNMA^M
2010-10-04 14:36:58 [2524] [4] WARNING: smsbox_list empty!
2010-10-04 14:36:58 [2524] [4] WARNING: smsbox_list empty!
2010-10-04 14:36:58 [2524] [6] DEBUG: AT2[abc]: <-- OK
2010-10-04 14:37:02 [2524] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2010-10-04 14:37:02 [2524] [2] DEBUG: HTTP: Created HTTPClient area 0x957b368.
2010-10-04 14:37:02 [2524] [3] DEBUG: Shutting down Kannel...
2010-10-04 14:37:02 [2524] [3] DEBUG: shutting down smsc
2010-10-04 14:37:02 [2524] [3] DEBUG: AT2[abc]: Shutting down SMSCConn, slow
2010-10-04 14:37:02 [2524] [3] DEBUG: shutting down udp
2010-10-04 14:37:02 [2524] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
2010-10-04 14:37:02 [2524] [0] WARNING: Killing signal or HTTP admin command received, shutting down...
2010-10-04 14:37:03 [2524] [6] INFO: AT2[abc]: Closing device
2010-10-04 14:37:03 [2524] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) terminates.
2010-10-04 14:37:12 [2524] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) terminates.
2010-10-04 14:37:12 [2524] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates.
2010-10-04 14:37:12 [2524] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates.
2010-10-04 14:37:12 [2524] [0] INFO: All flow threads have died, killing core
2010-10-04 14:37:12 [2524] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate
2010-10-04 14:37:12 [2524] [3] DEBUG: HTTP: No clients with requests, quitting.
2010-10-04 14:37:12 [2524] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates.
2010-10-04 14:37:12 [2524] [2] DEBUG: HTTP: Destroying HTTPClient area 0x957b368.
2010-10-04 14:37:12 [2524] [2] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
2010-10-04 14:37:12 [2524] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates.
2010-10-04 14:37:12 [2524] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates.
2010-10-04 14:37:12 [2524] [0] DEBUG: final clean-up for SMSCConn
2010-10-04 14:37:12 [2524] [0] DEBUG: smsbox MO concatenated message handling cleaned up
2010-10-04 14:37:12 [2524] [0] INFO: Total WDP messages: received 0, sent 0
2010-10-04 14:37:12 [2524] [0] DEBUG: Remaining SMS: 1 incoming, 0 outgoing
2010-10-04 14:37:12 [2524] [0] INFO: Total SMS messages: received 2, sent 1
2010-10-04 14:37:12 [2524] [0] DEBUG: Immutable octet strings: 230.
**smsbox.log**
2010-10-04 14:36:30 [2535] [0] INFO: Added logfile `/tmp/smsbox.log' with level `0'.
2010-10-04 14:36:30 [2535] [0] INFO: Logging accesses to '/home/sambath/kannel/access.log'.
2010-10-04 14:36:30 [2535] [0] INFO: Started access logfile `/home/sambath/kannel/access.log'.
2010-10-04 14:36:30 [2535] [0] INFO: HTTP: Opening server at port 13013.
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2010-10-04 14:36:30 [2535] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 2535.
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2010-10-04 14:36:30 [2535] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 2535.
2010-10-04 14:36:30 [2535] [0] INFO: Set up send sms service at port 13013
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2010-10-04 14:36:30 [2535] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 2535.
2010-10-04 14:36:30 [2535] [0] DEBUG: ----------------------------------------------
2010-10-04 14:36:30 [2535] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2010-10-04 14:36:30 [2535] [0] DEBUG: dumping group (sendsms-user):
2010-10-04 14:36:30 [2535] [0] DEBUG: <group> = <sendsms-user>
2010-10-04 14:36:30 [2535] [0] DEBUG: <username> = <tester>
2010-10-04 14:36:30 [2535] [0] DEBUG: <password> = <foobar>
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2010-10-04 14:36:30 [2535] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 2535.
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2010-10-04 14:36:30 [2535] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 2535.
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2010-10-04 14:36:30 [2535] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 2535.
2010-10-04 14:36:30 [2535] [0] INFO: Connected to bearerbox at localhost port 13001.
2010-10-04 14:36:30 [2535] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2010-10-04 14:36:30 [2535] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 2535.
2010-10-04 14:36:46 [2535] [4] WARNING: No translation found for <Hello> from <+85516635262> to <1234>
**2010-10-04 14:36:46 [2535] [4] ERROR: request failed**
2010-10-04 14:36:46 [2535] [4] DEBUG: message length 14, sending 1 messages
2010-10-04 14:36:46 [2535] [0] DEBUG: Got ACK (0) of 51b64a81-5f2a-488c-8cd8-9649b7cc9e0c
2010-10-04 14:36:46 [2535] [0] DEBUG: No client - multi-send or ACK to pull-reply
2010-10-04 14:36:55 [2535] [0] ERROR: SIGINT received, aborting program...
2010-10-04 14:36:55 [2535] [0] INFO: Received (and handled?) 1 requests in 9 seconds (0.11 per second)
2010-10-04 14:36:55 [2535] [0] INFO: Kannel smsbox terminating.
2010-10-04 14:36:55 [2535] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates.
2010-10-04 14:36:55 [2535] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate
2010-10-04 14:36:55 [2535] [3] DEBUG: HTTP: No clients with requests, quitting.
2010-10-04 14:36:55 [2535] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates.
2010-10-04 14:36:55 [2535] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates.
2010-10-04 14:36:55 [2535] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates.
2010-10-04 14:36:55 [2535] [0] DEBUG: Waiting for 4 (gw/smsbox.c:obey_request_thread) to terminate
2010-10-04 14:36:55 [2535] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) terminates.
2010-10-04 14:36:55 [2535] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) terminates.
2010-10-04 14:36:55 [2535] [0] DEBUG: Waiting for 5 (gw/smsbox.c:url_result_thread) to terminate
2010-10-04 14:36:55 [2535] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) terminates.
2010-10-04 14:36:55 [2535] [0] DEBUG: Immutable octet strings: 162.
I think u may have missing SMS-service configurations
# Test
group = sms-service
keyword = default
text = "This is a reply"
max-messages = 1

Resources