Thank you for the quick response. That works.
-- Zahid -----Original Message----- From: Mik Cheez [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 4:31 PM To: Zahid Mehmood Cc: users@openser.org Subject: Re: [OpenSER-Users] quick question regarding pattern matching 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 Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users