Hi I'm using a wavecom modem for sending and receiving sms. every time I'm sending a sms, sms are queued but not sent. Can someone tell me why is happening that?
this is my kannel.conf: ############################################################################## include = /etc/modems.conf
group = core admin-port = 13000 smsbox-port = 13001 admin-password = xxxxx log-file = "/var/log/kannel/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "00358,0" access-log = "/var/log/kannel/access.log" #store-file = "/var/log/kannel/kannel.store"
# SMSC CONNECTIONS group = smsc smsc = at2 modemtype = auto device = /dev/ttyS0 speed = 9600
group = smsbox bearerbox-host = localhost sendsms-port = 13131 global-sender = 13131 #sendsms-chars = "0123456789 +-" log-file = "/var/log/kannel/smsbox.log" log-level = 0 #access-log = "access.log"
# SEND-SMS USERS group = sendsms-user username = xxxxxx password = xxxxxx user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1;xx.xx.xx.xxx"
# SERVICES
group = sms-service keyword = nop text = "You asked nothing and I did it!"
group = sms-service
keyword = relay
get-url = "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r"
max-messages = 0
# there should be default always
group = sms-service keyword = default text = "No service specified"
################################################################################
when I start the bearerbox and smsbox, I got these logs:
Added logfile `/var/log/kannel/kannel.log' with level `0'.
INFO: Started access logfile `/var/log/kannel/access.log'.
INFO: SSL not supported, no SSL initialization done.
DEBUG: HTTP: Opening server at port 13000.
DEBUG: Started thread 1 (gwlib/fdset.c:poller)
DEBUG: Started thread 2 (gwlib/http.c:server_thread)
DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
DEBUG: starting smsbox connection module
DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
INFO: AT2[/dev/ttyS0]: configuration doesn't show modemtype. will autodetect
DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread)
DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router)
INFO: ----------------------------------------
INFO: Kannel bearerbox II version 1.2.1 starting
INFO: MAIN: Start-up done, entering mainloop
DEBUG: AT2[/dev/ttyS0]: start called
DEBUG: AT2[/dev/ttyS0]: detecting modem type
INFO: AT2[/dev/ttyS0]: opening device
DEBUG: AT2[/dev/ttyS0]: device opened
INFO: AT2[/dev/ttyS0]: speed set to 9600
DEBUG: AT2[/dev/ttyS0]: --> ^M
DEBUG: sms_router: time to sleep
DEBUG: sms_router: list_len = 0
DEBUG: Started thread 7 (gw/bb_boxc.c:function)
INFO: Client connected from <127.0.0.1>
DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
DEBUG: AT2[/dev/ttyS0]: --> AT^M
DEBUG: AT2[/dev/ttyS0]: --> AT&F^M
DEBUG: Thread 5 (gw/smsc/smsc_at2.c:at2_device_thread) terminates.
Added logfile `/var/log/kannel/smsbox.log' with level `0'. INFO: Service global sender set as '13131' DEBUG: HTTP: Opening server at port 13131. DEBUG: Started thread 1 (gwlib/fdset.c:poller) DEBUG: Started thread 2 (gwlib/http.c:server_thread) INFO: Set up send sms service at port 13131 DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) DEBUG: ---------------------------------------------- DEBUG: Kannel smsbox version 1.2.1 starting DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) INFO: Connected to bearerbox at localhost port 13001. DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
########################################################################################
When I'm sending sms, i get these logs:
DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
INFO: sendsms used by <kannel>
INFO: sendsms sender:<kannel: xxxxxxxxx> (127.0.0.1) to:<xxxxxxxxxxxxxx> msg:<sssssssss>
DEBUG: message length 9, sending 1 messages
DEBUG: Status: 202 Answer: <Sent.>
DEBUG: HTTP: Destroying HTTPClient area 0x80a1798.
DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
################################################################
But it get queued , not sent:
SMS: received 0 (0 queued), sent 0 (4 queued), store size 0
SMSC connections:
unknown AT2[/dev/ttyS0] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs)
<> Why that? appreciate any help. thanks
