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
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
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
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
#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
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
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
-
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
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
:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
]
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
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
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
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
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:
?.
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
, 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
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
.
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
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
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
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
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
+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
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
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
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)
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
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
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
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
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
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
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
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
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
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
. 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
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
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
,
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
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
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
, 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/
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
62 matches
Mail list logo