AFAIK, it didn't worked as of 1.4.0. Maybe it's fixed on CVS?

I've tried using alias many months ago but after many unsuccesful
tries I've switched to regexps.

BTW,

keyword-regex = ^(alias1|alias2|alias3)

Will do the trick for you. You can do some regexp tricks also:

keyword-regex = ^rule[sz]

Will match "rules" and "rulez".

Keep in mind that kannel cuts the keyword on the first space it
encounters, so don't expect to match spaces on the regexp: it won't
work.

Hope it helps.


On 2/19/06, Dziugas Baltrunas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> there is much simpler old "alias" solution inside the sms-service group.
>
> On 2/17/06, Rodrigo Cremaschi <[EMAIL PROTECTED]> wrote:
> > Please try
> >
> > keyword-regex:
> > This field may be used to enable service-selection based on a regular
> > expression. If this field is defined for a service, then the selection
> > will rely on the regex only, never taking the literal keyword into
> > account. See section on regular expressions for details.
> >
> > Regards!
> >
> >
> > On 2/17/06, Lars-Hendrik Schneider <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > Gulshan Babajee schrieb:
> > > > Hi, in the sms-service group, insert the word 'default' for variable
> > > > keyword.
> > > > e.g keyword = default
> > >
> > > I think this is for all services - means, if no matching keyword
> > > anywhere else, default is used to send an answer.
> > >
> > > AFAIK it is not possible to set more than one keyword for one service in
> > > a way like
> > >
> > > keyword = PETER|PAUL|MARY
> > > get-url = http://localhost/myparser.php?....
> > >
> > > The other idea is (where we come back to default again) is to parse ALL
> > > incoming messages to another application that decides then what to with
> > > the message (I think this was meant by Gulshan)!
> > >
> > > Perhaps you can have a look on the discussion in the last days (PlaySMS)
> > > which might handle your requests. Otherwise - copy&paste
> > >
> > > keyword = PETER
> > > get-url = http://localhost/myparser.php?....
> > >
> > > keyword = PAUL
> > > get-url = http://localhost/myparser.php?....
> > >
> > > keyword = MARY
> > > get-url = http://localhost/myparser.php?....
> > >
> > >
> > > Hth,
> > > Lars-Hendrik
> > >
> > > >
> > > > hope this helps
> > > >
> > > >     -----Original Message-----
> > > >     *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > >     *On Behalf Of *Ngurah Bagus
> > > >     *Sent:* Friday, February 17, 2006 1:07 PM
> > > >     *To:* [email protected]
> > > >     *Subject:* Multiple keyword
> > > >
> > > >     Quick question, is there a way to register multiple keywords for the
> > > >     same sms-service? Or must I make a new group for each and every
> > > >     keyword? They all point to the same get-url, you see.
> > > >
> > > >     Cheers,
> > > >
> > > >     --
> > > >     A. A. Ngurah Bagus W.
> > > >     Systems Administrator
> > > >     PT. Pintar Media Indonesia
> > > >
> > >
> > >
> > >
> >
> >
>
>
> --
> Dziugas
>
>


--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/

Reply via email to