Hi all, 

If anyone could help with the following problem it would be very much 
appreciated. 

I'm new to kannel and have seem to run across a problem where there are times 
when kannel will continue to (re)send messages seemingly indefinitely unless 
stopped.  This happens with some of the messages during a bulk send. All of the 
numbers are correctly formatted, though I'm not sure if all are active.

The bearerbox.log shows repeated GENERIC Errors which is often followed by a 
re-queue message.

A snippet from the bearer.log is below, followed by my kannel.conf

2013-04-15 15:21:57 [18162] [7] DEBUG: AT2[usb0-modem]: <-- ERROR
2013-04-15 15:21:57 [18162] [7] ERROR: AT2[usb0-modem]: Generic error: ERROR
2013-04-15 15:21:57 [18162] [7] DEBUG: AT2[usb0-modem]: send command status: -1
2013-04-15 15:21:59 [18162] [7] DEBUG: AT2[usb0-modem]: TP-Validity-Period: 
24.0 hours
2013-04-15 15:21:59 [18162] [7] DEBUG: AT2[usb0-modem]: --> AT+CMGS=150^M
2013-04-15 15:21:59 [18162] [7] DEBUG: AT2[usb0-modem]: <-- >
2013-04-15 15:21:59 [18162] [7] DEBUG: AT2[usb0-modem]: send command status: 1
2013-04-15 15:21:59 [18162] [7] DEBUG: AT2[usb0-modem]: --> 
0011000B917670676962F20000A79BC979DA0D92D7C3A0343A0CA297DBF03A481C2687D72076989C0EAF41E23028ED0EBB41EE7418340FD7C9651668FD0EB3D36110FA0D4AD3C320773A0C5A87C56537C8FD06A1EBF33A28ED36BFE5EDF03C5C7783C461103C2CA797D3F23068FD768741E230E89D76CFC320F31B549EC3C3F33AA8ECA6CBCBA077D80D42BF41F3709D5C0691D3E1B50B
2013-04-15 15:21:59 [18162] [7] DEBUG: AT2[usb0-modem]: --> ^Z
2013-04-15 15:22:03 [18162] [7] DEBUG: AT2[usb0-modem]: <-- >
2013-04-15 15:22:03 [18162] [7] DEBUG: AT2[usb0-modem]: <-- ERROR
2013-04-15 15:22:03 [18162] [7] ERROR: AT2[usb0-modem]: Generic error: ERROR
2013-04-15 15:22:03 [18162] [7] DEBUG: AT2[usb0-modem]: send command status: -1
2013-04-15 15:22:05 [18162] [7] DEBUG: AT2[usb0-modem]: TP-Validity-Period: 
24.0 hours
2013-04-15 15:22:05 [18162] [7] DEBUG: AT2[usb0-modem]: --> AT+CMGS=139^M
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: gwlist_len = 6
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb1202990 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb12027b8 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb1203ca0 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb1200808 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb1203a68 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb1204398 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: handling message (0xb1202990 
vs 0xb1202990)
2013-04-15 15:22:05 [18162] [8] DEBUG: re-queing SMS not-yet-to-be resent
2013-04-15 15:22:05 [18162] [8] DEBUG: sms_router: time to sleep 30.00 secs.
2013-04-15 15:22:05 [18162] [7] DEBUG: AT2[usb0-modem]: <-- >







kannel.conf

#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

include = "/etc/kannel/modems.conf"


group = core
admin-port = 13000
admin-password = ******
status-password = ******
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
store-type = spool
store-location = "/var/spool/kannel"


#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"

group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
connect-allow-ip = 127.0.0.1

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
reply-couldnotfetch = "Your message could not be processed at this time. Please 
try again later. (err=couldnotfetch)"
reply-requestfailed = "Your message could not be processed at this time. Please 
try again later. (err=requestfailed)"
reply-couldnotrepresent = "Your message could not be processed at this time. 
Please try again later. (err=couldnotrepresent)"
http-request-retry = 3
http-queue-delay = 10

group = sendsms-user
username = ******
password = ******
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1;"

group = sms-service
keyword = ping-kannel
text = "Kannel is online and responding to messages."

group = smsc
smsc = at
smsc-id = usb0-modem
my-number = ***********
modemtype = auto
device = /dev/ttyUSB0

group = sms-service
keyword = default
catch-all = yes
accepted-smsc = usb0-modem
#max-message = 0
accept-x-kannel-headers = true
assume-plain-text= true
get-url = 
http://127.0.0.1:8000/router/receive?message=%b&sender=%p&backend=console
omit-empty = true



Reply via email to