Hi
I am trying  to configure kannel but i get this output;

2011-01-10 18:55:24 [4121] [0] INFO: SMS resend retry set to 3.
2011-01-10 18:55:24 [4121] [0] DEBUG: smsbox MO concatenated message
handling enabled
2011-01-10 18:55:24 [4121] [0] INFO: DLR rerouting for smsc id <(null)>
disabled.
2011-01-10 18:55:24 [4121] [0] INFO: Added logfile
`/var/log/kannel/modem.log' with level `0'.
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows
modemtype <wavecom>
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
definitions from <kannel.conf>
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Found <1> modems in
config
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: read modem
definition for <Wavecom>
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2011-01-10 18:55:24 [4121] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4121.
2011-01-10 18:55:24 [4121] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/modem.log' with level `0'.
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2011-01-10 18:55:24 [4121] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
maps to pid 4121.
2011-01-10 18:55:24 [4121] [0] INFO:
----------------------------------------
2011-01-10 18:55:24 [4121] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2011-01-10 18:55:24 [4121] [0] INFO: MAIN: Start-up done, entering mainloop
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: start called


and when i send any sms it shows like this;
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: configuration shows
modemtype <wavecom>
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Reading modem
definitions from <kannel.conf>
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: Found <1> modems in
config
2011-01-10 18:55:24 [4121] [0] INFO: AT2[/dev/ttyUSB0]: read modem
definition for <Wavecom>
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_device_thread)
2011-01-10 18:55:24 [4121] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4121.
2011-01-10 18:55:24 [4121] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/modem.log' with level `0'.
2011-01-10 18:55:24 [4121] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2011-01-10 18:55:24 [4121] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
maps to pid 4121.
2011-01-10 18:55:24 [4121] [0] INFO:
----------------------------------------
2011-01-10 18:55:24 [4121] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2011-01-10 18:55:24 [4121] [0] INFO: MAIN: Start-up done, entering mainloop
2011-01-10 18:55:24 [4121] [0] DEBUG: AT2[/dev/ttyUSB0]: start called
2011-01-10 18:57:38 [4121] [5] INFO: Client connected from <127.0.0.1>
2011-01-10 18:57:38 [4121] [5] DEBUG: Started thread 8
(gw/bb_boxc.c:function)
2011-01-10 18:57:38 [4121] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps
to pid 4121.
2011-01-10 18:57:38 [4121] [8] DEBUG: Started thread 9
(gw/bb_boxc.c:boxc_sender)
2011-01-10 18:57:38 [4121] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender)
maps to pid 4121.
2011-01-10 18:57:42 [4121] [8] DEBUG: boxc_receiver: sms received
2011-01-10 18:57:42 [4121] [8] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: gwlist_len = 1
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: handling message
(0x8797a08 vs 0x8797a08)
2011-01-10 18:57:42 [4121] [7] DEBUG: Routing failed, re-queued.
2011-01-10 18:57:42 [4121] [7] DEBUG: sms_router: time to sleep 30.00 secs.




now my configuration file is;

#include = /etc/kannel/modems.conf
group = core
admin-port = 13000
admin-password = admin
status-password = status
smsbox-port = 13001
box-deny-ip = "*.*.*.*"
log-file = /var/log/kannel/bearerbox.log
access-log = /var/log/kannel/access-log.log
box-allow-ip = "127.0.0.1,192.168.60.213,192.168.60.242,192.168.60.211"
log-level = 0
sms-incoming-queue-limit = -1
smsbox-max-pending = 5
sms-resend-freq = 60
sms-resend-retry = 3

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs
group = smsc
smsc = at
modemtype = wavecom
device = /dev/ttyUSB0
sms-center = +919442099997
my-number = 09440375777
connect-allow-ip = "127.0.0.1,192.168.60.213,192.168.60.211"
speed = 9600
log-file = /var/log/kannel/modem.log
log-level = 0
max-error-count = 5
sim-buffering = true

#----------------------------------------------------------------------
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 09440375777
immediate-sendsms-reply=1
log-file = "/var/log/kannel/smsbox.log"
log-level = 0

#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
group = sendsms-user
username = cdacbang
password = root123
user-allow-ip = "127.0.0.1"

#---------------------------------------------
# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.
group = sms-service
keyword = default
text="the default format is:submit/status usr pwd jobid "
catch-all=true
#---------------------------------------------

group=sms-service
keyword=submit
get-url="
http://192.168.60.211:8080/kannel-server/JobResubmitServlet?sender=%p&key=%k&usr=%s&pwd=%s&jobid=%s
"
catch-all=true
accept-x-kannel-headers = true

group=sms-service
keyword=status
get-url="
http://192.168.60.211:8080/kannel-server/StatusServlet?sender=%p&key=%k&usr=%s&pwd=%s&jobid=%s
"
catch-all=true
accept-x-kannel-headers = true

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"
init-string = "ATZ"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI=1,2,0,0,0"
speed = 9600


Thanks in advance
Parimal

Reply via email to