Hi,
kannel has many routing options. You can use allowed-prefix, denied-prefix
and preferred prefix in group smsc. Read User's guide about it. You can also
specify &smsc=<smsc-id> in your sendsms url. Lastly you can configure smsc
per sendsms-user account, with the directives forced-smsc & default-smsc.
Hope this helps,
Nikos
----- Original Message -----
From: Gjergji Guri
To: Nikos Balkanas
Cc: [email protected]
Sent: Monday, July 12, 2010 10:15 AM
Subject: FW: Outbound force routing for a proffered-prefix in Kannel
Hi Nikos,
I’m sending this request directly as I did not received any response from
other users.
Is it possible to tell Kannel which SMSC to use for a particular prefix?
I have different outbound SMSC costs for different operators and I want to
implement some basic costs routing.
Any other advice?
Kind Regards,
Gjergji
From: Gjergji Guri [mailto:[email protected]]
Sent: Thursday, July 08, 2010 6:34 PM
To: [email protected]
Subject: Outbound force routing for a proffered-prefix in Kannel
Hi,
I'm having some difficulties in configuring outbound routing in Kannel,
though I tried a number of option according to the latest user guide. The
objective I want to achieve is have the http PUSH SMS messages that come
from a predefined prefix to be routed by default to a predefined SMSC.
I've tried various configuration, but it seems that Kannel is using load
sharing.
Some more details in included below:
I use the following PUSH URL where I tell which smsc to use as below
http://localhost:13011/cgi-bin/sendsms?smsc=nokiae90&username=user&password=password&from=xxxxxx&to=35569xxxxxx&text=Hello"
As you may see from the status log Kannel tries to use the click smsc-id
SMSC connections:
click HTTP:clickatell (online 122s, rcvd 0, sent 0, failed 1, queued
0 msgs)
nokiae90 AT2[nokiae90] (online 116s, rcvd 0, sent 4, failed 0, queued
0 msgs)
# SMSC SETUP: Clickatell HTTP
group = smsc
smsc = http
smsc-id = click
system-type = clickatell
port = 13015
connect-allow-ip = "127.0.0.1;196.5.254.33;192.168.*.*"
system-id = xxxxxxx
smsc-username = xxxxxxxxi
smsc-password = xxxxxx
send-url = "http://api.clickatell.com/http/sendmsg"
# allowed-smsc-id = click
denied-prefix = "35569;069;69"
reroute = yes # Added by Gj.G
reroute-smsc-id = nokiae90
#SMSC SETUP: Nokia E90 GSM Modem
group = smsc
smsc = at
smsc-id = nokiae90
modemtype = nokiaphone
device=/dev/ttyACM0
preferred-smsc-id = nokiae90
preferred-prefix = "35569"
# SEND-SMS USERS
group = sendsms-user
username = user
password = password
#forced-smsc =
# default-smsc = click # Added by Gj.G
#default-smsc = nokiae90
max-messages = 3
It seems that kannel cannot force routing to a predefined smsc-id.
Does anyone have any configuration suggestion?
Cheers,
Gjergji