Hi.

I've searched for this in google and the list but I have not found a
solution to my problem.


TL;DR

I have two gsm modems, but the replies are always getting out through one
modem
I would like the reply to get out through the same modem where the sms came
from

The reply always goes through +584241111111 even when the sms comes from
+584122222222


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
smsbox-port = 13001
admin-password = 123
log-file=/tmp/core.log
log-level=0

group = smsc
smsc = at
smsc-id = my-smsc
modemtype = huawei
device = /dev/hw-modem-2
my-number = +584122222222
log-file=/tmp/smsc.log
log-level=0
sim-buffering = true


group = smsc
smsc = at
smsc-id = my-smsc2
modemtype = huawei2
device = /dev/hw-modem-1
my-number = +584241111111
log-file=/tmp/smsc1.log
log-level=0
sim-buffering = true


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


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

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

group = sms-service
keyword = default
catch-all = yes
max-messages = 10
get-url=
http://localhost/sms.php?keyword=%k&seckeyword=%s&regtime=%t&sender=%p&receiver=%P&text=%a&dlrvalue=%d
omit-empty = true
accepted-smsc = my-smsc2

group = sms-service
keyword = default
catch-all = yes
max-messages = 10
get-url=
http://localhost/sms.php?keyword=%k&seckeyword=%s&regtime=%t&sender=%p&receiver=%P&text=%a&dlrvalue=%d
omit-empty = true
accepted-smsc = my-smsc

group = sms-service
keyword = default
catch-all = yes
max-messages = 10
get-url=
http://localhost/sms.php?keyword=%k&seckeyword=%s&regtime=%t&sender=%p&receiver=%P&text=%a&dlrvalue=%d
omit-empty = true




group = sendsms-user
username = kannelUser
password = 123



Thanks

-- 
Cesar Arguinzones

Reply via email to