Using regex

Oscar Medina Duarte <[email protected]>
Newsgroups gmane.comp.mobile.kannel.user,gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hello my kannel e-friends !

I'm doing some testing on kannel 1.3.2 in order to put it to deploy
services in the real world, but, I have a doubt, I want to use
keyword-regex to differentiate two (and more) services, because, the
messages arrive from my Operator with a prefix, lets say pm4s, so if I
have 2 services, one named puebla and the other cholula, the request to
those would be something like :

	pm4s puebla
and
	pm4s cholula

I tried this on kannel:

8><-----------------------

group = sms-service
keyword = pm4s
keyword-regex = ^(pm4s)[ ]+(puebla)
text = "de bolas !!!!"
catch-all = true



group = sms-service
keyword = pm4s
keyword-regex = ^(pm4s)[ ]+(cholula)
get-url = "http://%S"

8><-------------------------

But only puebla service is recognized, even if I send a pm4s message the
puebla service is triggered.

I tought that was because both have keyword = pm4s, so I tried without
the keyword config, but smsbox wouldnt start.

Could be a good idea to base a service in a keyword-regex or a keyword
and not necessarily both, that would be a nice feature!

Cheers !
== Oscar
OM MANI PEME HUM
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.