[SR-Users] Permission module about from_pattern

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 10 11:30:06 CET 2016


if you run with debug=3, do you see any hint in log messages?

Not remembering by heart, check if there is a mi/rpc command to dump the
content of those rules, in case there is caching in kamailio memory (I
know there is one for dumping the content of address table), maybe the
record was not loaded properly. Also, as sometimes happens to be, be
sure there is no trailing whitespace to the regexp.


On 10/02/16 09:18, Yasin CANER wrote:
> Hello;
> i try to add a regular expression to from_pattern column.
> Fromuser header is   _sip:8503027337__ at ip_
> i added from pattern ^sip:850[0-9]{7}  - rejected!
> try to like that     ^sip:850[0-9][0-9][0-9][0-9][0-9][0-9][0-9]  -
> accepted.
> it is kinda weird. why first pattern wasnt accepted.
> Kamailio 4.1.7 (x86_64/linux) 85ffd9
> Thanks
> -- 
> <http://www.netgsm.com.tr>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160210/ba1866ae/attachment.html>

More information about the sr-users mailing list