Hi guys!

I have a newly installed and configured Kannel. I intend to use it for sending 
Mail to SMS and vice versa. However, because I have just explored Kannel I do 
not know how to test if my config of Kannel is right or not. I have Kannel on 
my CentOS5 with a GSM modem Teltonika ModemCom G10. My kannel.conf is as 
follows:

Kannel.conf

group = core
admin-port = 15000
smsbox-port = 15001
admin-password = password
log-file = "/var/log/kannel/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/var/log/kannel/access.log"

group = smsc
smsc = at
modemtype = auto
device = /dev/ttyS0
my-number = 09178090861
smsc-id = TSG 
connect-allow-ip = 127.0.0.1
log-level = 0

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 15013
#global-sender = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsboxaccess.log"

group = sendsms-user
username = tester
password = foobar
concatenation =true
max-messages = 10

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

group = sms-service
keyword = default
text = "No service specified"

include = "/usr/local/kannel/modems.conf"


Right now, when I run bearerbox and sms box the following messages are returned 
to me,

Bearerbox

2008-09-04 10:08:17 [20269] [0] INFO: Kannel bearerbox II version 1.4.1 starting
2008-09-04 10:08:17 [20269] [0] INFO: MAIN: Start-up done, entering mainloop
2008-09-04 10:08:17 [20269] [0] DEBUG: AT2[TSG]: start called
2008-09-04 10:08:17 [20269] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 
maps to pid 20269.
2008-09-04 10:08:17 [20269] [6] DEBUG: Thread 6 
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 20269.
2008-09-04 10:08:17 [20269] [6] DEBUG: AT2[TSG]: detecting modem speed. 
2008-09-04 10:08:17 [20269] [6] INFO: AT2[TSG]: opening device
2008-09-04 10:08:17 [20269] [6] DEBUG: AT2[TSG]: device opened
2008-09-04 10:08:17 [20269] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) 
maps to pid 20269.
2008-09-04 10:08:17 [20269] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2008-09-04 10:08:17 [20269] [7] DEBUG: sms_router: gwlist_len = 0
2008-09-04 10:08:18 [20269] [6] DEBUG: AT2[TSG]: device opened
2008-09-04 10:08:18 [20269] [6] INFO: AT2[TSG]: speed set to 115200
2008-09-04 10:08:18 [20269] [6] DEBUG: AT2[TSG]: --> ^M
2008-09-04 10:08:20 [20269] [6] DEBUG: AT2[TSG]: --> AT^M
2008-09-04 10:08:20 [7832] [6] DEBUG: AT2[FAKE]: <-- OK
2008-09-04 10:08:24 [20269] [6] DEBUG: AT2[TSG]: --> AT^M
2008-09-04 10:08:24 [7832] [6] DEBUG: AT2[FAKE]: <-- OK
2008-09-04 10:08:28 [20269] [6] DEBUG: AT2[TSG]: --> AT^M
2008-09-04 10:08:28 [7832] [6] DEBUG: AT2[FAKE]: <-- OK
2008-09-04 10:08:28 [20269] [5] INFO: Client connected from <127.0.0.1> 
2008-09-04 10:08:28 [20269] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2008-09-04 10:08:28 [20269] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to 
pid 20269.
2008-09-04 10:08:28 [20269] [8] DEBUG: Started thread 9 
(gw/bb_boxc.c:boxc_sender)
2008-09-04 10:08:28 [20269] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps 
to pid 20269.
2008-09-04 10:08:32 [20269] [6] INFO: AT2[TSG]: closing device
2008-09-04 10:08:32 [20269] [6] INFO: AT2[TSG]: opening device
2008-09-04 10:08:32 [20269] [6] DEBUG: AT2[TSG]: device opened
2008-09-04 10:08:33 [20269] [6] DEBUG: AT2[TSG]: device opened
2008-09-04 10:08:33 [20269] [6] INFO: AT2[TSG]: speed set to 57600
2008-09-04 10:08:33 [20269] [6] DEBUG: AT2[TSG]: --> ^M
2008-09-04 10:08:35 [20269] [6] DEBUG: AT2[TSG]: --> AT^M
2008-09-04 10:08:39 [20269] [6] DEBUG: AT2[TSG]: --> AT^M
2008-09-04 10:08:43 [20269] [6] DEBUG: AT2[TSG]: --> AT^M
2008-09-04 10:08:47 [20269] [6] INFO: AT2[TSG]: closing device
2008-09-04 10:08:47 [20269] [6] INFO: AT2[TSG]: opening device

--- The message returned by the bearerbox log just keeps on repeating, opening 
device closing device...


SMSBox

2008-09-04 10:08:28 [20277] [0] DEBUG: Kannel smsbox version 1.4.1 starting
2008-09-04 10:08:28 [20277] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps to pid 20277.
2008-09-04 10:08:28 [20277] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 20277.
2008-09-04 10:08:28 [20277] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to 
pid 20277.
2008-09-04 10:08:28 [20277] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
2008-09-04 10:08:28 [20277] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
2008-09-04 10:08:28 [20277] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
2008-09-04 10:08:28 [20277] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 20277.
2008-09-04 10:08:28 [20277] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) 
maps to pid 20277.
2008-09-04 10:08:28 [20277] [0] INFO: Connected to bearerbox at 127.0.0.1 port 
15001.
2008-09-04 10:08:28 [20277] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
2008-09-04 10:08:28 [20277] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) 
maps to pid 20277.
2008-09-04 10:08:28 [20277] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps to pid 20277.


I hope someone could help me test if my kannel config is right or not... 

Thanks in advance,
Joyce



      

Reply via email to