Bearerbox ,smsbox and sqlbox running well .When i send a sms to any  number
beaerbox gives the following error message.

2011-07-21 11:46:37 [23017] [10] INFO: Connection closed by the box
<127.0.0.1>
2011-07-21 11:46:37 [23017] [4] WARNING: Could not route message to
smsbox id <mysmsc>, smsbox is gone!
2011-07-21 11:46:37 [23017] [4] WARNING: Could not route message to
smsbox id <mysmsc>, smsbox is gone!


Sqlbox gives following error message.


2011-07-21 11:46:37 [23401] [2] ERROR: Packet too short while unpacking Msg.
2011-07-21 11:46:37 [23401] [2] ERROR: Msg packet was invalid.
2011-07-21 11:46:37 [23401] [2] ERROR: Failed to unpack data!


My kannel.config file looks like:


group = core
admin-port = 13015
admin-password = abc
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
dlr-storage = internal
smsbox-port = 13016
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-level = 0

#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc-id = huawei_e220
smsc = at
modemtype = huawei
device= /dev/ttyUSB1
my-number = +917589124248
connect-allow-ip = 127.0.0.1
#sim-buffering = true
log-level = 0

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = GndeC
database = kannel

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

group = modems
id = nokia
name = "Huawei"
detect-string = "huawei"
init-string = "ATZ"
init-string = "AT+CMEE=1"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI=0,1"
message-storage = SM
message-start = 0
#speed = 460800
#message-start = 0

group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
#bearerbox-port = 13018
sendsms-port = 13018
global-sender = +917589124248
access-log = "/var/log/kannel/smsbox-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
mo-recode = true

group = sendsms-user
username = gn
password = abc
concatenation= true
max-messages = 10000

group = sms-service
keyword-regex = .*
catch-all = yes
accepted-smsc = huawei_e220
max-messages = 3
get-url = "http://localhost/sms.php?phone=%p&text=%a";



sqlbox.config file looks like:

group = sqlbox
id = sqlbox-db
#smsbox-id = mysqlbox
global-sender = "+919417212503"
bearerbox-host = localhost
bearerbox-port = 13016
smsbox-port = 13020
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 0
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""

group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = GndeC
database = kannel



Please somebody help me ,why it is happening?

Thank you

amritpalpathak.blogspot.com

Reply via email to