Hi, did you give up on my problem?Any way i just want to appreciate
the effort you made, i managed to solve the problem.I would link you
to http://kerneltrap.org/node/17071 and maybe its really a bug. The
author of the article experienced the problem with ubuntu 8.04 and
kannel 1.4.1 while using the Huwaei GSM modem.The author talks of
solving the problem by adding --message-number in line 778  of the
kannel-1.4.1/gw/smsc/smsc_at.c  file which in kannel
1.4.3/gw/smsc/smsc_at.c corresponds  to line  908 or at least some
where before the first if(statement) inside the static method '
at2_read_delete_message(PrivAT2data* privdata, int message_number)
which returns an integer.This is to decrement the value of
message_number by 1 since their is what the java competent would refer
to as ArrayIndexOutOfBoundsException.So adding the --message_number to
gateway-[VERSION]/gw/smsc/smsc_at.c in the above specified location
solved the problem.My only concern is why this error(or should i call
it a bug?) could travel all the way from ubuntu 8.0.4 or kannel 1.4.1
to the latest respective versions and no one seems to notice even
after the author of the artical mentioned of filing a bug report on
the same, lets assume he didn't file the bug report and so maybe the
kannel developers haven't heard about it.
So my problem solved and i hope puting this up in this list helps any
kannel developer follow up the issue and for the users struglling with
the same, a short releive as we wait for develpers to fix the bug in
the best way they know how.So i still have some issues, SMSs are now
streaming into the kannel smoothly save for a line in the logs ;
 WARNING: sms-box_list empty,
I don't understand if this is a serious error but the manner in which
it repeats itself is worrying,
I also want to route the message to smpp smsc which i have alos
configured correctly in the kannel.conf file.Anyone who has ever
routed an sms from the virtual smsc (modem_based smsc) to smpp is
welcomed to assist.My /etc/kannel.conf as at the moment reads as :

----------------------------------------------------------------------------
#
# 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.

#-----------------------------
#Core Group, the bearer box
#-----------------------------
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = nmvicky
dlr-storage = internal
#^^mysql - in mysqldb
admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
wapbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/var/log/kannel_core_access.log"
#unified-prefix = "+254

#-------------------------------
# SMSBox Group
# Helps configure the part of the system that dispatches
# SMSes received by the core SMS or receives SMSes before
# they are sent out.
#-------------------------------
group = smsbox
bearerbox-host = localhost
sendsms-port = 6013
global-sender = 6013
smsbox-id = estudent_in
#sendsms-url =
log-file = "/var/log/smsbox.log
access-log = "/var/log/kannel_core_access.log"
log-level = 0

#-------------------------------
# Send SMS User
# Allows an application to send SMS messages
# using the kannel.
#-------------------------------
group = sendsms-user
username = nmvictor
password = nmvicky
concatenation = true
forced-smsc = HUAWEI-E220
max-messages = 10

#-------------------------------
# SMS Service Group
# Configures how the kannel gets messages to your
# application.
#-------------------------------
group = sms-service
#keyword = estudent
accepted-smsc = HUWAEI_E220
catch-all = yes
exec = %s %s
max-messages = 0
#get-url = "http://localhost/sms?phone=%p&text=%a";

#--------------------------------
# MYSQL Connection
#--------------------------------
#group = mysql-connection
#id = mydlr-db
#host = localhost
#username = nmvictor
#password = nmvickysdatabaseaccess
#database = ESTUDENTS
#max-connections = 1

#-------------------------------
# DLR Table Structure
#-------------------------------
#group = dlr-db
#id = mydlr-db
#table = estudent_delivery_report
#field-smsc = smsc
#field-timestamp = timestamp
#field-destination = destination
#field-source = source
#field-service = service
#field-url = url
#field-mask = mask
#field-status = status
#field-boxc-id = boxc_id

#---------------------------
#  SMPP Connection
#---------------------------
group = smsc
smsc = smpp
smsc-id = ESTUDENT-SMS
system-type = "VMA"
address-range = 0
port = 2775
transceiver-mode = yes
host = "127.0.0.1"
smsc-username = nmvicky
smsc-password = nmvicky
my-number = 3333
connect-allow-ip = "127.0.0.1"
log-level = 0

#-----------------------------
# GSM modem Configuration
#-----------------------------
group = smsc
smsc = at
preferred-smsc-id = ESTUDENT-SMS
smsc-id = Huawei-E220
speed = 9600
sim-buffering = true
#pin = 3717
pin = 6529
modemtype = HUAWEI_E220
device = /dev/ttyUSB1
keepalive = 10
#my-number = 0717801082
my-number = 0715929190
sms-center = 0715929190
host = "127.0.0.1"
port = 1305
connect-allow-ip = "127.0.0.1"
#smsc-username = "nmvicky"
#smsc-password = "nmvicky"
log-level = 0

#------------------------------------------
# SMS-Routing
#  Huawei-E220-Modem ---> SMPP
#------------------------------------------
group = smsbox-route
smsbox-id = estudent_in
smsc-id = HUWAEI_E220

# THE HUAWEI E220 MODEM
#-----------------------------
group = modems
id = HUAWEI_E220
name = "Huawei E220"
detect-string = "huawei"
#init-string = "ATQ0 V1 E1 S0=0 &D2 +FCLASS=0"
init-string = "AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0"
#init-string = "AT+CNMI=2,1,2,2,0"
speed = 460800
message-storage = "SM"


## SETTINGS FOR WAP PUSH, NOT IN A HURRY!!!

group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
-------------------------------------------------------------------------------------
Thanks in advance.

-- 
N. Moin' Victor (nmvictor)
Student/Linux zealot


If you find the one thing in life that completes you, the one thing
that you are so passionate about then hold it, hold it tight and never
let it go -no matter how many roads you've to walk nor how many times
you fall - always hold tight to your passion!!!

Reply via email to