I've just tried it, and nothing happens...

messages that match the first accepted-smsc are fine, but the ones directed to the second one do nothing...

I put "text" instead of "get-url" and nothing is retirned  :(

but can 2 "keyword = default" be used?

I believe I've seen on some thread that it doesn't work and only one is used..

will I have to do this on my PHP side or is there any way to do it on kannel?

thanks again!

Juan


Rodrigo Cremaschi wrote:
Hi Juan,

    Have you tried

group = sms-service
keyword = default
name = SMSC_A_service
get-url =<SMSC_A.url>
accepted-smsc = SMSC_A
max-messages = 0
omit-empty = true

group = sms-service
keyword = default
name = SMSC_B_service
get-url =<SMSC_B.url>
accepted-smsc = SMSC_B
max-messages = 0
omit-empty = true


On 1/2/06, Juan Nin <[EMAIL PROTECTED]> wrote:

Hi!

First of all, Happy New Year to all!!!  :)

I want to have 2 sms-services, one should work for some SMSC
connections, and the other one for other connections.

The thing is that they shouldn't be redirected to one or other
sms-service based on keyword, since there is no specific keyword, they
should just be based on the SMSC connection.

According to what I believe and have seen on some thread, "keyword
= default" on smsc-service can be used only once, so there just can be
only one default...

I can use accepted-smsc-regex for making each smsc-service match what I
want, but how do I do with keyword since it's a mandatory parameter and
only one defualt should be used??

Or this can not be handled by Kannel and I should do it by the
programming side on my scripts?

What I want is something like this:


group           = sms-service
keyword         = default
catch-all       = true
omit-empty      = true
get-url         =
"http://myHost.tld/script.php?smsc_id=%i&short_code=%P&phone=%p&message=%a";
max-messages    = 0
accepted-smsc-regex=^aa-

group           = sms-service
keyword         = default
catch-all       = true
omit-empty      = true
get-url         =
"http://myOtherHost.tld/script.php?smsc_id=%i&short_code=%P&phone=%p&message=%a";
max-messages    = 0
accepted-smsc-regex=^bb-


Thanks in advance,

Juan








Reply via email to