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 spameden
For getting case-insensitive regex search you need to tweak *gw/urltrans.c*and add somewhere 1004 } 1005 gwlist_destroy(l, octstr_destroy_item); 1006 } 1007 1008 octstr_append_cstr(keyword_regex, )[ ]*); 1009 } else if (keyword_regex

Re: keyword-regex

2012-11-01 Thread Willy Mularto
Hi, Many thanks for the clue. Will get back to you by Skype :) On Nov 1, 2012, at 8:21 PM, spameden wrote: For getting case-insensitive regex search you need to tweak gw/urltrans.c and add somewhere 1004 } 1005 gwlist_destroy(l, octstr_destroy_item

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 end of MO and should be case

regex issue

2011-05-12 Thread Semion Spivak
#allowed-prefix-regex = ^[:punct:]?380([69][^3]|[^69]3)[:digit:]+$ denied-prefix = 38063;+38063;38093;+38093 #denied-prefix-regex = ^[:punct:]?380[69]3[:digit:]+$ enquire-link-interval = 30 log-file = /var/log/kannel/smsc-a.log log-level = 0 The receiver's number can come either with + or without

Regex problems in sms-service and keywords

2010-05-17 Thread fegul
I have two sms-services defined, one that catches messages with a keyword that matches a regular expression (using 'keyword-regex' in the sms-service) and one that catches everything else (using keyword = default) to a different script. The regex compiles and I've tested it using some online

Re: Regex problems in sms-service and keywords

2010-05-17 Thread Nikos Balkanas
Hi, Have you tried it? It doesn't look right. What is \w? Test it by part: [0-9a-za-z.-...@[0-9a-za-z._]+ And add more parts as you go. BR, Nikos - Original Message - From: fegul ftseg...@gmail.com To: users@kannel.org Sent: Monday, May 17, 2010 4:44 PM Subject: Regex problems

Re: Regex problems in sms-service and keywords

2010-05-17 Thread fegul
- From: fegul ftseg...@gmail.com To: users@kannel.org Sent: Monday, May 17, 2010 4:44 PM Subject: Regex problems in sms-service and keywords I have two sms-services defined, one that catches messages with a keyword that matches a regular expression (using 'keyword-regex' in the sms-service

Re: Regex problems in sms-service and keywords

2010-05-17 Thread Nikos Balkanas
Regardless, test by parts. BR, Nikos - Original Message - From: fegul ftseg...@gmail.com To: users@kannel.org Sent: Monday, May 17, 2010 5:06 PM Subject: Re: Regex problems in sms-service and keywords \w is meant to match any word character. If you insert the expression

Re: Regex problems in sms-service and keywords

2010-05-17 Thread fegul
: Regardless, test by parts. BR, Nikos - Original Message - From: fegul ftseg...@gmail.com To: users@kannel.org Sent: Monday, May 17, 2010 5:06 PM Subject: Re: Regex problems in sms-service and keywords \w is meant to match any word character. If you insert the expression

Re: Regex problems in sms-service and keywords

2010-05-17 Thread Nikos Balkanas
expressions. BR, Nikos - Original Message - From: fegul ftseg...@gmail.com To: users@kannel.org Sent: Monday, May 17, 2010 5:55 PM Subject: Re: Regex problems in sms-service and keywords I'm continuing to do that however I find it strange that regular expressions (which I've always

Re: Using allowed-prefix-regex to restrict which SMSC is used

2009-11-09 Thread Alejandro Guerrieri
to: 44111222 and 91999777 I have one existing HTTP SMSC working (smsc-id = A), so I have added the following line to its config: denied-prefix-regex = ^(91999777|44111222) allowed-prefix-regex = ^[1-9]{1}[0-9]{8,} I set up my new SMSC (smsc-id = B), and add the following to its

Re: Using allowed-prefix-regex to restrict which SMSC is used

2009-11-09 Thread Pete Kelly
Hi I am not directing my SMS messages at any SMSC in particular using the cgi-bin request. I would like Kannel to choose for itself and using the prefix-regex section of the SMSC group configuration as is described in the documentation. Is this not possible? Pete 2009/11/9 Alejandro Guerrieri

Re: regex for sms-service group

2009-03-18 Thread Latitude Berlin
Here is what I have in conf file: ... group = sms-service keyword = default keyword-regex = [:print:]*_STOP accepted-smsc = csoft_s3;csoft_s4 catch-all=true max-messages=0 get-url = http://localhost:50351/RServlet?from=%pto=%Ptext=%a ... My intentions are to send all the incoming SMS that follow

Re: regex for sms-service group

2009-03-18 Thread Nikos Balkanas
Please address the list. You have a few problems. keyword-regex overrides keyword. So scratch default out. Also I don't think that [:print:] is perl like regular expression. Why don't you try: keyword-regex = [^]*_STOP keyword-regex = [a-za-z...@]*_STOP keyword

regex for sms-service group

2009-03-17 Thread Latitude Berlin
Hi, I want to have keyword-regex in sms-service group to forward the incomming SMS messages (meetting the criteria) to a specific servlet. Example. m...@domain.com_STOP Regex: [:print:]*_STOP The regex I used didnt work. I would be greatful if someone can guide. thanks - Latitude

Re: regex for sms-service group

2009-03-17 Thread seikath
idea hm ... Latitude Berlin wrote: Hi, I want to have keyword-regex in sms-service group to forward the incomming SMS messages (meetting the criteria) to a specific servlet. Example. m...@domain.com_STOP Regex: [:print:]*_STOP The regex I used didnt work. I would be greatful

Re: regex for sms-service group

2009-03-17 Thread Nikos Balkanas
Hi, What is _STOP? Please post your configuration file and explain what you are trying to do with it. BR, Nikos - Original Message - From: Latitude Berlin To: users@kannel.org Sent: Tuesday, March 17, 2009 3:02 PM Subject: regex for sms-service group Hi, I want

regex

2008-05-18 Thread sangprabv
Hi, Which one of regex pattern currently supported by Kannel? ^[A-Za-z]reg\|unreg\|off.* or ^[[:alpha:][:lower:][:upper:]]reg\|unreg\|off.* Above regex is scan MO which has word reg or unreg or off at the beginning, appears 1 time and followed with anything. Please CMIIW. And if I implement

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 digits so I

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 = /usr

Re[2]: sqlbox and keywords/regex

2007-11-06 Thread seik
exactly you may set kannel sms-service by regexps thought in same time -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 06 Ноември 2007 г. To: seik Subject:sqlbox and keywords/regex I see, so kannel isn't actually doing anything with keywords. The keyword matching

sqlbox and keywords/regex

2007-11-05 Thread Aaron Simmons
on insert in a view to automate the processing according the incoming text content, but but this is not a kannel related issue i believe. -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 22 Октомври 2007 г. To: seikath Subject:keyword-regex and matching spaces What I've

Re: sqlbox and keywords/regex

2007-11-05 Thread seikath
in case your config processes MO traffic only, your sql should do the regexp you will have insert events only -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 05 Ноември 2007 г. To: [EMAIL PROTECTED] Subject:sqlbox and keywords/regex Does anyone have an example of using

Re: sqlbox and keywords/regex

2007-11-05 Thread Aaron Simmons
Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 05 Ноември 2007 г. To: [EMAIL PROTECTED] Subject:sqlbox and keywords/regex Does anyone have an example of using sqlbox to do keyword processing? I'm using sqlbox-- it has created the send_sms and sent_sms tables. I'm not clear where

Re: keyword-regex and matching spaces

2007-10-21 Thread Aaron Simmons
at all -Original Message- From: Rodrigo Cremaschi [EMAIL PROTECTED] Sent: 31 ?? 2007 ?. To: seik Subject:keyword-regex and matching spaces 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

Re[2]: keyword-regex and matching spaces

2007-10-21 Thread seik
. To: [EMAIL PROTECTED] Subject:keyword-regex and matching spaces 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

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

2007-10-21 Thread Aaron Simmons
] Subject:keyword-regex and matching spaces 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

Re[4]: keyword-regex and matching spaces

2007-10-21 Thread seik
the processing according the incoming text content, but but this is not a kannel related issue i believe. -Original Message- From: Aaron Simmons [EMAIL PROTECTED] Sent: 22 Октомври 2007 г. To: seikath Subject:keyword-regex and matching spaces What I've gathered of sqlbox is that it contains

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=%afrom=%p This design makes sense of course (and will likely be the way I go). However, I'm still not sure why kannel's

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

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:

Re[2]: keyword-regex and matching spaces

2007-08-31 Thread seik
?. To: seik Subject:keyword-regex and matching spaces 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

Re: Incorrect syntax for spaces in keyword-regex?

2007-08-12 Thread Alejandro Guerrieri
, 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. group = sms-service keyword-regex=^Your[[:space

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
. 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

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: regex

2007-05-31 Thread Robin Stephenson
Ajay Chadha wrote: i am not getting required results for keyword-regex eg i am using load keyword for getting plant laod through sms , but some people also send like LOAD DETAIL etc , but this doest not respond to such queries pls see my config and suggest why it doest not work Untested

Re: regex

2007-05-31 Thread Alejandro Guerrieri
for keyword-regex eg i am using load keyword for getting plant laod through sms , but some people also send like LOAD DETAIL etc , but this doest not respond to such queries pls see my config and suggest why it doest not work group = sms-service keyword = load keyword-regex = load* get-url =http

regex

2007-05-30 Thread Ajay Chadha
i am not getting required results for keyword-regex eg i am using load keyword for getting plant laod through sms , but some people also send like LOAD DETAIL etc , but this doest not respond to such queries pls see my config and suggest why it doest not work group = sms-service keyword = load

Re: Asking again about regex

2006-10-05 Thread Humberto Figuera
+1387,24 @@ continue; /* if regex feature is used try to match */ -if ((t-keyword_regex != NULL) -(gw_regex_exec(t-keyword_regex, word, n_match, p_match, 0) == 0)) -gwlist_append(list, t); - -/* otherwise look for exact match

Re: Asking again about regex

2006-09-26 Thread Fajar
Eventhough it's already out the patch for gateway 1.4.0, but manual patch seems not working in 1.4.1(I don't understand c too much). So, is possible to convert white space into another character like "+". So it can be selected by keyword-regex. Thanks All Fajar - Origin

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: users@kannel.org Sent: Sunday, September 24, 2006 8:24 PM Subject: Re

Asking again about regex

2006-09-24 Thread Fajar
Dear All, How to make kannel read the following keyword-regex : ak dl ak menu They need to be send to different servers. I'm trying with ak(\s)dl, but not working. thanks (sorry if stupid questin, i just learn)

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 keyword

Re: Regex issue resolved but not taken care off

2006-03-07 Thread Gareth Reakes
Hi, Eduardo Anuel wrote: Hello, my name is Eduardo and I had a hard time triying to make kannel catch a regular expression with spaces in it. Fortunatelly I found somebody in this list that had that problem and he solved it[1], his name is Gareth Reakes, he submitted a patch for the 1.4.0

Regex issue resolved but not taken care off

2006-02-28 Thread Eduardo Anuel
Hello, my name is Eduardo and I had a hard time triying to make kannel catch a regular expression with spaces in it. Fortunatelly I found somebody in this list that had that problem and he solved it[1], his name is Gareth Reakes, he submitted a patch for the 1.4.0 version and to the then CVS

Re: keyword-regex

2005-09-14 Thread Christian Vandrei
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.php?sender=%ptext=%a; And believe that if I send the text TC1234 YES

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=%ptext=%a; And believe that if I send the text TC1234 YES it will be matched, but it isn't

Re: keyword-regex

2005-09-07 Thread Poul Møller Hansen
Hello. I think that to match TC1234 YES you would need to write something like: ^TC[:digit:]+ [:alpha:]+$. With the regex ^TC you will only be matching incoming messages with TC in its text. Be sure to check out any regex reference, such as http://bama.ua.edu/cgi-bin/man-cgi?regex+5

Re: keyword-regex

2005-09-07 Thread Gareth Reakes
Hi, On 7 Sep 2005, at 20:55, Poul Møller Hansen wrote: Hello. I think that to match TC1234 YES you would need to write something like: ^TC[:digit:]+ [:alpha:]+$. With the regex ^TC you will only be matching incoming messages with TC in its text. Be sure to check out any regex reference

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: regex issue

2005-06-21 Thread Shantanu S Chauhan
Dear Gareth, Thank you for the previous reply. I am sure your input is going to be great help for me and my team. Yes it do make sense to fix the primary 'bugs' of match against first word only, and also to provide priority to regex over keyword. It would be prudent to include this a product

Re: regex issue

2005-06-21 Thread Gareth Reakes
Hi, Jan van der Vyver wrote: Will this also make it possible to use , to split the keywords in a sms? Not at present, but this would be easy to change. Would a space do rather than a ,? Gareth -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184

Re: regex issue

2005-06-21 Thread Gareth Reakes
. You will certainly be able to use standard features of regex like or. I thought that would be [help|level2|www\.google\.com] but I could be wrong. Is it or that you want? Cheers, Gareth -- Gareth Reakes, Managing Director Parthenon Computing +44-1865-811184 http

regex patch

2005-06-21 Thread Gareth Reakes
Hey, Here is the patch for 1.4. If you want CVS I posted it to the devel list to be put into the code base. For the archives the patch: i) fixes the bug where keyword gets matched even when keyword-regex is specified ii) allows multiple words to be specified in keyword-regex. Cheers

regex issue

2005-06-20 Thread Gareth Reakes
Hi all, A week or 2 ago I asked about matching more than 1 word for the keyword-regex. Kannel as is did not seem support this. I have looked into it and indeed it does not. There are in fact 2 issues i) We only match against the first word ii) We match against the the keyword even when

Re: sms-service regex problem

2005-06-14 Thread Gareth Reakes
, Gareth Mihai Zsigmond wrote: Sorry guys, But to my experience it won't work in any way. Kannel is separating the keyword from the rest of the message with SPACE so, the regex is applied to whatever is from the beginning of the message to the first space. Maybe a future version will apply regex

sms-service regex problem

2005-06-13 Thread Gareth Reakes
Hi all, I have been staring at this for hours now, trying every possible combination. I can't match a service with a space in the regular expression. It's fine if there is no space. I could really do with this working. Any help is appreciated. group = sms-service keyword-regex =^date info

Re: sms-service regex problem

2005-06-13 Thread Gareth Reakes
Hi Rodrigo, Thanks for the reply. On 13 Jun 2005, at 19:49, Rodrigo Cremaschi wrote: Did you try... keyword-regex = ^date info stop$ Yes. Any other suggestions? Anyone seen this problem? Gareth

Re: sms-service regex problem

2005-06-13 Thread Alejandro Guerrieri
, Rodrigo Cremaschi wrote: Did you try... keyword-regex = ^date info stop$ Yes. Any other suggestions? Anyone seen this problem? Gareth -- Alejandro Guerrieri Magicom http://www.magicom-bcn.net/

Using regex

2004-08-04 Thread Oscar Medina Duarte
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