<div dir="ltr">Hi All i try to use opensips like webrtc to sip proxy. I use opensips 2.2.1<br>and <a href="http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2">http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2</a><br>i have 2 interfaces on my server. And i change rtp_offer()<br>like<br> if (isflagset(SRC_WS) && isbflagset(DST_WS))<br> $var(rtpengine_flags) = "ICE=force-relay DTLS=passive";<br> else if (isflagset(SRC_WS) && !isbflagset(DST_WS))<br> $var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br> else if (!isflagset(SRC_WS) && isbflagset(DST_WS))<br> $var(rtpengine_flags) = <b>"internal external </b>UDP/TLS/RTP/SAVPF ICE=force";<br> else if (!isflagset(SRC_WS) && !isbflagset(DST_WS))<br> $var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";<br>and rtp_answer like<br><br> <span style="color:rgb(102,102,102);font-family:'lucida console','andale mono','courier new',courier;font-size:0.9em;line-height:21.5933px;background-color:rgb(251,254,250)">if (isflagset(SRC_WS) && isbflagset(DST_WS))</span><pre class="escaped" style="font-size:0.9em;font-family:'lucida console','andale mono','courier new',courier;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);color:rgb(102,102,102);line-height:21.5933px;background-color:rgb(251,254,250)"> $var(rtpengine_flags) = "ICE=force-relay DTLS=passive";
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) = "<b>external internal</b> RTP/AVP replace-session-connection replace-origin ICE=remove";
else if (!isflagset(SRC_WS) && !isbflagset(DST_WS))
$var(rtpengine_flags) = "RTP/AVP replace-session-connection replace-origin ICE=remove";
</pre><div>But i have one way audio. I don't receive RTP packets on Asterisk . But send and i hear sound from asterisk on wss client. I think i use wrong rtp answer flags</div><div><br></div></div>