if 92123456789 will always be your first word then you only need keyword not keyword-regex. it could be something like this:
group = sms-service keyword = 92123456789 name = 92123456789 get-url = "http://1.2.3.4/path_a" and for other requests: group = sms-service keyword = default name = default get-url = "http://1.2.3.4/path_b" sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Aug 26, 2010, at 2:48 PM, Irfan Malik wrote: > Many thanks dear, > > How if we remove the digits 92123456789? > > > > Request 1) 92123456789 > > > Request 2) 92123456789 1234 10 > > lets have request one blank > > Request 1) > Request 2) 1234 10 > > > Best Regards, > > Irfan Malik > > > > > > Date: Thu, 26 Aug 2010 09:35:49 +0200 > > Subject: Re: configuration help required > > From: elt...@gmail.com > > To: sangpr...@gmail.com > > CC: irfanahma...@hotmail.com; users@kannel.org > > > > 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 <sangpr...@gmail.com> wrote: > > > It should be about sms-service > > > > > > sangprabv > > > sangpr...@gmail.com > > > 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 > > > > > > > > >