[Freeswitch-users] rtp_has_crypto
Brian West
brian at freeswitch.com
Wed Aug 29 13:39:07 UTC 2018
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 at 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 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
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Services
> sales at 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 at 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 at 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 at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180829/cfe321a7/attachment.html>
More information about the FreeSWITCH-users
mailing list