[Kamailio-Users] PCRE / Regex Module

Brandon Armstead brandon at cryy.com
Fri Sep 18 01:55:23 CEST 2009


Hello,
    I have the following pcre regex method call: pcre_match("$hdr(From)",
"(?i)^(restricted|anonymous|private|unknown|unavailable)") to match calls
that are sent without a proper ANI in a case-insensitive manner, however it
does not seem to return true for the following example From Header:

>From Header: "Unavailable"
<sip:Restricted at 192.168.47.68<sip%3ARestricted at 192.168.47.68>
>;tag=gK07327e23

Any thoughts / input is appreciated, and as always thank you for your help!

Sincerely,
Brandon Armstead
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090917/d5423903/attachment.htm>


More information about the sr-users mailing list