playSMS Forum

Multiple kannel smsc's

I’m trying to add multiple smsc but playsms always uses the default one.
Here is the url i use, maybe i do something wrong.
http://xxx.xxx.xx.xx/index.php?app=ws&u=doorcollider&h=ddsdase43a43243sad131&op=pv&to=xxxxxxxxx&msg=testtop&smsc=kannel2

I have one configuration with multiple binds then in the setup
denied-smsc-id =
and
allowed-prefix =
It will then chose the correct bind to send the message based on the allowed-prefix

i don’t understand exactly how you did it. I want to use 2 different smscs. here is my kannel config:
group = core
admin-port = 13000
admin-password = playsms
status-password = playsms
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
log-file = “/var/log/kannel/bearerbox.log”
box-deny-ip = “...
box-allow-ip = “127.0.0.1”

group = smsc
smsc = at
smsc-id = my-smsc2
modemtype = huawei
device = /dev/ttyUSB2
my-number = +40721298092
sms-center = +40744946000
speed = 115200
validityperiod = 143
sim-buffering = true
log-file=/tmp/smsc.log
log-level=0

group = smsc
smsc = at
smsc-id = my-smsc
modemtype = huawei
device = /dev/ttyUSB0
my-number = +40721298092
sms-center = +40744946000
speed = 115200
validityperiod = 143
sim-buffering = true
log-file=/tmp/smsc.log
log-level=0

group = smsc
smsc = at
smsc-id = my-smsc
modemtype = huawei
device = /dev/ttyUSB1sms-center = +40744946000
speed = 115200
validityperiod = 143
sim-buffering = true
log-file=/tmp/smsc.log
log-level=0

group = smsc
smsc = at
smsc-id = my-smsc
modemtype = huawei
device = /dev/ttyUSB0
my-number = +40721298092
sms-center = +40744946000
speed = 115200
validityperiod = 143
sim-buffering = true
log-file=/tmp/smsc.log
log-level=0

group = smsc
smsc = at
smsc-id = my-smsc
modemtype = huawei
device = /dev/ttyUSB1
my-number = +40721298092
sms-center = +40744946000
speed = 115200
validityperiod = 143
sim-buffering = true
max-error-count = 5

group = modems
id = huawei
name = "huawei"
detect-string = "huawei"
init-string = "AT+CNMI=2,1,2,2,0"
speed = 9600

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file=/tmp/smsbox.log
log-level=0

group = sms-service
keyword = default
catch-all = yes
max-messages = 0
get-url = "http://localhost/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q"

Mine is looking at the numbers say its international it will route via India due to the number prefix and the denied-smsc-id is what choses which bid to use.
PS:not using modems but smpp connections not sure if this makes a difference.

These should not have the same name smsc-id = my-smsc

In playSMS, you need to create different kannel smscs, one fo each kannel smsc (like Steven said above), and setup an outgoing route.

i’ve created 2 smsc in playSMS and created the outgoing route, i use 2 users, but when i send sms it uses the same smsc i don’t know why.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.