smsc routing problem

Rory Campbell-Lange <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I have a connection straight into a large service provider's MAR. I can
only connect to a single port (8000) at the provider. I have to define
two smsc ids to force the TON and NPI values to suit short and long
numbers. All of my incoming messages are coming in on smsc-id =
orangelong, even if I set the one smsc to receive on port 8001, in which
case I get:

System error 110: Connection timed out
error connecting to server `(remote host)' at port `8001'
Couldn't connect to server.
Couldn't connect to SMS center (retrying in 11 seconds).

I want each smsc to have their own sms-service that is not keyword
based. While the reponses are correctly returning to the target number
(i.e. if a handset user sends to 81234, the system uses 81234 to reply
to the handset user) however it is trying to send through the incorrect
smsc. Short codes should always go through "orangelong". Any way to
force this?

Thanks for any help and clarity!
Rory


-----------------------------------------
Wed,  9 Apr 2003 17:43:39 +0100
-----------------------------------------
Array
(
    [all] => kannel short10
    [time] => 2003-04-09 16:43:39
    [source] => 44793000xxxx
    [receiver] => 8xxxx
    [delivery] => 0
    [smscid] => orangeshort
)
-----------------------------------------
Wed,  9 Apr 2003 17:44:22 +0100
-----------------------------------------
Array
(
    [all] => hi2
    [time] => 2003-04-09 16:44:22
    [source] => 447900xxxxxx
    [receiver] => 4478000xxxxx
    [delivery] => 0
    [smscid] => orangeshort    <--- wrong!
)


Hi. I am using Kannel 1.3.1.  

########################################################################
# CORE
########################################################################
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
wdp-interface-name = "*"
log-file = "/tmp/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/tmp/access.log"
store-file = "/tmp/kannel.store"

########################################################################
# SMSC
########################################################################
group = smsc
smsc-id = orangeshort
allowed-smsc-id = orangeshort
smsc = smpp
host = xxxxxxxxxxxx
port = 8000
receive-port = 8000
smsc-username = username
smsc-password = password
system-type = "SMPP"
dest-addr-ton = 1
dest-addr-npi = 1 
source-addr-ton = 3
source-addr-npi = 1 

group = smsc
smsc-id = orangelong
allowed-smsc-id = orangelong
smsc = smpp
host = 193.36.81.53
port = 8000
receive-port = 8000
smsc-username = username
smsc-password = password
system-type = "SMPP"
dest-addr-ton = 2
dest-addr-npi = 1 
source-addr-ton = 1
source-addr-npi = 1 

########################################################################
# SMSBOX 
########################################################################
group = smsbox
bearerbox-host = localhost
sendsms-port =  13002
log-file = "/tmp/smsbox.log"
log-level = 0

########################################################################
# SMS SERVICE
########################################################################

group = sms-service
keyword = default
get-url = "http://localhost/sms/receive.php?all=%a&time=%t&source=%p&receiver=%P&delivery=%d"
max-messages = 1
accepted-smsc = "orangelong;orangeshort"


########################################################################
# SMS USER
########################################################################

group = sendsms-user
username  = seas
password = seas
forced-smsc = orangeshort
default-smsc = orangeshort
name = orangeshort

group = sendsms-user
username  = seal
password = seal
forced-smsc = orangelong
default-smsc = orangelong
name = orangelong



-- 
Rory Campbell-Lange 
<[email protected]>
<www.campbell-lange.net>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.