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 -- --- I'm SoCIaL, MayBe
${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
Without all the logs its hard to tell, you could have it disabled so it doesn't parse it. Is rtp_secure_media set? see vars.xml for all the possible combos. /b On Tue, Aug 28, 2018 at 4:46 PM, Social Boh <social@bohboh.info> wrote:
${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
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
participants (2)
-
Brian West
-
Social Boh