RES: multiple smscs
Gabriel Luhers Graca
gluhers at tlantic.com.br
Fri Apr 27 17:19:16 CEST 2007
Here it is (I erased the secret stuff):
group = smsc
smsc-id = opt3344
smsc = emi
denied-smsc-id = "vdf3344;tmn3344"
host =
port =
smsc-username =
smsc-password =
my-number = 3344
keepalive = 30
idle-timeout = 60
flow-control = 1
window = 100
group = sendsms-user
username =
password =
max-messages = 3
concatenation = true
user-deny-ip = "*.*.*.*"
user-allow-ip =
denied-prefix-regex=^(\+351)?(91|96)
forced-smsc = opt3344
group = smsc
smsc-id = vdf3344
smsc = emi
denied-smsc-id = "opt3344;tmn3344"
host =
port =
smsc-username =
smsc-password =
my-number = 3344
keepalive = 30
idle-timeout = 60
flow-control = 1
window = 100
group = smsc
smsc-id = tmn3344
smsc = emi
denied-smsc-id = "opt3344;vdf3344"
host =
port =
my-number = 3344
keepalive = 30
idle-timeout = 60
flow-control = 1
window = 100
group = sendsms-user
username =
password =
max-messages = 3
concatenation = true
user-deny-ip = "*.*.*.*"
user-allow-ip =
forced-smsc = vdf3344
allowed-prefix-regex =^(\+351)?91
group = sendsms-user
username =
password =
max-messages = 3
concatenation = true
user-deny-ip = "*.*.*.*"
user-allow-ip =
forced-smsc = tmn3344
allowed-prefix-regex =^(\+351)?96
I had the allowed-smsc-id, but because I got the following message from the logs, I droped it.
2007-04-27 15:25:08 [19502] [0] WARNING: Both 'allowed-smsc-id' and
'denied-smsc-id' set, deny-list automatically ignored
I've also been playing around with the prefixes, but they don't seem to matter.
Thanks,
Gabriel Lühers Graça
gluhers at tlantic.com.br
-----Mensagem original-----
De: Rodrigo Cremaschi [mailto:rodrigo.cremaschi at gmail.com]
Enviada em: sexta-feira, 27 de Abril de 2007 12:05
Para: Gabriel Luhers Graca
Cc: users at kannel.org
Assunto: Re: multiple smscs
Hi Gabriel,
post your config file, please.
Are you using sms-push mechanism to reply to the MO messages? In
this case, the INFO line is normal, as you are setting max-messages =
0. Your script is responsible for specifying the outgoing SMSC.
When you use multiple SMSCs, you have to allow the desired SMSC
and deny the others, as Davy said, like this:
# SMSC ONE
group = smsc
smsc = smpp
smsc-id = ONE
allowed-smsc-id = "ONE"
denied-smsc-id = "TWO", "THREE"
...
# SMSC TWO
group = smsc
smsc = smpp
smsc-id = TWO
allowed-smsc-id = "TWO"
denied-smsc-id = "ONE", "THREE"
...
etc.
Regards,
Rodrigo Cremaschi.
On 4/27/07, Gabriel Luhers Graca <gluhers at tlantic.com.br> wrote:
> I did as you suggested, Chan, but my SMSs are always being sent to the same SMSC. It seems like the allowed-prefix is simply ignored. But the denied-smsc-id is not, because the logs show this:
>
> 2007-04-27 14:14:56 [10761] [5] INFO: No reply sent, denied.
>
> How does kannel decide who gets the request?
>
> Thanks,
>
> Gabriel Lühers Graça
> gluhers at tlantic.com.br
>
> -----Mensagem original-----
> De: Davy Chan [mailto:chandave at cse.ust.hk]
> Enviada em: terça-feira, 24 de Abril de 2007 1:30
> Para: Gabriel Luhers Graca
> Cc: users at kannel.org
> Assunto: Re: multiple smscs
>
> **>Subject: multiple smscs
> **>Date: Mon, 23 Apr 2007 11:32:25 -0300
> **>Message-ID: <3E5CFBBE73FD174F838DA5D59E4E30FB01AF645B at APOLLO.tlantic.com.br>
> **>From: "Gabriel Luhers Graca" <gluhers at tlantic.com.br>
> **>To: <users at kannel.org>
> **>
> **>Hello,
> **>
> **> I'm trying to configure multiple SMSCs without success.
> **>
> **> The sms-services are identical for all 3 of my SMSCs, but I need to
> **> be able to choose which one sends back the reply using the number.
> **> The actually just have to go back to the same SMSC they came from.
> **>
> **> One operator handles all numbers that start with 91, another all
> **> that start with 96 and a third the remainder.
> **>
> **> I've tried the following:
> **>
> **>group = smsc
> **>smsc-id = xxx3344
> **>smsc = emi
> **>allowed-smsc-id = xxx3344
> **>host = 10.xxx.yyy.zzz
> **>port = ppp
> **>my-number = 3344
> **>keepalive = 30
> **>idle-timeout = 60
> **>flow-control = 1
> **>window = 100
> **>
> **>group = sendsms-user
> **>username = jdoe
> **>password = secret
> **>max-messages = 3
> **>concatenation = true
> **>user-deny-ip = "*.*.*.*"
> **>user-allow-ip = "127.0.0.1; 10.xxx.yyy.zzz"
> **>forced-smsc = xxx3344
> **>allowed-prefix = "96"
> **>
> **>
> **> I thought "allowed-prefix" would make all requests from numbers starting with 96 be channeled to this SMSC, but that didn't happen.
> **>
> **> How does one configure this?
>
> "allowed-smsc-id" establishes that a particular smsc entry is willing
> to accept SMS for a specific smsc smsc-id name.
>
> What you want to do is to limit the list of smsc-id that can use the
> smsc. You should also add a "denied-smsci-id" that lists all the
> smsc-id's that are forbidden to use that smsc.
>
> See ya...
>
> d.c.
>
>
More information about the users
mailing list