Hello,
I currently have the following search method use:
search("(restricted|anonymous|Anonymous|Private|private|Unknown|unknown)")
unfortunately this is catching cases where there is a Diversion header i.e. Diversion: < sip:1234@someHost > ; reason = unknown
So I attempted to do an assertion:
search("(restricted|anonymous|Anonymous|Private|private|Unknown|(?<!reason=)unknown)")
However it does not seem that Kamailio is completely PCRE compatible? thus server fail.... / parse error
Does anyone have a solution so I can keep the same matching, except exclude matching "unknown|Unknown" when reason=unknown, however match it in all other conditions?
Thank you for any and all help ahead of time.
Sincerely, Brandon
Hello,
Long week :) -- I have completely forgotten about the regex module. Thank you all.
On Thu, Sep 10, 2009 at 9:57 AM, Brandon Armstead brandon@cryy.com wrote:
Hello,
I currently have the following search method use:
search("(restricted|anonymous|Anonymous|Private|private|Unknown|unknown)")
unfortunately this is catching cases where there is a Diversion header i.e. Diversion: < sip:1234@someHost > ; reason = unknown
So I attempted to do an assertion:
search("(restricted|anonymous|Anonymous|Private|private|Unknown|(?<!reason=)unknown)")
However it does not seem that Kamailio is completely PCRE compatible? thus server fail.... / parse error
Does anyone have a solution so I can keep the same matching, except exclude matching "unknown|Unknown" when reason=unknown, however match it in all other conditions?
Thank you for any and all help ahead of time.
Sincerely, Brandon
Hello,
see regexp module in 1.5 for pcre compatibility.
textops functions are posix regexp.
Cheers, Daniel
On 10.09.2009 18:57 Uhr, Brandon Armstead wrote:
Hello,
I currently have the following search method use:
search("(restricted|anonymous|Anonymous|Private|private|Unknown|unknown)")
unfortunately this is catching cases where there is a Diversion header i.e. Diversion: < sip:1234@someHost > ; reason = unknown
So I attempted to do an assertion:
search("(restricted|anonymous|Anonymous|Private|private|Unknown|(?<!reason=)unknown)")
However it does not seem that Kamailio is completely PCRE compatible? thus server fail.... / parse error
Does anyone have a solution so I can keep the same matching, except exclude matching "unknown|Unknown" when reason=unknown, however match it in all other conditions?
Thank you for any and all help ahead of time.
Sincerely, Brandon
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users