<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>${rtp_has_crypto}() is void... <br>
    </p>
    <div class="oSioSc">
      <div id="tw-target">
        <div class="gsrt tw-ta-container tw-nfl"
          id="tw-target-text-container">
          <pre class="tw-data-text tw-ta tw-text-medium" data-placeholder="Traducción" id="tw-target-text" style="text-align: left; height: 72px;" data-fulltext="" dir="ltr"><span lang="en">What is the purpose of this condition if the variable is void?

Thank you

Regards
</span></pre>
        </div>
      </div>
    </div>
    <pre class="moz-signature" cols="72">---
I'm SoCIaL, MayBe</pre>
    <div class="moz-cite-prefix">On 8/27/18 15:44, Social Boh wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a94edfee-39f2-b041-7ab3-ac967131ea79@bohboh.info">Hello
      list,
      <br>
      <br>
      I'm testing this dialplan Block:
      <br>
      <br>
      <extension name="hold_music">
      <br>
            <condition field="destination_number"
      expression="^9664$"/>
      <br>
            <condition field="${rtp_has_crypto}"
      expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$">
      <br>
              <action application="answer"/>
      <br>
              <action application="execute_extension" data="is_secure
      XML features"/>
      <br>
              <action application="playback"
      data="$${hold_music}"/>
      <br>
              <anti-action application="set"
      data="zrtp_secure_media=true"/>
      <br>
              <anti-action application="answer"/>
      <br>
              <anti-action application="playback"
      data="silence_stream://2000"/>
      <br>
                 <anti-action application="execute_extension"
      data="is_zrtp_secure XML features"/>
      <br>
                 <anti-action application="playback"
      data="$${hold_music}"/>
      <br>
            </condition>
      <br>
          </extension>
      <br>
      <br>
      using Bria Softphone; his SDP look like:
      <br>
      <br>
      a=crypto:1 AES_CM_128_HMAC_SHA1_80
      inline:BtJ/e81Ed/6DMngVpHxmi+F5WHZQt89R9V1PYv27
      <br>
      a=crypto:2 AES_CM_128_HMAC_SHA1_32
      inline:BtJ/e81Ed/6DMngVpHxmi+F5WHZQt89R9V1PYv27
      <br>
      <br>
      Why don't match with:
      <br>
      <br>
      ^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$
      <br>
      <br>
      Dialplan: <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1003@144.202.15.148">sofia/internal/1003@144.202.15.148</a> Regex (FAIL)
      [hold_music] ${rtp_has_crypto}() =~
      /^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$/
      break=on-false
      <br>
      <br>
      Thank you
      <br>
      <br>
      Regards
      <br>
      <br>
    </blockquote>
    <br>
  </body>
</html>