[Freeswitch-users] rtp_has_crypto

Social Boh social at bohboh.info
Tue Aug 28 21:46:59 UTC 2018


${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 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
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180828/8cafa6fd/attachment-0001.html>


More information about the FreeSWITCH-users mailing list