<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Unfortunately, that doesn't work. It gives the result I described: refusal of all media with m=audio 0 and m=video 0.
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 10, 2018, at 9:56 PM, Alexey Sibyakin <<a href="mailto:alex@freeswitch.com" class="">alex@freeswitch.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">Take a close look to default.xml of vanilla dialplan. There are some examples of SDP parsing here, you can use them in condition to detect your special case. To enforce SRTP you just need to set rtp_secure_media. Don't forget to reread
 documentation on the last one:</div>
<div dir="ltr" class=""><br class="">
</div>
<div dir="ltr" class=""><a href="https://freeswitch.org/confluence/display/FREESWITCH/rtp_secure_media" class="">https://freeswitch.org/confluence/display/FREESWITCH/rtp_secure_media</a><br class="">
</div>
<div dir="ltr" class=""><br class="">
</div>
<div class="">Alex</div>
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="">On Thu, Oct 11, 2018 at 12:54 AM William Simon <<a href="mailto:wsimon@stratusvideo.com" class="">wsimon@stratusvideo.com</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can anyone offer insight into this matter?<br class="">
<br class="">
Endpoint offers RTP/AVP with crypto. We want Freeswitch to respond to the RTP/AVP and agree to the crypto and do SRTP.<br class="">
<br class="">
<br class="">
> On Oct 5, 2018, at 10:27 AM, William Simon <<a href="mailto:wsimon@stratusvideo.com" target="_blank" class="">wsimon@stratusvideo.com</a>> wrote:<br class="">
><br class="">
> We are working with an endpoint that offers optional SRTP in the non-RFC-compliant way of an a=crypto attribute within RTP/AVP.<br class="">
><br class="">
> I have told FreeSWITCH to allow this with rtp_allow_crypto_in_avp=true at the right place in the dialplan.<br class="">
><br class="">
> Immediately after that in the dialplan I have to reject SRTP by using rtp_secure_media=forbidden, otherwise the call setup still fails. By setting the value to forbidden, the call does proceed unencrypted.<br class="">
><br class="">
> We want FreeSWITCH to proceed with media encryption. Setting rtp_secure_media to any other value results in FreeSWITCH rejecting the offer like this:<br class="">
><br class="">
> v=0<br class="">
> o=FreeSWITCH 1538660754 1538660755 IN IP4 192.168.100.104<br class="">
> s=FreeSWITCH<br class="">
> c=IN IP4 192.168.100.104<br class="">
> t=0 0<br class="">
> m=audio 0 RTP/AVP 19<br class="">
> m=video 0 RTP/AVP 19<br class="">
><br class="">
> Is there anything else I can do to force SRTP in the answer?<br class="">
><br class="">
<br class="">
<br class="">
<br class="">
“The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, business-confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that
 any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer.”<br class="">
_________________________________________________________________________<br class="">
Professional FreeSWITCH Services<br class="">
<a href="mailto:sales@freeswitch.com" target="_blank" class="">sales@freeswitch.com</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a><br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank" class="">https://freeswitch.com/oss</a><br class="">
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank" class="">https://freeswitch.org/confluence</a><br class="">
<a href="https://cluecon.com/" rel="noreferrer" target="_blank" class="">https://cluecon.com</a><br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" class="">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="">
<a href="https://freeswitch.com/" rel="noreferrer" target="_blank" class="">https://freeswitch.com</a></blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class="">
<font face="arial, helvetica, sans-serif" size="1" class=""><span style="white-space:pre-wrap;background-color:transparent" class="">Alex Sibyakin | Support Engineer</span><br class="">
</font></div>
<div dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class="">
<span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font face="arial, helvetica, sans-serif" size="1" class="">FreeSWITCH Solutions |
<a rel="nofollow" shape="rect" href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="margin:0px;padding:0px;background:transparent;color:rgb(25,106,212);outline:none" target="_blank" class="">
17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></div>
<div dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt" class="">
<span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class=""><font face="arial, helvetica, sans-serif" size="1" class=""><font class="">Email:
</font><a href="mailto:alex@freeswitch.com" target="_blank" class=""><font color="#3d85c6" class="">alex@freeswitch.com</font></a></font></span></div>
<div dir="ltr" style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt; margin-left: 4.5pt;" class="">
<font face="arial, helvetica, sans-serif" size="1" class=""><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap" class="">Website:
</span><span style="margin:0px;padding:0px;background:transparent;color:rgb(25,106,212);outline:none;vertical-align:baseline;white-space:pre-wrap" class=""><a rel="nofollow" shape="rect" href="https://www.freeswitch.com/" style="margin:0px;padding:0px;background:transparent;color:rgb(25,106,212);outline:none" target="_blank" class="">https://www.FreeSWITCH.com</a></span></font></div>
<div dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt" class="">
<font face="arial, helvetica, sans-serif" size="1" class=""><font class="">Need commercial support? Contact</font><span style="color:rgb(51,51,51)" class=""> </span><a rel="noopener noreferrer" href="mailto:sales@freeswitch.com" style="color:rgb(53,114,176)" target="_blank" class="">sales@freeswitch.com</a><span style="color:rgb(51,51,51)" class=""> </span><font class="">for
 details.<br class="">
</font></font><font style="font-family: HelveticaNeue, "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 12.8px;" class=""><br class="">
</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_________________________________________________________________________<br class="">
Professional FreeSWITCH Services<br class="">
<a href="mailto:sales@freeswitch.com" class="">sales@freeswitch.com</a><br class="">
https://freeswitch.com<br class="">
<br class="">
Official FreeSWITCH Sites<br class="">
https://freeswitch.com/oss<br class="">
https://freeswitch.org/confluence<br class="">
https://cluecon.com<br class="">
<br class="">
FreeSWITCH-users mailing list<br class="">
FreeSWITCH-users@lists.freeswitch.org<br class="">
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">
https://freeswitch.com</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<br>
“The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, business-confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that
 any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer.”
</body>
</html>