I am running kannel 1.3.1 with a nokia22 gsm modem, and am trying to set up a system to send and receive sms messages.
when I start bearerbox, I get the following message:
2003-11-11 22:56:05 [0] DEBUG: HTTP: Opening server at port 13000.
2003-11-11 22:56:05 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2003-11-11 22:56:05 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2003-11-11 22:56:05 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2003-11-11 22:56:05 [0] DEBUG: starting smsbox connection module
2003-11-11 22:56:05 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2003-11-11 22:56:05 [0] INFO: AT2[/dev/ttyS0]: configuration doesn't show modemtype. will autodetect
2003-11-11 22:56:05 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread)
2003-11-11 22:56:05 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router)
2003-11-11 22:56:05 [0] INFO: ----------------------------------------
2003-11-11 22:56:05 [0] INFO: Kannel bearerbox II version 1.3.1 starting
2003-11-11 22:56:05 [0] INFO: MAIN: Start-up done, entering mainloop
2003-11-11 22:56:05 [0] DEBUG: AT2[/dev/ttyS0]: start called
2003-11-11 22:56:05 [5] DEBUG: AT2[/dev/ttyS0]: detecting modem type
2003-11-11 22:56:05 [5] INFO: AT2[/dev/ttyS0]: opening device
2003-11-11 22:56:05 [5] DEBUG: AT2[/dev/ttyS0]: device opened
2003-11-11 22:56:06 [5] INFO: AT2[/dev/ttyS0]: speed set to 9600
2003-11-11 22:56:06 [5] DEBUG: AT2[/dev/ttyS0]: --> ^M
2003-11-11 22:56:06 [6] DEBUG: sms_router: time to sleep
2003-11-11 22:56:06 [6] DEBUG: sms_router: list_len = 0
2003-11-11 22:56:08 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M
2003-11-11 22:56:12 [5] DEBUG: AT2[/dev/ttyS0]: --> AT&F^M
2003-11-11 22:56:16 [5] DEBUG: Thread 5 (gw/smsc/smsc_at2.c:at2_device_thread) terminates.
-------------------------------------------------------------------------------------------------------------
I can start up smsbox before the thread terminates, and this seems to prevent it from terminating, but whenever I attempt to send an sms message, the message just gets queued, and never properly sent.
Here is my config file:
group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel.log" #log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" unified-prefix = "00358,0" #access-log = "access.log" #store-file = "kannel.store" #ssl-certkey-file = "mycertandprivkeyfile.pem"
# SMSC CONNECTIONS
group = smsc smsc = at2 modemtype = auto device = /dev/ttyS0 speed = 9600 #connect-allow-ip = 127.0.0.1
# SMSBOX SETUP
group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 #sendsms-chars = "0123456789 +-" #log-file = "/tmp/smsbox.log" #log-level = 0 #access-log = "access.log"
# SEND-SMS USERS
group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = ""
# this sender is for Kannel relay testing (http_smsc)
group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1"
# SERVICES
group = sms-service keyword = nop text = "You asked nothing and I did it!"
# this service is for Kannel relay testing, when this Kannel # works as relay gateway
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"
Anyway, i have been stuck here for about a week now, and would really appreciate any help or advice.
All the best,
Martin
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger
