Hi, Apologies in advance if this has already been covered on the mailing list, but I've searched the archives (found a few references) but didn't really find the answer. I'm setting up a Kannel gateway with a GSM modem (with a UK O2 prepaid SIM) in it. I'm getting a strange behaviour in that messages are intermittently being sent successfully, but are always reporting the "Network out of Order" (38) error and I'm a little lost as to the cause/how to remedy it. Here's my modem configuration from Kannel: group = smsc smsc = at modemtype = premicell device = /dev/ttyS1 speed = 19200 group = modems id = premicell name = Premicell detect-string = "NOKIA MOBILE PHONES" init-string = "AT+CNMI=1,2,0,1,0;+CMEE=1" no-pin = true Here's an example trace from the Kannel logs: 2007-03-18 11:03:33 [8059] [6] DEBUG: AT2[/dev/ttyS1]: send command status: 1 2007-03-18 11:03:33 [8059] [6] DEBUG: AT2[/dev/ttyS1]: --> AT+CMGS=25^M 2007-03-18 11:03:33 [8059] [6] DEBUG: AT2[/dev/ttyS1]: <-- > 2007-03-18 11:03:33 [8059] [6] DEBUG: AT2[/dev/ttyS1]: send command status: 1 2007-03-18 11:03:33 [8059] [6] DEBUG: AT2[/dev/ttyS1]: --> 0011000C814487490433740000A70CC8329BFD06D1D16579D905 2007-03-18 11:03:34 [8059] [6] DEBUG: AT2[/dev/ttyS1]: --> ^Z 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: <-- > 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: <-- +CMS ERROR: 38 2007-03-18 11:03:40 [8059] [6] ERROR: AT2[/dev/ttyS1]: CMS ERROR: +CMS ERROR: 38 2007-03-18 11:03:40 [8059] [6] ERROR: AT2[/dev/ttyS1]: CMS ERROR: Network out of order (38) 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: send command status: 1 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: --> AT+CMGS=25^M 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: <-- > 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: send command status: 1 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: --> 0011000C814487490433740000A70CC8329BFD06D1D16579D905 2007-03-18 11:03:40 [8059] [8] DEBUG: boxc_receiver: heartbeat with load value 0 received 2007-03-18 11:03:40 [8059] [6] DEBUG: AT2[/dev/ttyS1]: --> ^Z 2007-03-18 11:03:46 [8059] [6] DEBUG: AT2[/dev/ttyS1]: <-- > 2007-03-18 11:03:46 [8059] [6] DEBUG: AT2[/dev/ttyS1]: <-- +CMS ERROR: 38 2007-03-18 11:03:46 [8059] [6] ERROR: AT2[/dev/ttyS1]: CMS ERROR: +CMS ERROR: 38 I've noticed that if I use minicom to manually try the AT commands, I get the following: AT+CMGS="0789XXXXXXX",129 > test is a second test with 0 +CMGS: 77 OK OK OK AT+CMGS="+44789XXXXXXX",129 > this is a test with a plus +CMS ERROR: 38 So it looks to me that for some reason, the GSM modem is having trouble with the international prefix on the numbering - could this be related to configuration of the prepaid SIM on the O2 end, or is it something on my side? Thanks in advance for the help,
Paul ___________________________________________________________ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk