[Kamailio-Users] PCRE / Regex Module

Brandon Armstead brandon at cryy.com
Fri Sep 18 02:05:45 CEST 2009


Hello,
Just realized the " and the ^ is probably why it is not matching -- total
oversight.  Thanks guys!

Sincerely,
Brandon Armstead

On Thu, Sep 17, 2009 at 4:55 PM, Brandon Armstead <brandon at cryy.com> wrote:

> 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/6c496d5f/attachment.htm>


More information about the sr-users mailing list