I'm using kannel 1.4.1 on ubuntu linux with a Raven X HSDPA modem.

I put an AT&T SIM card in my modem.  I know the account for the SIM
card allows sending text messages because I put the card into a phone
and can send and receive.

This is the log from bearerbox that shows what happens when I try to
send a message:

2008-01-22 13:41:26 [24755] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CNMI=2,1,0,0,0^M
2008-01-22 13:41:26 [24755] [5] INFO: Client connected from <127.0.0.1>
2008-01-22 13:41:26 [24755] [5] DEBUG: Started thread 9 (gw/bb_boxc.c:function)
2008-01-22 13:41:26 [24755] [9] DEBUG: Thread 9
(gw/bb_boxc.c:function) maps to pid 24755.
2008-01-22 13:41:26 [24755] [9] DEBUG: Started thread 10
(gw/bb_boxc.c:boxc_sender)
2008-01-22 13:41:26 [24755] [10] DEBUG: Thread 10
(gw/bb_boxc.c:boxc_sender) maps to pid 24755.
2008-01-22 13:41:26 [24755] [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
2008-01-22 13:41:26 [24755] [6] INFO: AT2[/dev/ttyS0]: AT SMSC
successfully opened.
2008-01-22 13:42:23 [24755] [9] DEBUG: boxc_receiver: sms received
2008-01-22 13:42:23 [24755] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]:
TP-Validity-Period: 24.0 hours
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]: send command status: 1
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8112460706850000A706E8329BFD0E01
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2008-01-22 13:42:24 [24755] [6] DEBUG: AT2[/dev/ttyS0]: <-- >
2008-01-22 13:42:45 [24755] [6] DEBUG: AT2[/dev/ttyS0]: send command status: -1
2008-01-22 13:42:45 [24755] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2008-01-22 13:42:51 [24755] [6] DEBUG: AT2[/dev/ttyS0]: send command status: -1
2008-01-22 13:42:51 [24755] [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=19^M
2008-01-22 13:42:54 [24755] [6] DEBUG: AT2[/dev/ttyS0]: <--
2008-01-22 13:42:54 [24755] [6] DEBUG: AT2[/dev/ttyS0]: <-- +CMS ERROR: 500
2008-01-22 13:42:54 [24755] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR:
+CMS ERROR: 500
2008-01-22 13:42:54 [24755] [6] ERROR: AT2[/dev/ttyS0]: CMS ERROR:
Unknown error. -> maybe Sim storage is full? I'll have a look at it.
(500)
2008-01-22 13:42:54 [24755] [6] DEBUG: AT2[/dev/ttyS0]: send command status: 1
2008-01-22 13:42:54 [24755] [6] DEBUG: AT2[/dev/ttyS0]: -->
0011000A8112460706850000A706E8329BFD0E01
2008-01-22 13:42:54 [24755] [6] DEBUG: AT2[/dev/ttyS0]: --> ^Z
2008-01-22 13:43:15 [24755] [6] DEBUG: AT2[/dev/ttyS0]: send command status: -1

It seems like the connection to the SMSC is where the problem occurs.

Here's my group=smsc section from my kannel config.

group = smsc
smsc = at
modemtype = MTCBA-G-U-F2
device = /dev/ttyS0
speed = 115200
log-level = 0
# This is Matt's number.
# my-number = "+12164706058"
# This is the number for Matt's other AT&T phone.
my-number = "+12165021939"
# This is the T-Mobile phone number.
# my-number = "+12165264689"
# This is the AT&T number.
# my-number = "+12162809026"
# This is the AT&T SMSC.
sms-center = "+14047259000"
# This is the T-Mobile SMSC.
# sms-center = "+12063130004"
sim-buffering = 0
denied-prefix = "112"
#pin = 1111

I have the exact same problem when I connect to the modem with
minicom.  I execute AT+CMGS="some number" and then after about a
10-second delay, I get ERROR back.

Any ideas what is going on here?

Reply via email to