<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) &amp;&amp; isbflagset(DST_WS))<br>        $var(rtpengine_flags) = &quot;ICE=force-relay DTLS=passive&quot;;<br>    else if (isflagset(SRC_WS) &amp;&amp; !isbflagset(DST_WS))<br>        $var(rtpengine_flags) = &quot;RTP/AVP replace-session-connection replace-origin ICE=remove&quot;;<br>    else if (!isflagset(SRC_WS) &amp;&amp; isbflagset(DST_WS))<br>        $var(rtpengine_flags) = <b>&quot;internal external </b>UDP/TLS/RTP/SAVPF ICE=force&quot;;<br>    else if (!isflagset(SRC_WS) &amp;&amp; !isbflagset(DST_WS))<br>        $var(rtpengine_flags) = &quot;RTP/AVP replace-session-connection replace-origin ICE=remove&quot;;<br>and rtp_answer like<br><br>   <span style="color:rgb(102,102,102);font-family:&#39;lucida console&#39;,&#39;andale mono&#39;,&#39;courier new&#39;,courier;font-size:0.9em;line-height:21.5933px;background-color:rgb(251,254,250)">if (isflagset(SRC_WS) &amp;&amp; isbflagset(DST_WS))</span><pre class="escaped" style="font-size:0.9em;font-family:&#39;lucida console&#39;,&#39;andale mono&#39;,&#39;courier new&#39;,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) = &quot;ICE=force-relay DTLS=passive&quot;;
    else if (isflagset(SRC_WS) &amp;&amp; !isbflagset(DST_WS))
        $var(rtpengine_flags) = &quot;UDP/TLS/RTP/SAVPF ICE=force&quot;;
    else if (!isflagset(SRC_WS) &amp;&amp; isbflagset(DST_WS))
        $var(rtpengine_flags) = &quot;<b>external internal</b> RTP/AVP replace-session-connection replace-origin ICE=remove&quot;;
    else if (!isflagset(SRC_WS) &amp;&amp; !isbflagset(DST_WS))
        $var(rtpengine_flags) = &quot;RTP/AVP replace-session-connection replace-origin ICE=remove&quot;;
</pre><div>But i have one way audio. I don&#39;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>