<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="monospace">Hello Alain,</font></p>
    <p><font face="monospace">I checked the avp_check (ha!) code, and it
        also seems to be using the "case-insensitive" regex flag.  Which
        means, the following is the direct equivalent in modern
        opensips.cfg syntax:</font></p>
    <p><font face="monospace">if ($avp(codecs) =~ "PCMA")<br>
        {<br>
             xlog("L_INFO", "$ci|Log codecs|PCMA exist in SDP and in DB
        - X-CODEC: PCMA");<br>
        }</font></p>
    <p><font face="monospace">Case-<b>insensitive</b> regex matching,
        just as before.<br>
      </font></p>
    <p><font face="monospace">Best regards,<br>
      </font></p>
    <span style="font-size:11.0pt" lang="EN-US"></span>
    <div class="moz-cite-prefix">On 24.09.2025 15:55, Alain Bieuzent via
      Users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1F27F0D7-3A3E-417A-858C-4C550E16024B@free.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        mso-ligatures:standardcontextual;
        mso-fareast-language:EN-US;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Hello
            everyone,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">With
            version 3.5, the avp_check() function no longer exists and
            must be replaced.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">What
            would be the "cleanest" way to perform the following check:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">if
            (avp_check("$avp(codecs)","re/PCMA/g"))<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">{<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-indent:35.4pt"><span
            style="font-size:11.0pt" lang="EN-US">xlog("L_INFO",
            "$ci|Log codecs|PCMA exist in SDP and in DB - X-CODEC:
            PCMA");<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">}<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Thanks
            in advance<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Alain<o:p></o:p></span></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a> | <a class="moz-txt-link-abbreviated" href="http://www.siphub.com">www.siphub.com</a></pre>
  </body>
</html>