Hi,

I do this but Opensips +rtpengine not converting encrypted media to normal.

 if (isflagset(SRC_WS) && isbflagset(DST_WS)) {
         $var(rtpengine_flags) = "ICE=force-relay DTLS=passive";
} else if (isflagset(SRC_WS) && !isbflagset(DST_WS)) {
         $var(rtpengine_flags) = "RTP/AVP replace-session-connection
replace-origin ICE=remove";
} else if (!isflagset(SRC_WS) && isbflagset(DST_WS)) {
         $var(rtpengine_flags) = "UDP/TLS/RTP/SAVPF ICE=force";
} else if (!isflagset(SRC_WS) && !isbflagset(DST_WS)) {
         $var(rtpengine_flags) = "RTP/AVP/SAVP replace-session-connection
replace-origin ICE=remove";
  }

rtpengine_offer("$var(rtpengine_flags)");

На пт, 28.06.2019 г. в 16:38 ч. Johan De Clercq <jo...@democon.be> написа:

> If goes to provider: rtp/avp
> Else rtp/savp
>
> So put your parameters in a var before calling rtpengine
>
> On Fri, 28 Jun 2019, 13:46 Dragomir Haralambiev, <goup2...@gmail.com>
> wrote:
>
>> Hi,
>>
>> Thanks for your reply.
>>
>> Yes I use rtpengine_offer like this:
>> rtpengine_offer("RTP/AVP/SAVP replace-session-connection replace-origin
>> ICE=remove")
>>
>> In this case Opensips + Rtpengine send INVITE to ITSP with Media
>> Protocol: RTP/SAVP,
>> But ITSP not supported RTP/SAVP (they supported only RTP/AVP).
>>
>> I'm looking for a way to setup Opensips to change Media Protocol from
>> RTP/SAVP to RTP/AVP.
>>  It means converting encrypted media to normal.
>>
>> Best regards,
>> Dragomir
>>
>>
>> На пт, 28.06.2019 г. в 10:52 ч. johan de clercq <jo...@democon.be>
>> написа:
>>
>>> Change ruri to transport:udp.
>>>
>>>
>>>
>>> Start the params that you give to rtpengine_offer or answer with RTP/AVP
>>> or RTP/SAVP accordingly.
>>>
>>>
>>>
>>> *From:* Users <users-boun...@lists.opensips.org> *On Behalf Of *Dragomir
>>> Haralambiev
>>> *Sent:* Thursday, June 27, 2019 10:36 PM
>>> *To:* OpenSIPS users mailling list <users@lists.opensips.org>
>>> *Subject:* [OpenSIPS-Users] How to change media protocol?
>>>
>>>
>>>
>>> Hello,
>>>
>>> I have OpenSips + rtpengine.
>>> Opensips receive INVITE with Media Protocol: RTP/SAVP
>>> How to setup Opensips to forward INVITE to ITSP with Media Protocol:
>>> RTP/AVP. Like this scheme:
>>>
>>>
>>> INVITE with Media Protocol: RTP/SAVP --> (OpenSips +rtpengine)
>>> ---->INVITE with Media Protocol: RTP/AVP ---> ITSP
>>>
>>>
>>>
>>> Best regards,
>>>
>>> Dragomir
>>> _______________________________________________
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> _______________________________________________
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to