Hello,<br><br> I currently have the following search method use:<br><br>search("(restricted|anonymous|Anonymous|Private|private|Unknown|unknown)")<br><br>unfortunately this is catching cases where there is a Diversion header i.e. Diversion: < sip:1234@someHost > ; reason = unknown<br>
<br><br>So I attempted to do an assertion:<br><br>search("(restricted|anonymous|Anonymous|Private|private|Unknown|(?<!reason=)unknown)")<br><br>However it does not seem that Kamailio is completely PCRE compatible? thus server fail.... / parse error<br>
<br>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?<br><br>Thank you for any and all help ahead of time.<br>
<br><br><br>Sincerely,<br>Brandon<br>