It would be something more like this:

"^sip:(99|9911|45555|93911)@.*"

Zahid Mehmood wrote:
Hi all,
I'm still trying to get a handle on using regular expression in openser. I can't seem to find any documentation on openser wiki on regular expression usage.


I have the following in my openser.cfg and a call to sip:[EMAIL PROTECTED] is logged as emergency call. What am I doing wrong?


if (uri=~"^sip:(99)|(9911)|(45555)|((93)?911)@")
{
    xlog ("L_INFO","Emergency call \n");
}

I am using this as a work around:

    if ((uri=~"^sip:(99)|(9911)|(45555)|(93911)@") || (uri=~"^sip:911@"))



Thanks in advance for your help.



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to