Maybe you need to define two sms-service groups to call each of your
services in background.

To match your given digits;

1 - keyword-regex = ^[0-9]+$

2 - keyword-regex = ^[0-9]+ [1-4]+ [0-1]+$

On Thu, Aug 26, 2010 at 9:22 AM, sangprabv <[email protected]> wrote:
> It should be about sms-service
>
> sangprabv
> [email protected]
> http://www.petitiononline.com/froyo/
>
>
> On Aug 26, 2010, at 2:10 PM, Irfan Malik wrote:
>
> Hi All,
>
> I am looking for help to configure kannel sms-service based on number of
> words in request. Requirement is to append different URL's to the request
> based on number of words in keyword. it should work for any keyword
>
> Request 1) 92123456789
> Request 2) 92123456789 1234 10
> For number 1, want to append a URL e.g. http://www.myweb.com/blank
> For number 2, want to append a URL e.g. http://www.myweb1.com/pinrequest
>
> From definition of keyword, I could see it is possible but don't know how to
> configure it,
>
> keyword (m)    word     Services are identified by the first word in the
> SMS. Each `%s' in the URL corresponds to one word in the SMS message. Words
> are separated with spaces. A keyword is matched only if the number of words
> in the SMS message is the same as the number of `%s' fields in the URL. This
> allows you to configure the gateway to use different URLs for the same
> keyword depending on the number of words the SMS message contains. The
> keyword matches in non-case sensitive manner, which means you don't have to
> use aliases to handle different cased versions of your keyword.
>
> Any help would be very much appreciated.
>
>
> Best Regards,
>
> Irfan Malik
>
>
>

Reply via email to