CMS ERROR 304

"Bret Kumler" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <200408121338638.SM01140@beachbreaker>
Hi,

 

I'm new to Kannel and I'm getting a +CMS ERROR: 304 whenever I try to send a
sms via the following url:

http://localhost:13013/cgi-bin/sendsms?username=test
<http://localhost:13013/cgi-bin/sendsms?username=test&password=test&to=14089
676789&text=TEST> &password=test&to=14089676789&text=TEST

 

Env: SuSe 9.1, Kannel 1.3.1, Sierra Wireless 750 AirCard, T-Mobile

 

bearbox & smsbox debug is printing the following messages.

 

2004-08-12 01:23:04 Sent SMS [SMSC:] [SVC:qasms] [ACT:] [to:14089676789]
[flags:0:1:0:0:0] [msg:4:TEST] [udh:0:]

 

2004-08-12 01:23:02 send-SMS request added - sender:qasms:19092186240
127.0.0.1 target: 14089676789 request: 'TEST'

 

2004-08-12 01:22:46 [0] INFO: Added logfile `smsbox.log' with level `0'.

2004-08-12 01:22:46 [0] INFO: Service global sender set as '19092186240'

2004-08-12 01:22:46 [0] INFO: Logging accesses to 'sms-access.log'.

2004-08-12 01:22:46 [0] INFO: Started access logfile `sms-access.log'.

2004-08-12 01:22:46 [0] DEBUG: HTTP: Opening server at port 13013.

2004-08-12 01:22:46 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)

2004-08-12 01:22:46 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)

2004-08-12 01:22:46 [0] INFO: Set up send sms service at port 13013

2004-08-12 01:22:46 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)

2004-08-12 01:22:46 [0] DEBUG:
----------------------------------------------

2004-08-12 01:22:46 [0] DEBUG: Kannel smsbox version 1.3.1 starting

2004-08-12 01:22:46 [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)

2004-08-12 01:22:46 [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)

2004-08-12 01:22:46 [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)

2004-08-12 01:22:46 [0] INFO: Connected to bearerbox at localhost port
13001.

2004-08-12 01:22:46 [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)

2004-08-12 01:23:02 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.

2004-08-12 01:23:02 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms>
from <127.0.0.1>

2004-08-12 01:23:02 [3] INFO: sendsms used by <qasms>

2004-08-12 01:23:02 [3] INFO: sendsms sender:<qasms: 19092186240>
(127.0.0.1) to:<14089676789> msg:<TEST>

2004-08-12 01:23:02 [3] DEBUG: message length 4, sending 1 messages

2004-08-12 01:23:02 [3] DEBUG: Status: 202 Answer: <Sent.>

2004-08-12 01:23:02 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.

2004-08-12 01:23:02 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.

2004-08-12 01:23:02 [3] INFO: smsbox: Got HTTP request </favicon.ico> from
<127.0.0.1>

2004-08-12 01:23:02 [3] DEBUG: Status: 404 Answer: <Unknown request.>

2004-08-12 01:23:02 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.

2004-08-12 01:24:03 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80aac18.

2004-08-12 01:24:03 [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.

2004-08-12 01:24:03 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80aaec8.

2004-08-12 01:24:03 [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.

 

 

 

2004-08-12 01:22:26 [0] INFO: Added logfile `kannel.log' with level `0'.

2004-08-12 01:22:26 [0] INFO: Started access logfile `core-access.log'.

2004-08-12 01:22:26 [0] DEBUG: HTTP: Opening server at port 13000.

2004-08-12 01:22:26 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)

2004-08-12 01:22:26 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)

2004-08-12 01:22:26 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)

2004-08-12 01:22:26 [0] DEBUG: starting smsbox connection module

2004-08-12 01:22:26 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)

2004-08-12 01:22:26 [0] INFO: AT2[/dev/ttyS0]: configuration shows modemtype
<sierra_750>

2004-08-12 01:22:26 [0] DEBUG: AT2[/dev/ttyS0]: Reading modem definitions
from <smskannel.conf>

2004-08-12 01:22:26 [0] DEBUG: AT2[/dev/ttyS0]: Found <1> modems in config

2004-08-12 01:22:26 [0] INFO: AT2[/dev/ttyS0]: read modem definition for
<Sierra Wireless AirCard 750>

2004-08-12 01:22:26 [0] DEBUG: Started thread 5
(gw/smsc/smsc_at2.c:at2_device_thread)

2004-08-12 01:22:26 [0] DEBUG: Started thread 6
(gw/bb_smscconn.c:sms_router)

2004-08-12 01:22:26 [0] INFO: ----------------------------------------

2004-08-12 01:22:26 [0] INFO: Kannel bearerbox II version 1.3.1 starting

2004-08-12 01:22:26 [0] INFO: MAIN: Start-up done, entering mainloop

2004-08-12 01:22:26 [0] DEBUG: AT2[/dev/ttyS0]: start called

2004-08-12 01:22:26 [5] INFO: AT2[/dev/ttyS0]: opening device

2004-08-12 01:22:26 [5] DEBUG: AT2[/dev/ttyS0]: device opened

2004-08-12 01:22:26 [6] DEBUG: sms_router: time to sleep

2004-08-12 01:22:26 [6] DEBUG: sms_router: list_len = 0

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: device opened

2004-08-12 01:22:27 [5] INFO: AT2[/dev/ttyS0]: init device

2004-08-12 01:22:27 [5] INFO: AT2[/dev/ttyS0]: speed set to 57600

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- AT

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> AT&F^M

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- AT&F

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> ATE0^M

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- ATE0

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+IFC=2,2^M

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+CSCA="12063130004"^M

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGF=0^M

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:27 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+CSMS=?^M

2004-08-12 01:22:28 [5] DEBUG: AT2[/dev/ttyS0]: <-- +CSMS: (0,128)

2004-08-12 01:22:28 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:28 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+CNMI=1,2,0,1,0^M

2004-08-12 01:22:28 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:28 [5] INFO: AT2[/dev/ttyS0]: AT SMSC successfully opened.

2004-08-12 01:22:30 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2004-08-12 01:22:30 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:22:46 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)

2004-08-12 01:22:46 [7] INFO: Client connected from <127.0.0.1>

2004-08-12 01:22:46 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)

2004-08-12 01:22:46 [7] DEBUG: boxc_receiver: unlocking sender

2004-08-12 01:22:46 [8] DEBUG: boxc_sender: sender unlocked

2004-08-12 01:23:02 [7] DEBUG: boxc_receiver: sms received

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period: 24.0
hours

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=18^M

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- >

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: send command status: 1

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: -->
11000B814180696658F00000A704D4E2940A

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: --> ^Z

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- >

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- +CMS ERROR: 304

2004-08-12 01:23:04 [5] ERROR: AT2[/dev/ttyS0]: CMS ERROR: +CMS ERROR: 304

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: send command status: 1

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=18^M

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- >

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: send command status: 1

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: -->
11000B814180696658F00000A704D4E2940A

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: --> ^Z

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: send command status: 0

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- >

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- +CMS ERROR: 304

2004-08-12 01:23:04 [5] ERROR: AT2[/dev/ttyS0]: CMS ERROR: +CMS ERROR: 304

2004-08-12 01:23:04 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:24:06 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2004-08-12 01:24:06 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:25:08 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2004-08-12 01:25:08 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

2004-08-12 01:26:10 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M

2004-08-12 01:26:10 [5] DEBUG: AT2[/dev/ttyS0]: <-- OK

 

MY CONFIG FILE

 

group = core

admin-port = 13000

smsbox-port = 13001

admin-password = qatest

log-file = "kannel.log"

log-level = 0

box-allow-ip = "*.*.*.*"

access-log = "core-access.log"

 

# SMSC CONNECTIONS

 

group = smsc

smsc = at2

modemtype = sierra_750

device = /dev/ttyS0

speed = 57600

keepalive = 60

sms-center = "12063130004"

my-number = "19092186240"

 

# SMSBOX SETUP

 

group = smsbox

bearerbox-host = localhost

sendsms-port = 13013

global-sender = "19092186240"

sendsms-chars = "0123456789 +-"

log-file = "smsbox.log"

log-level = 0

access-log = "sms-access.log"

 

# SEND-SMS USERS

 

group = sendsms-user

username = qasms

password = qasms1

user-allow-ip = "*.*.*.*"

 

# SERVICES

 

group = sms-service

keyword = complex

get-url =
"http://localhost/sendsms?user=qasms&pass=qasms1&from=%p&to=%P&text=%a"

#accept-x-kannel-headers = true

max-messages = 3

concatenation = true 

 

# there should be default always

 

group = sms-service

keyword = default

text = "No service specified"

 

# Another service

group = sms-service

keyword = www

get-url ="http://localhost/%S"

 

# Sierra Wireless 750 Aircard

group = modems

id = sierra_750

name = "Sierra Wireless AirCard 750"

detect-string = Sierra Wireless Inc."

#init-string = "AT+CNMI=1,2,0,0,1"

speed = 57600

need-sleep = true

no-pin = true

no-smsc = true

enable-mms = true

 

 

 

Any idea why it's not sending?

 

Thank you,

 

Bret
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.