<div dir="ltr"><div dir="ltr"><div dir="ltr">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"><br></div><div dir="ltr"><a href="https://freeswitch.org/confluence/display/FREESWITCH/rtp_secure_media">https://freeswitch.org/confluence/display/FREESWITCH/rtp_secure_media</a><br></div><div dir="ltr"><br></div><div>Alex</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 11, 2018 at 12:54 AM William Simon <<a href="mailto:wsimon@stratusvideo.com">wsimon@stratusvideo.com</a>> wrote:<br></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>
<br>
Endpoint offers RTP/AVP with crypto. We want Freeswitch to respond to the RTP/AVP and agree to the crypto and do SRTP.<br>
<br>
<br>
> On Oct 5, 2018, at 10:27 AM, William Simon <<a href="mailto:wsimon@stratusvideo.com" target="_blank">wsimon@stratusvideo.com</a>> wrote:<br>
><br>
> 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>
><br>
> I have told FreeSWITCH to allow this with rtp_allow_crypto_in_avp=true at the right place in the dialplan.<br>
><br>
> 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>
><br>
> 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>
><br>
> v=0<br>
> o=FreeSWITCH 1538660754 1538660755 IN IP4 192.168.100.104<br>
> s=FreeSWITCH<br>
> c=IN IP4 192.168.100.104<br>
> t=0 0<br>
> m=audio 0 RTP/AVP 19<br>
> m=video 0 RTP/AVP 19<br>
><br>
> Is there anything else I can do to force SRTP in the answer?<br>
><br>
<br>
<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.”<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr" style="color:rgb(0,0,0);line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font face="arial, helvetica, sans-serif" size="1"><span style="white-space:pre-wrap;background-color:transparent">Alex Sibyakin | Support Engineer</span><br></font></div><div dir="ltr" style="color:rgb(0,0,0);line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000" face="arial, helvetica, sans-serif" size="1">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">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"><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif" size="1"><font color="#000000">Email: </font><a href="mailto:alex@freeswitch.com" target="_blank"><font color="#3d85c6">alex@freeswitch.com</font></a></font></span></div><div dir="ltr" style="color:rgb(0,0,0);line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000" face="arial, helvetica, sans-serif" size="1"><span style="background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><span style="margin:0px;padding:0px;background:transparent;color:rgb(25,106,212);outline:none;vertical-align:baseline;white-space:pre-wrap"><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">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"><font face="arial, helvetica, sans-serif" size="1"><font color="#000000">Need commercial support? Contact</font><span style="color:rgb(51,51,51)"> </span><a rel="noopener noreferrer" href="mailto:sales@freeswitch.com" style="color:rgb(53,114,176)" target="_blank">sales@freeswitch.com</a><span style="color:rgb(51,51,51)"> </span><font color="#000000">for details.<br></font></font><font color="#000000" style="font-family:HelveticaNeue,"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;color:rgb(0,0,0);font-size:12.8px"><br></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>