The rule:
allowed-prefix-regex = ^[1-9]{1}[0-9]{8,}
Basically matches any number with a first non-zero digit. If you want it to
be only 9 digits long you should add a $ at the end, otherwise both your
numbers would be matched by that rule anyway.
Anyway, I'd avoid regexes and try something simpler like this:
group = smsc
name = A
denied-prefix = 919997777777;447777111222
...
group = smsc
name = B
allowed-prefix = 919997777777;447777111222
...
Hope it helps,
Alejandro
On Mon, Nov 9, 2009 at 12:48 PM, Alejandro Guerrieri <
[email protected]> wrote:
> You need to use accepted-smsc and/or denied-smsc to prevent messages
> directed to one smsc to be sent by the other(s).
>
> For example:
>
> group = smsc
> name = A
> accepted-smsc = A
> ...
>
> group = smsc
> name = B
> accepted-smsc = B
> ...
>
> Check the userguide for more details.
>
> Hope it helps,
>
> Alejandro
>
>
> On Mon, Nov 9, 2009 at 11:42 AM, Pete Kelly <[email protected]> wrote:
>
>> Hi
>>
>> I have a kannel setup which contains 1 HTTP SMSC.
>>
>> My system sends SMS's into kannel using the cgi-bin URL interface, and
>> SMS's are sent out via one of the SMSCs I have configured.
>>
>> With one SMSC all is fine as all SMS messages are delivered via the single
>> SMSC.
>>
>> However when I a introduce more than 1 SMSC I am having trouble
>> getting Kannel to select which SMSC to use based on the outgoing
>> number prefix.
>>
>> e.g. I am bringing up a new SMPP 3.4 SMSC and I would like to test it
>> solely with 2 mobile numbers I have access to: 447777111222 and
>> 919997777777
>>
>> I have one existing HTTP SMSC working (smsc-id = A), so I have added
>> the following line to its config:
>>
>> denied-prefix-regex = ^(919997777777|447777111222)
>> allowed-prefix-regex = ^[1-9]{1}[0-9]{8,}
>>
>> I set up my new SMSC (smsc-id = B), and add the following to its config:
>>
>> allowed-prefix-regex = ^447777111222
>>
>> However, when I send out SMS messages I am seeing kannel use both
>> smsc-id A and B when sending SMS messges to 447777111222
>>
>> Can anyone advise if I am going wrong somewhere?
>>
>> Thanks
>>
>> Pete
>>
>>
>