[Freeswitch-users] rtp_has_crypto
Social Boh
social at bohboh.info
Mon Aug 27 20:44:45 UTC 2018
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 at 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
--
---
I'm SoCIaL, MayBe
More information about the FreeSWITCH-users
mailing list