i want to configure kannel to get SMSes from my GSM modem and route
the message to an SMPP Simulator running in my computer where my
application is binding to..The application will analyze the SMS and
reply appropriately and send back the reply which should be picked by
kannel and sent back to the receipient through the modem.How can i
achieve this?My /etc/kannal/kannel.conf looks like this:
    /etc/kannel/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.

#-----------------------------
#Core Group, the bearer box
#-----------------------------
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
dlr-storage = mysql
#^^internal - in memory
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 = "kannel.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
#sendsms-url =
log-file = "/var/log/smsbox.log
access-log = "kannel.access"
log-level = 0

#-------------------------------
# Send SMS User
# Allows an application to send SMS messages
# using the kannel.
#-------------------------------
group = sendsms-user
username = nmvictor
password = nmvickyssmsaccess
concatenation = true
default-smsc = HUWAEI-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
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 = SMS-In
system-type = 'VMA'
service-type = 'Estud'
port = 2775
#receiver-port = 1000
transceiver-mode = 1
host = 127.0.0.1
smsc-username = 'myUname'
smsc-password = 'myPass'
my-number = 3333
connect-allow-ip = "127.0.0.1"
log-level = 0

#-----------------------------
# GSM modem Configuration
#-----------------------------
group = smsc
smsc = at
preferred-smsc-id = SMS-In
smsc-id = Huawei-E220-Modem
speed = 9600
#pin = 3717
pin = 6529
modemtype = HUAWEI_E220
device = /dev/ttyUSB1
keepalive = 10
#my-number = ##########
my-number = ##########
sms-center = ##########
host = "127.0.0.1"
port = 1000
connect-allow-ip = "127.0.0.1
log-level = 0

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

# THE HUAWEI E220 MODEM
#-----------------------------
group = modems
id = HUAWEI_E220
detect-string = "huawei"
init-string = "ATQ0 V1 E1 S0=0 &D2 +FCLASS=0"
speed = 9600
message-storage = sm


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

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

---------------------------------------------------------
when i fire up bearerbox, it fails with the following output


log message
-----------------------------------------------------------

2010-01-03 14:29:05 [26841] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2010-01-03 14:29:05 [26841] [5] DEBUG: Thread 5
(gw/bb_boxc.c:smsboxc_run) maps to pid 26841.
2010-01-03 14:29:05 [26841] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2010-01-03 14:29:05 [26841] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-01-03 14:29:05 [26841] [0] INFO: SMS resend retry set to unlimited.
2010-01-03 14:29:05 [26841] [0] DEBUG: smsbox MO concatenated message
handling enabled
2010-01-03 14:29:05 [26841] [0] INFO: DLR rerouting for smsc id
<SMS-In> disabled.
2010-01-03 14:29:05 [26841] [0] ERROR: SMPP: Service type must be 6
characters or less.
2010-01-03 14:29:05 [26841] [0] PANIC: Cannot start with SMSC connection failing
2010-01-03 14:29:05 [26841] [0] PANIC:
/usr/sbin/bearerbox(gw_panic+0xd4) [0x80d4674]
2010-01-03 14:29:05 [26841] [0] PANIC:
/usr/sbin/bearerbox(smsc2_start+0x414) [0x805c4c4]
2010-01-03 14:29:05 [26841] [0] PANIC: /usr/sbin/bearerbox(main+0xe44)
[0x8055894]
2010-01-03 14:29:05 [26841] [0] PANIC:
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7953775]
2010-01-03 14:29:05 [26841] [0] PANIC: /usr/sbin/bearerbox [0x8053f31]


--------------------------------------------------------------


the output above talks of DLR routing disable fro [SMS-In] which is
the id for smpp smsc.Anyone help me do this atop setting up the config
file route messages from the modem to smpp then the replies from the
smpp to the message sender through the modem.I'll really apreciate.

Reply via email to