Hello,
I have 3 smsc oisd type of 3 different gsm operator and I have 3 gsm
modem of 3 different operator and I'm trying to configure kannel to send
sms throught modems while some of those oisd smsc doesn't work or some
of gsm modem doesn't work
my kannel konfiguration is:
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.
group = core
admin-port = 13000
admin-password = bar
admin-allow-ip = "*.*.*.*"
smsbox-port = 13003
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
store-file = "/var/log/kannel/storefile"
store-dump-freq = 60
sms-resend-retry = 5
sms-resend-freq = 30
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
include = "/etc/kannel/smsbox.conf"
smsbox.conf
# SMSC CONNECTIONS
group = smsc
smsc = oisd
smsc-id = SMSCERA
host = 213.158.194.29
port = 12101
keepalive = 25
my-number = 3553
validityperiod = 30
log-file = "/var/log/kannel/SMSCERA.log"
log-level = 0
allowed-smsc-id = SMSCERA
group = smsc
smsc = oisd
smsc-id = SMSCIDEA
host = 213.158.194.29
port = 12102
keepalive = 25
my-number = 3553
validityperiod = 30
log-file = "/var/log/kannel/SMSCIDEA.log"
log-level = 0
allowed-smsc-id = SMSCIDEA
group = smsc
smsc = oisd
smsc-id = SMSCPLUS
host = 213.158.194.29
port = 12103
keepalive = 25
my-number = 3553
validityperiod = 30
log-file = "/var/log/kannel/SMSCPLUS.log"
log-level = 0
allowed-smsc-id = SMSCPLUS
group = smsc
smsc = at
smsc-id = GM47ERA
modemtype = sonyericsson_gr47
device = /dev/ttyS2
speed = 9600
pin = 4834
keepalive = 5
max-error-count = 5
log-file = "/var/log/kannel/GM47ERA.log"
log-level = 0
sim-buffering = true
my-number = +48888000000
allowed-smsc-id = GM47ERA;SMSCERA;SMSCIDEA;SMSCPLUS;GM47IDEA;GM47PLUS
group = smsc
smsc = at
smsc-id = GM47IDEA
modemtype = sonyericsson_gr47
device = /dev/ttyS1
speed = 9600
pin = 4834
keepalive = 5
max-error-count = 5
log-file = "/var/log/kannel/GM47IDEA.log"
log-level = 0
sim-buffering = true
my-number = +48502000000
allowed-smsc-id = GM47IDEA;SMSCERA;SMSCIDEA;SMSCPLUS;GM47ERA;GM47PLUS
group = smsc
smsc = at
smsc-id = GM47PLUS
modemtype = sonyericsson_gr47
device = /dev/ttyS3
speed = 9600
pin = 4834
keepalive = 5
max-error-count = 5
log-file = "/var/log/kannel/GM47PLUS.log"
log-level = 0
sim-buffering = true
my-number = +48600000000
allowed-smsc-id = GM47PLUS;SMSCERA;SMSCIDEA;SMSCPLUS;GM47IDEA;GM47ERA
# SMSBOX SETUP
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 3553
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsboxaccess.log"
reply-couldnotfetch = ""
reply-couldnotrepresent = ""
reply-requestfailed = ""
http-request-retry = 5000
http-queue-delay = 30
max-pending-requests = 10000
# SEND-SMS USERS
group = sendsms-user
username = SMSCERA
password = SMSCERA
#forced-smsc = SMSCERA
group = sendsms-user
username = SMSCIDEA
password = SMSCIDEA
#forced-smsc = SMSCIDEA
group = sendsms-user
username = SMSCPLUS
password = SMSCPLUS
#forced-smsc = SMSCPLUS
group = sendsms-user
username = GM47ERA
password = GM47ERA
#forced-smsc = GM47ERA
group = sendsms-user
username = GM47IDEA
password = GM47IDEA
#forced-smsc = GM47IDEA
group = sendsms-user
username = GM47PLUS
password = GM47PLUS
#forced-smsc = GM47PLUS
# SERVICES
# there should be default always
group = sms-service
keyword = default
get-url =
"http://172.16.8.86:14000/?msg=%b&dateTime=%t&unixTime=%T&from=%q&smscId=%i&coding=%c"
catch-all = true
max-messages = 0
# MODEMS
group = modems
id = sonyericsson_gr47
name = "Sony Ericsson GR47"
detect-string = "GR47"
message-storage = "ME"
init-string = "AT+CNMI=3,2,0,0"
reset-string = "ATZ"
keepalive-cmd = "AT+CSQ"
need-sleep = true
sendline-sleep = 2000
when I'm trying to send sms through some of this smsc e.g.
http://172.16.8.86:13013/cgi-bin/sendsms?username=SMSCERA&password=SMSCERA&from=3553&to=502477791&text=hello&smsc-id=SMSERA&dlr-mask=31&coding=0&dlr-url=http%3A%2F%2F172.16.8.86%3A14001%2F%3FsmscId%3D%25i%26status%3D%25d%26answer%3D%25A%26to%3D%25Q%26from%3D%25q%26dateTime%3D%25t%26unixTime%3D%25T%26messageId%3D47&validity=30
I receive 'Not routable. Do not try again.' from kannel. what is wrong?
to achieve sending sms through proper smsc I was using forced-smsc but
when that smsc-id is not working kannel trying to send through it withou
rerouting to another allowed-smsc-id
could anyone help me?
--
Paweł Buńko
Dział Rozwoju Produktów
AutoGuard & Insurance sp. z o.o.
e-mail: [EMAIL PROTECTED]
tel +48 22 611 68 82
mobile +48 502 477 791
Tlen.pl: pawlin_b
GG: #1692409
Skype: pawlin