I have one smpp connection and all sms go from it. On Kannel I create two
"sms-service" groups

One for all and one for only three shortcodes
551
552
553
Operator sends sms with shortcode like 551#123456 (i made dirty patch to
passthrough it).

In config

group = sms-service
keyword = default
name = NonDef
accepted-smsc = income
get-url = "
http://192.168.0.2/sms/get.php?phone=%p&shortcode=%P&text=%a&meta-data=%D";
allowed-prefix-regex=^55[1-3]*
concatenation = true
omit-empty = true
max-messages = 0

group = sms-service
keyword = default
name = Def
accepted-smsc = income
get-url = "
http://192.168.0.1/sms/get.php?text=%a&phone=%p&shortcode=%P&meta-data=%D";
denied-prefix-regex=^55[1-3]*
concatenation = true
omit-empty = true
max-messages = 0

Now everything goes through sms-service named Def. I need to route 55* to
NonDef receiver.

Reply via email to