Hi all,
I'm using Kannel 1.2.1, compiled on RH Linux 8.0.
Using a T68 as a virtual SMSC, connected via a USB to serial cable.
I can send sms messages successfully using the http
interface .ie
http://10.0.0.3:13002/cgi-bin/sendsms?username=tester&password=foobar&to=+44nnnnnnnnnn&text=Hello+world works
great; sending to a national number also works great.
I have set up a 'nop' sms-service to
simply respond to the incoming text message with the text "You asked me to
do nothing and I have :-)" - like in the docs.
Now... When I send a text message inbound
containing 'nop', the 'nop' service gets invoked, and replies by sending
the outgoing sms message with the text string. From the logs, the smsbox looks
like it has successfully passed the outbound message to the bearerbox for
processing. Good.
When the bearerbox tries to send the outgoing
message, it receives an error from the T68... Bad. The bearerbox and smsbox
logs, config's are included below.
The error I receive back from the T68 is a +CMS:
304. Looking in the Ericsson AT command reference for the T68 this seems to be a
'Invalid PDU mode parameter'.
Any ideas?
smsbox log entry
2002-11-15 15:55:40 [4] INFO: Starting to
service <NOP> from <+44nnnnnnnnnn> to <1234>
2002-11-15 15:55:40 [4] DEBUG: formatted text answer: <You asked nothing and I did it :-)> 2002-11-15 15:55:40 [4] DEBUG: message length 34, sending 1 messages bearerbox log entry
2002-11-15 15:55:40 [5] DEBUG:
AT2[/dev/ttyUSB0]: <-- +CMT: 30
2002-11-15 15:55:40 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- 0791447758100650040C9144870122638400002011515105530003CE2714 2002-11-15 15:55:40 [5] DEBUG: AT2[/dev/ttyUSB0]: Numeric sender (international) <+44nnnnnnnnnn> 2002-11-15 15:55:40 [8] DEBUG: boxc_sender: sent message to <127.0.0.1> 2002-11-15 15:55:41 [7] DEBUG: boxc_receiver: sms received 2002-11-15 15:55:41 [7] DEBUG: boxc_receiver: got ack 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: TP-Validity-Period: 24.0 hours 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGS=44^M 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- > 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> 0011000C914487012263840000A722D9771D149EAFCB6490FB4D47A7DD6750D84D062541E4341994A68374AD14 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> ^Z 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- +CMS ERROR: 304 2002-11-15 15:55:42 [5] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 304 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGS=44^M 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- > 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> 0011000C914487012263840000A722D9771D149EAFCB6490FB4D47A7DD6750D84D062541E4341994A68374AD14 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> ^Z 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- +CMS ERROR: 304 2002-11-15 15:55:42 [5] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 304 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: --> AT+CMGS=44^M 2002-11-15 15:55:42 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- 2002-11-15 15:55:43 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- > 2002-11-15 15:55:43 [5] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 2002-11-15 15:55:43 [5] DEBUG: AT2[/dev/ttyUSB0]: --> 0011000C914487012263840000A722D9771D149EAFCB6490FB4D47A7DD6750D84D062541E4341994A68374AD14 2002-11-15 15:55:43 [5] DEBUG: AT2[/dev/ttyUSB0]: --> ^Z 2002-11-15 15:55:43 [5] DEBUG: AT2[/dev/ttyUSB0]: <-- +CMS ERROR: 304 2002-11-15 15:55:43 [5] ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 304 2002-11-15 15:55:43 [5] DEBUG: AT2[/dev/ttyUSB0]: send command status: 1 kannel.conf
#
# Configuraiton file for Kannel core. # group = core admin-port = 13000 admin-password = xxxxxxxx #status-password = foo admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1;10.0.0.*" log-file = "/tmp/kannel.log" log-level = 0 access-log = "/tmp/kannel-access.log" #http-proxy-host = "127.0.0.1" #http-proxy-port = 8080 #http-proxy-exceptions = "127.0.0.1" #http-proxy-username = "user" #http-proxy-password = "password" smsbox-port = 13001 #ssl-certkey-file = "mycertandprivkeyfile.pem" # include the SMS configuration
file.
include = "/usr/local/etc/kannel/sms.conf" sms.conf
#
# Configuration file for Kannel SMS Gateway. # # SMSC CONNECTIONS group = smsc smsc = at2 modemtype = "ericsson_t68" device = /dev/ttyUSB0 speed = 19200 validityperiod = 167 retry = false #sim-buffering = true # include the modem defintions file include = "/usr/local/etc/kannel/modems.conf" # SMSBOX SETUP
group = smsbox bearerbox-host = localhost global-sender = nnnnnnnnnn # smsbox-port inherited from kannel.conf, no need to redefine here, #smsbox-port = 13001 sendsms-port = 13002 #white-list = "http://127.0.0.1/white-list.txt" #black-list = "http://127.0.0.1/black-list.txt" log-file = "/tmp/smsbox.log" log-level = 0 #access-log = "access.log" #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # SEND-SMS USERS
# The Kannel account to send sms messages group = sendsms-user username = tester password = foobar user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1;10.0.0.*" # SMS SERVICE Default
# there should be default always group = sms-service keyword = default name = default text = "No service specified" # Test incoming SMS message, respond with
test
group = sms-service keyword = nop name = NOP text = "You asked nothing and I did it :-)" catch-all = true modems.conf
group = modems
id = ericsson_t68 name = "Ericsson T68" detect-string = "T68" speed = 19200 init-string = "AT+CNMI=3,3" keepalive-cmd = "AT+CBC;+CSQ" broken = true no-pin = true Regards,
|
- Re: sms-service unable to send message Rhys Davis
- Re: sms-service unable to send message Rhys Davis