[Spce-user] OnSip Sip.Js WebRTC Libraries and SipWise

Andrew Pogrebennyk apogrebennyk at sipwise.com
Wed Mar 18 11:34:04 EDT 2015


On 03/18/2015 04:03 PM, Tarak Patel wrote:
> Actually I am not getting any media at all. Please find the attached logs.

I have not tested the DTLS-SRTP recently. The rtpengine support for
UDP/TLS/RTP/SAVPF profiles is in place, but the kamailio config is still
using the obsolete SDES encryption.
We are thinking about switching completely to UDP/TLS/RTP/SAVPF in one
of the nearest releases.

For now you can try the following:
1) set preferences srtp_transcoding and rtcp_feedback to Transparent on
the domain level (and on subscribers if you have ever changed it there
from the default..)

2) Change your
/etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.customtt.tt2 as
below (create this file if it doesn't exist according to
https://www.sipwise.com/doc/mr3.7.2/spce/ar01s11.html#_tt2_and_customtt_tt2_files)
and execute ngcpcfg apply:

                setbflag(FLB_ICE_CALLER_STRIP);
        }

-       # webrtc endpoint automatic detection
-       $(avp(s:mline)[*]) = $null;
-       if(sdp_get_line_startswith("$avp(s:mline)","m=") &&
-          $avp(s:mline) =~ "SAVPF")
-       {
-               resetbflag(FLB_SAVP_CALLER_RTP);
-               setbflag(FLB_SAVP_CALLER_SRTP);
-       }
-       else if(
+       if(
           $var(from_local_endpoint) == 1 &&
           # if from voicemail or iaxmodem - transcode to RTP
           !($avp(s:from_faxserver) == 1 && $var(sendfax) != 1)
@@ -7949,15 +7941,7 @@ route[ROUTE_BRANCH_ACC_RTP]
                setbflag(FLB_SAVP_CALLER_RTP);
        }

-       # webrtc endpoint automatic detection
-       $(avp(s:mline)[*]) = $null;
-       if(sdp_get_line_startswith("$avp(s:mline)","m=") &&
-          $avp(s:mline) =~ "SAVPF")
-       {
-               resetbflag(FLB_AVPF_CALLER_AVP);
-               setbflag(FLB_AVPF_CALLER_AVPF);
-       }
-       else if($avp(s:first_caller_rtcp_feedback) == "force_avpf")
+       if($avp(s:first_caller_rtcp_feedback) == "force_avpf")
        {
                add_rr_param(";avpf_caller=force_avpf");
                setbflag(FLB_AVPF_CALLER_AVPF);
@@ -7988,13 +7972,7 @@ route[ROUTE_BRANCH_ACC_RTP]
                setbflag(FLB_ICE_CALLEE_STRIP);
        }

-       # webrtc endpoint automatic detection
-       if($(ru{uri.param,transport}) == "ws")
-       {
-               resetbflag(FLB_SAVP_CALLEE_RTP);
-               setbflag(FLB_SAVP_CALLEE_SRTP);
-       }
-       else if($var(to_local_endpoint) == 1 && $var(callee_is_hwfax) != 1)
+       if($var(to_local_endpoint) == 1 && $var(callee_is_hwfax) != 1)
        # don't transcode to RTP call to hwfax because this overwrites
"UDPTL" to "RTP/AVP"
        {
                add_rr_param(";savp_callee=force_rtp");


Basically, we need to remove the conditions for webrtc endpoint
automatic detection.

Andrew



More information about the Spce-user mailing list