[OpenSIPS-Users] opensips wss rtp engine and 2 interfaces.

Kirill Galinurov k.galinurov at gmail.com
Fri Sep 23 09:44:30 CEST 2016


Hi All i try to use opensips like webrtc to sip proxy. I use opensips 2.2.1
and http://www.opensips.org/Documentation/Tutorials-WebSocket-2-2
i have 2 interfaces on my server. And i change rtp_offer()
like
    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) = *"internal external *UDP/TLS/RTP/SAVPF
ICE=force";
    else if (!isflagset(SRC_WS) && !isbflagset(DST_WS))
        $var(rtpengine_flags) = "RTP/AVP replace-session-connection
replace-origin ICE=remove";
and rtp_answer like

   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) = "UDP/TLS/RTP/SAVPF ICE=force";
    else if (!isflagset(SRC_WS) && isbflagset(DST_WS))
        $var(rtpengine_flags) = "*external internal* 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";

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160923/a2fa3063/attachment-0001.htm>


More information about the Users mailing list