See rfc3711 that describes how you are supposed to pass the crypto information. If you want to disable SRTP on all calls, that¹s a channel variable for that you just set <action application="set" data="sip_secure_media=false"/> Now you can use the dialplan to look at the SDP, and determine if you want to set if you want to have SRTP enabled or not See http://wiki.freeswitch.org/wiki/SRTP for more information K On 2/22/13 10:30 AM, "Levend Sayar" <levend.sayar@karel.com.tr> wrote:
Ken you are right. But what i want to do is not securing all the conversation. I dont need that. What i want is FS to prefer RTP when an optional SRTP offer is received.
In this list, it is mentioned that
m=audio RTP/AVP a=crypto ...
means optional SRTP. Namely caller prefers to talk with SRTP, but if calle prefers RTP, caller accept RTP too.
First of all, the SDP I show is improper ?
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch