Re: [PATCH] Service routing based on account field

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization tolj.org system architecture
Message-ID <[email protected]>
Alejandro Guerrieri wrote:

> Seems like the list server rejected my last email because of the
> attachment, here goes again with the patch inline.
> 
> I've noticed there were no way for Kannel to do service routing based
> on the account field. This is specially handy when you use an HTTP
> module to receive messages and the smsc gets encoded on the account
> field, so you get a single smsc with different accounts depending on
> the carrier.
> 
> I'm attaching a patch that adds two new sms-service parameters:
> accepted-account and accepted-account-regex. Their functionality it's
> exactly as their smsc counterparts (accepted-smsc and
> accepted-smsc-regex) only that they do their logic on the account
> field.
> 
> The patch can also be downloaded from:
> 
> http://www.magicom-bcn.net/kannel/account-routing.patch

+0, Hillel voted +0 also (interpreting his answer ;)... so commited to cvs:

2006-09-29  Stipe Tolj  <stolj at kannel.org>
     * doc/userguide/userguide.xml: section on new 'accepted-account' and
       'accepted-account-regex' config directives for sms-service group.
     * gwlib/cfg.def: adding 'accepted-account' and 'accepted-account-regex'
       config directives for sms-service group.
     * gw/smsbox.c, gw/urltrans.[ch]: adding service routing based on account
       field. This allows routing of MO messages depending on the account set
       by an aggregative SMSC provider.
       Patchset submited by Alejandro Guerrieri <[email protected]>
       [Msg-Id: <[email protected]>]
       [Msg-Id: <[email protected]>]

Thanks a lot for submitting!

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.