Data regex is applied to for 'keyword-regex' in 'ams-service' group

2014-10-13 Thread Christopher Burke
I am currently attempting to parse two incoming concatenated binary messages, and route them to an external service. Oddly, the keyword-regex does not seem to capture the data on a concatenated deliver_sm, however it does when a single binary message is submitted. Would anybody be able to shed

Re: keyword-regex

2012-11-01 Thread Willy Mularto
gt; Because other regex_flag only applied to keyword not keyword_regex > > If you don't want to tweak kannel's src, you might consider using [Cc] or > [Aa] for single characters of the word, e.g: > > [Cc][Hh][Ee][Ll][Ss][Ee][Aa], for your example I'd suggest using somet

Re: keyword-regex

2012-11-01 Thread spameden
the word, e.g: [Cc][Hh][Ee][Ll][Ss][Ee][Aa], for your example I'd suggest using something like this (not sure if it'd work tho): keyword-regex = (^([Cc][Hh][Ee]) )|(^([Cc][Hh][Ee][Ll][Ss][Ee][Aa]) )|( \2$)|( \4$) \2 \4 should expand [Cc][Hh][Ee] and [Cc][Hh][Ee][Ll][Ss][Ee][Aa] I

keyword-regex

2012-10-31 Thread Willy Mularto
Hi List, Need help to solve this keyword-regex issue: keyword-regex = ^\w* chelsea|^chelsea|^che$ aliases = chelsea name = chelsea The goal is Kannel should pass MO started with "any 1 single word followed by word chelsea" or "contains chelsea" or "contains che at the

Re: Using keyword-regex

2008-05-15 Thread seik
use POSIX regexp ^[[:digit:]]{7}$ -Original Message- From: Kevin Reed [EMAIL PROTECTED] Sent: 15 ??? 2008 ?. To: seik Subject:Using keyword-regex > I am attempting to trap messages sent consisting of only 7 digit numbers. > The number is not valid unless they are exactly 7 digit

Using keyword-regex

2008-05-14 Thread Kevin Reed
I am attempting to trap messages sent consisting of only 7 digit numbers. The number is not valid unless they are exactly 7 digits so I wrote an sms-service like: group = sms-service keyword = tr keyword-regex = ^(\d{7})$ name = TankReading aliases = store exec = "

Re[4]: keyword-regex and matching spaces

2007-10-21 Thread seik
you could set sqlbox to get all the traffic - MO, DLR, MT in one table, via simple default service description. so you may skip the http request step and the regexps will be performed on sql level. even, in case you use postgresql , you could set rules on insert in a view to automate the proce

Re: Re[2]: keyword-regex and matching spaces

2007-10-21 Thread Aaron Simmons
What I've gathered of sqlbox is that it contains a queue table for smses to send and a table of logs and DLRs. Does sqlbox handle keyword matching, or is that still up to the sms-service conf file and/or external app? On 10/21/07, seik <[EMAIL PROTECTED]> wrote: > > well, > you always could read

Re[2]: keyword-regex and matching spaces

2007-10-21 Thread seik
well, you always could read the source from here http://www.kannel.org/~mconte/sqlbox/ and kannel users mailing list like this one: http://www.kannel.org/pipermail/users/2006-October/000859.html cheers -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 21 Октомври 2007 г. T

Re: keyword-regex and matching spaces

2007-10-21 Thread Aaron Simmons
Where is sqlbox documented? Is it a new feature? On Aug 31, 2007, at 9:05 PM, seik wrote: exactly sqlbox to handle all the traffic ONE default service and the services routing rules are applied upon db insert much easier to implement any new service without touching kannel instance at

Re: keyword-regex and matching spaces

2007-09-02 Thread Aaron Simmons
So you're suggesting simply have kannel forward everything to some other service: group = sms-service keyword = default get-url = http://localhost:5/gotsms?text=%a&from=%p This design makes sense of course (and will likely be the way I go). However, I'm still not sure why kannel's regex

Re[2]: keyword-regex and matching spaces

2007-08-31 Thread seik
exactly sqlbox to handle all the traffic ONE default service and the services routing rules are applied upon db insert much easier to implement any new service without touching kannel instance at all -Original Message- From: Rodrigo Cremaschi [EMAIL PROTECTED] Sent: 31 ?? 2007 ?.

Re: keyword-regex and matching spaces

2007-08-31 Thread Rodrigo Cremaschi
Hello Aaron, This seems to be kind of a philosofical discussion, but at some point in time, you will find much easier to modify a script than to modify the config file and restart kannel just for a minor change. Best regards, Rodrigo On 8/31/07, Aaron Simmons <[EMAIL PROTECTED]> wrote:

keyword-regex and matching spaces

2007-08-31 Thread Aaron Simmons
I've run into a problem with keyword-regexp and matching spaces. Kannel won't match spaces. Though it doesn't appear to be documented (clearly?) in the Kannel User's Guide, its mentioned a couple times on this mailing list. My question is: why? Does Kannel throw out everything past the first spa

Re: Incorrect syntax for spaces in keyword-regex?

2007-08-12 Thread Alejandro Guerrieri
he patch compiling the source.. no luck. > > Has anyone successfully patched keyword-regex _and_ got it to work? > Example keyword-regex usage would also be nice. > > > -- > Johno Crawford > > -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/ LinkedIn: http://www.linkedin.com/in/aguerrieri

Re: Incorrect syntax for spaces in keyword-regex?

2007-08-12 Thread Johno Crawford
Cheers Alejandro, Managed to find a patch in the mail archive; http://www.mail-archive.com/users@kannel.org/msg08567.html However after applying the patch compiling the source.. no luck. Has anyone successfully patched keyword-regex _and_ got it to work? Example keyword-regex usage would also

Re: Incorrect syntax for spaces in keyword-regex?

2007-08-12 Thread Alejandro Guerrieri
12/07, Johno Crawford <[EMAIL PROTECTED]> wrote: > Fedora release 7 (Moonshine) > cvs-20070803 > libxml2 2.6.29-1.fc7 > Intel Core 2 Duo > > Hi All, > > I have setup an sms-service to act as a relay, but the incoming SMS is > still using the default service. > &g

Incorrect syntax for spaces in keyword-regex?

2007-08-11 Thread Johno Crawford
Fedora release 7 (Moonshine) cvs-20070803 libxml2 2.6.29-1.fc7 Intel Core 2 Duo Hi All, I have setup an sms-service to act as a relay, but the incoming SMS is still using the default service. group = sms-service keyword-regex=^Your[[:space:]]password[[:space:]]of[[:space:]]ID(.*)$ keyword

Re: Kannel with keyword regex

2006-09-24 Thread Fajar
O, thanks, I think I forget to compile the kannel with pcre support, now the keyword-regex function already working. thanks. - Original Message - From: "Stipe Tolj" <[EMAIL PROTECTED]> To: "Fajar" <[EMAIL PROTECTED]> Cc: Sent: Sunday, September 24,

Re: Kannel with keyword regex

2006-09-24 Thread Stipe Tolj
Fajar wrote: hello everyone, i just new with this kannel stuff, usually i play with nowsms. the most interesting thing from kannel is support regular expression. but i don't know, why the keyword-regex not working even the aliases not working either. here is the example first o

Kannel with keyword regex

2006-09-21 Thread Fajar
hello everyone,   i just new with this kannel stuff, usually i play with nowsms. the most interesting thing from kannel is support regular _expression_. but i don't know, why the keyword-regex not working even the aliases not working either. here is the example   group = sms-service ke

Re: keyword-regex

2005-09-14 Thread Christian Vandrei
elps, Christian. P.S.: It's the kind of mistake I do by myself all the time;) Poul Møller Hansen wrote: I have a problem using regex matching, it just wont match. I have tried this: group = sms-service keyword = web_service keyword-regex= "^TC" get-url = "http://local/get.

Re: keyword-regex

2005-09-07 Thread Poul Møller Hansen
If you remove the space (eg do something like TCsasdfassad) does it work then? No, it's same. Also TC only falls into default. Poul

Re: keyword-regex

2005-09-07 Thread Gareth Reakes
this sms-service: group = sms-service keyword = web_service keyword-regex = "[§]" get-url = "http://localhost/get.php?keyword=%k&sender=%p&reason=3"; It works matching §POS§12345678 If you remove the space (eg do something like TCsasdfassad) does it work then? Ga

Re: keyword-regex

2005-09-07 Thread Poul Møller Hansen
ua.edu/cgi-bin/man-cgi?regex+5. Thanks, but unfortunately it still falls into the default service. Your suggestion is a better pattern match, but "^TC" should match anything begging with TC, at least I think so. I'm using this sms-service: group = sms-service keyword = web_

Re: keyword-regex

2005-09-07 Thread Eduardo Quirós-Campos
Poul Møller Hansen wrote: I have a problem using regex matching, it just wont match. I have tried this: group = sms-service keyword = web_service keyword-regex= "^TC" get-url = "http://local/get.php?sender=%p&text=%a"; And believe that if I send the text "TC1234

keyword-regex

2005-09-07 Thread Poul Møller Hansen
I have a problem using regex matching, it just wont match. I have tried this: group = sms-service keyword = web_service keyword-regex= "^TC" get-url = "http://local/get.php?sender=%p&text=%a"; And believe that if I send the text "TC1234 YES" it will be