Cofiguring Kannel SMS Gate way in Ubuntu 10.04 and Samsung GT-S5360 as Gsm modem

Anjaly Kurian <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,
I am trying to configure kannel sms gateway in ubuntu 10.04. Kannel gateway-1.4.4 is downloaded and installed.My configuration file kannel.conf is shown below

#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, send email to [email protected]
#

group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13131
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/kannel/log/kannel.log"
#log-level = 0
#access-log = "access.log"
#http-proxy-host = "127.0.0.1"
#http-proxy-port = 8080
#http-proxy-exceptions = "127.0.0.1"
#http-proxy-username = "user"
#http-proxy-password = "password"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

# SMSC GSM
group = smsc
smsc = at
modemtype = USB Modem
device = /dev/ttyACM0
speed = 460800
smsc-id = samsung
log-file = "/kannel/log/smsc.log"
#pin = 2345
#validityperiod = 167

group = modems
id = smsc1
name = Samsung
#detect-string2 = "Samsung"
#init-string = "AT+CNMI=1,1,0,1,2"

# SMSBOX SETUP

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
smsbox-id = smsc1
bearerbox-port = 13131
#sendsms-chars = "0123456789 +-"
global-sender = 13013
log-file = "/kannel/log/smsbox.log"
#log-level = 0
#access-log = "access.log"
#white-list =
#black-list =
#reply-couldnotfetch = 
#reply-couldnotrepresent = 
#reply-requestfailed =
#reply-emptymessage = 


#SMS ROUTE
group = smsbox-route
smsbox-id = smsc1
smsc-id = samsung

# 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"
#name = service_kannel
#forced-smsc = ID
#default-smsc = ID
#faked-sended =
#max-messages = 1
#concatenation = 1
#split-chars = 
#split-suffix = 
#omit-empty = 
#header =
#footer =
#allowed-prefix =
#denied-prefix =
#white-list =
#black-list =

# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = "No service specified"

When am running bearerbox and smsbox it shows error like

'System error 111: Connection refused
2014-10-31 14:26:42 [7804] [0] ERROR: error connecting to server `127.0.0.1' at port `13131''

The kannel.log file is shown below

2014-10-31 14:26:29 [7793] [0] INFO: Added logfile `/kannel/log/kannel.log' with level `0'.
2014-10-31 14:26:29 [7793] [0] INFO: SSL not supported, no SSL initialization done.
2014-10-31 14:26:29 [7793] [0] INFO: HTTP: Opening server at port 13000.
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2014-10-31 14:26:29 [7793] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 7793.
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2014-10-31 14:26:29 [7793] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 7793.
2014-10-31 14:26:29 [7793] [2] DEBUG: HTTP: Including port 13000, fd 9 for polling in server thread
2014-10-31 14:26:29 [7793] [0] DEBUG: starting smsbox connection module
2014-10-31 14:26:29 [7793] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 7793.
2014-10-31 14:26:29 [7793] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2014-10-31 14:26:29 [7793] [0] DEBUG: Adding smsbox routing to id <smsc1> for smsc id <samsung>
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
2014-10-31 14:26:29 [7793] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 7793.
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2014-10-31 14:26:29 [7793] [0] INFO: Set SMS resend frequency to 60 seconds.
2014-10-31 14:26:29 [7793] [0] INFO: SMS resend retry set to unlimited.
2014-10-31 14:26:29 [7793] [0] DEBUG: MO concatenated message handling enabled
2014-10-31 14:26:29 [7793] [0] INFO: DLR rerouting for smsc id <samsung> disabled.
2014-10-31 14:26:29 [7793] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 7793.
2014-10-31 14:26:29 [7793] [0] INFO: Added logfile `/kannel/log/smsc.log' with level `0'.
2014-10-31 14:26:29 [7793] [0] INFO: AT2[samsung]: configuration shows modemtype <USB Modem>
2014-10-31 14:26:29 [7793] [0] DEBUG: AT2[samsung]: Reading modem definitions from </kannel/cfg/kannel.conf>
2014-10-31 14:26:29 [7793] [0] DEBUG: AT2[samsung]: Found <1> modems in config
2014-10-31 14:26:29 [7793] [0] INFO: AT2[samsung]: modemtype not found, revert to autodetect
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread)
2014-10-31 14:26:29 [7793] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 7793.
2014-10-31 14:26:29 [7793] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2014-10-31 14:26:29 [7793] [0] INFO: ----------------------------------------
2014-10-31 14:26:29 [7793] [0] INFO: Kannel bearerbox II version 1.4.4 starting
2014-10-31 14:26:29 [7793] [6] INFO: Logging thread `6' to logfile `/kannel/log/smsc.log' with level `0'.
2014-10-31 14:26:29 [7793] [0] INFO: MAIN: Start-up done, entering mainloop
2014-10-31 14:26:29 [7793] [0] DEBUG: AT2[samsung]: start called
2014-10-31 14:26:29 [7793] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 7793.
2014-10-31 14:26:33 [7793] [6] PANIC: AT2[samsung]: Cannot detect modem and generic not found
2014-10-31 14:26:33 [7793] [6] PANIC: /kannel/bin/bearerbox(gw_backtrace+0xbe) [0x80ecaae]
2014-10-31 14:26:33 [7793] [6] PANIC: /kannel/bin/bearerbox(gw_panic+0xda) [0x80ecb9a]
2014-10-31 14:26:33 [7793] [6] PANIC: /kannel/bin/bearerbox() [0x8096490]
2014-10-31 14:26:33 [7793] [6] PANIC: /kannel/bin/bearerbox() [0x80e2c4d]
2014-10-31 14:26:33 [7793] [6] PANIC: /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0x1a496e]
2014-10-31 14:26:33 [7793] [6] PANIC: /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0x398a0e]

The smsbox.log is shown below

2014-10-31 14:26:42 [7804] [0] INFO: Added logfile `/kannel/log/smsbox.log' with level `0'.
2014-10-31 14:26:42 [7804] [0] INFO: Service global sender set as '13013'
2014-10-31 14:26:42 [7804] [0] INFO: HTTP: Opening server at port 13013.
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2014-10-31 14:26:42 [7804] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2014-10-31 14:26:42 [7804] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] INFO: Set up send sms service at port 13013
2014-10-31 14:26:42 [7804] [2] DEBUG: HTTP: Including port 13013, fd 9 for polling in server thread
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2014-10-31 14:26:42 [7804] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] DEBUG: ----------------------------------------------
2014-10-31 14:26:42 [7804] [0] DEBUG: Kannel smsbox version 1.4.4 starting
2014-10-31 14:26:42 [7804] [0] DEBUG:   dumping group (sendsms-user):
2014-10-31 14:26:42 [7804] [0] DEBUG:     <group> = <sendsms-user>
2014-10-31 14:26:42 [7804] [0] DEBUG:     <password> = <foobar>
2014-10-31 14:26:42 [7804] [0] DEBUG:     <username> = <tester>
2014-10-31 14:26:42 [7804] [0] DEBUG:   dumping group (sendsms-user):
2014-10-31 14:26:42 [7804] [0] DEBUG:     <group> = <sendsms-user>
2014-10-31 14:26:42 [7804] [0] DEBUG:     <user-deny-ip> = <*.*.*.*>
2014-10-31 14:26:42 [7804] [0] DEBUG:     <password> = <rL4y>
2014-10-31 14:26:42 [7804] [0] DEBUG:     <username> = <kannel>
2014-10-31 14:26:42 [7804] [0] DEBUG:     <user-allow-ip> = <127.0.0.1>
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 4 (gwlib/gw-timer.c:watch_timers)
2014-10-31 14:26:42 [7804] [4] DEBUG: Thread 4 (gwlib/gw-timer.c:watch_timers) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 5 (gw/smsbox.c:obey_request_thread)
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 6 (gw/smsbox.c:url_result_thread)
2014-10-31 14:26:42 [7804] [6] DEBUG: Thread 6 (gw/smsbox.c:url_result_thread) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] DEBUG: Started thread 7 (gw/smsbox.c:http_queue_thread)
2014-10-31 14:26:42 [7804] [5] DEBUG: Thread 5 (gw/smsbox.c:obey_request_thread) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] DEBUG: Connecting to <127.0.0.1>
2014-10-31 14:26:42 [7804] [7] DEBUG: Thread 7 (gw/smsbox.c:http_queue_thread) maps to pid 7804.
2014-10-31 14:26:42 [7804] [0] ERROR: connect to <127.0.0.1> failed
2014-10-31 14:26:42 [7804] [0] ERROR: System error 111: Connection refused
2014-10-31 14:26:42 [7804] [0] ERROR: error connecting to server `127.0.0.1' at port `13131'
2014-10-31 14:26:42 [7804] [0] PANIC: Couldn't connect to the bearerbox.
2014-10-31 14:26:42 [7804] [0] PANIC: /kannel/bin/smsbox(gw_backtrace+0xbe) [0x808d53e]
2014-10-31 14:26:42 [7804] [0] PANIC: /kannel/bin/smsbox(gw_panic+0xda) [0x808d62a]
2014-10-31 14:26:42 [7804] [0] PANIC: /kannel/bin/smsbox(main+0xfd3) [0x8055293]
2014-10-31 14:26:42 [7804] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x6b4bd6]
2014-10-31 14:26:42 [7804] [0] PANIC: /kannel/bin/smsbox() [0x8053a41]

And the smsc.log is like

2014-10-31 14:26:29 [7793] [6] DEBUG: AT2[samsung]: detecting modem type
2014-10-31 14:26:29 [7793] [6] INFO: AT2[samsung]: opening device
2014-10-31 14:26:29 [7793] [6] DEBUG: AT2[samsung]: device opened. Telnet mode = 0
2014-10-31 14:26:30 [7793] [6] DEBUG: AT2[samsung]: device opened
2014-10-31 14:26:30 [7793] [6] INFO: AT2[samsung]: speed set to 460800
2014-10-31 14:26:30 [7793] [6] DEBUG: AT2[samsung]: --> ATZ^M
2014-10-31 14:26:30 [7793] [6] DEBUG: AT2[samsung]: <-- OK
2014-10-31 14:26:30 [7793] [6] DEBUG: AT2[samsung]: --> AT^M
2014-10-31 14:26:30 [7793] [6] DEBUG: AT2[samsung]: <-- OK
2014-10-31 14:26:30 [7793] [6] DEBUG: AT2[samsung]: --> ^M
2014-10-31 14:26:32 [7793] [6] DEBUG: AT2[samsung]: --> AT^M
2014-10-31 14:26:32 [7793] [6] DEBUG: AT2[samsung]: <-- OK
2014-10-31 14:26:32 [7793] [6] DEBUG: AT2[samsung]: --> AT&F^M
2014-10-31 14:26:32 [7793] [6] DEBUG: AT2[samsung]: <-- OK
2014-10-31 14:26:32 [7793] [6] DEBUG: AT2[samsung]: --> ATE0^M
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: <-- OK
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: --> ATI^M
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: <-- GT-S5360
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: <-- OK
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: Cannot detect modem, using generic
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: Reading modem definitions from </kannel/cfg/kannel.conf>
2014-10-31 14:26:33 [7793] [6] DEBUG: AT2[samsung]: Found <1> modems in config


Anyone please help me to solve this problem..Am new to ubuntu...Thanks in advance..
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.