${rtp_has_crypto}() is void...

What is the purpose of this condition if the variable is void?

Thank you

Regards
---
I'm SoCIaL, MayBe
On 8/27/18 15:44, Social Boh wrote:
Hello list,

I'm testing this dialplan Block:

<extension name="hold_music">
      <condition field="destination_number" expression="^9664$"/>
      <condition field="${rtp_has_crypto}" expression="^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$">
        <action application="answer"/>
        <action application="execute_extension" data="is_secure XML features"/>
        <action application="playback" data="$${hold_music}"/>
        <anti-action application="set" data="zrtp_secure_media=true"/>
        <anti-action application="answer"/>
        <anti-action application="playback" data="silence_stream://2000"/>
           <anti-action application="execute_extension" data="is_zrtp_secure XML features"/>
           <anti-action application="playback" data="$${hold_music}"/>
      </condition>
    </extension>

using Bria Softphone; his SDP look like:

a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:BtJ/e81Ed/6DMngVpHxmi+F5WHZQt89R9V1PYv27
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:BtJ/e81Ed/6DMngVpHxmi+F5WHZQt89R9V1PYv27

Why don't match with:

^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$

Dialplan: sofia/internal/1003@144.202.15.148 Regex (FAIL) [hold_music] ${rtp_has_crypto}() =~ /^(AES_CM_128_HMAC_SHA1_32|AES_CM_128_HMAC_SHA1_80)$/ break=on-false

Thank you

Regards