<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="NO-BOK">Hello!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="NO-BOK"><o:p> </o:p></span></p>
<p class="MsoNormal">It’s been several years since I’ve used Kamailio. My current employer wants to implement WebRTC, which is currently not supported in our SIP backend, and asked if I could set up a Kamailio server as a gateway.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve been able to make calls in all directions between SIP and WebRTC clients registered locally on Kamailio. When I tried to connect the server to the SIP backend, I ran into an issue. I’m able to register SIP clients in the backend via
 the gateway and make calls everywhere. However, the WebRTC client fails to register. Here are the messages between the Kamailio gateway and the SIP backend:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">U 2018/05/09 10:12:58.316643 GATEWAY:15060 -> DOMAIN:5060<o:p></o:p></p>
<p class="MsoNormal">REGISTER sip:DOMAIN SIP/2.0.<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/UDP GATEWAY:15060;branch=z9hG4bK4fc6.04d1730be5b78d595c69a3aa137987c1.0.<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/AUTO lr2l9s72ehhc.invalid;rport=61353;received=CLIENT;branch=z9hG4bK5927151.<o:p></o:p></p>
<p class="MsoNormal">Max-Forwards: 68.<o:p></o:p></p>
<p class="MsoNormal">To: <sip:4777519304@DOMAIN>.<o:p></o:p></p>
<p class="MsoNormal">From: <sip:4777519304@DOMAIN>;tag=9qhqhrnj3s.<o:p></o:p></p>
<p class="MsoNormal">Call-ID: j5h7830ivr5dfc2mn5sov1.<o:p></o:p></p>
<p class="MsoNormal">CSeq: 4 REGISTER.<o:p></o:p></p>
<p class="MsoNormal">Contact: <sip:c3qkm4fv@lr2l9s72ehhc.invalid;transport=ws>;+sip.ice;reg-id=1;+sip.instance="<urn:uuid:0ef2deac-2d56-465a-840b-543b9fd01af8>";expires=600.<o:p></o:p></p>
<p class="MsoNormal">Expires: 600.<o:p></o:p></p>
<p class="MsoNormal">Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO.<o:p></o:p></p>
<p class="MsoNormal">Supported: path,gruu,outbound.<o:p></o:p></p>
<p class="MsoNormal">User-Agent: JsSIP 3.2.9.<o:p></o:p></p>
<p class="MsoNormal">Content-Length: 0.<o:p></o:p></p>
<p class="MsoNormal">Path: <sip:GATEWAY:15060;lr>.<o:p></o:p></p>
<p class="MsoNormal">.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">U 2018/05/09 10:12:58.368409 DOMAIN:5060 -> GATEWAY:15060<o:p></o:p></p>
<p class="MsoNormal">SIP/2.0 400 Wrong transport. Provided transport either invalid or not supported..<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/UDP GATEWAY:15060;branch=z9hG4bK4fc6.04d1730be5b78d595c69a3aa137987c1.0.<o:p></o:p></p>
<p class="MsoNormal">Via: SIP/2.0/AUTO lr2l9s72ehhc.invalid;rport=61353;received=CLIENT;branch=z9hG4bK5927151.<o:p></o:p></p>
<p class="MsoNormal">To: <sip:4777519304@DOMAIN>;tag=91334f57.<o:p></o:p></p>
<p class="MsoNormal">From: <sip:4777519304@DOMAIN>;tag=9qhqhrnj3s.<o:p></o:p></p>
<p class="MsoNormal">Call-ID: j5h7830ivr5dfc2mn5sov1.<o:p></o:p></p>
<p class="MsoNormal">CSeq: 4 REGISTER.<o:p></o:p></p>
<p class="MsoNormal">Content-Length: 0.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I believe that this error message is caused by ‘;transport=ws’ in the Contact header. I’m not allowed to modify this header.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In the backend database, I found that some other clients have ‘;transport=UDP’ in their path headers, so I tried to add that. (Why can I not add parameters in path module without adding username?) I still got the same error.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How do I best proceed?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For your information: We have outsourced the development of the WebRTC client, so we are able to change it. We also have the option of paying the supplier of the backend for development there.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black;mso-fareast-language:NO-BOK">With kind regards<br>
<b>Pan B. Christensen</b><br>
Developer<br>
<br>
Phonect AS <br>
Brugata 19, PB 9156 Grønland, N-0133 Oslo, Norway<br>
E-mail: </span><span lang="NO-BOK" style="font-size:9.0pt;font-family:"Helvetica",sans-serif;mso-fareast-language:NO-BOK"><a href="mailto:pan.christensen@phonect.no"><span lang="EN-US" style="color:#0563C1">pan.christensen@phonect.no</span></a></span><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;mso-fareast-language:NO-BOK"><br>
Mobile: +47 41 88 88 00<br>
<br>
<span style="color:black"><br>
 </span></span><span lang="NO-BOK"><a href="http://www.phonect.no/"><span style="color:windowtext;mso-fareast-language:NO-BOK;text-decoration:none"><img border="0" width="159" height="51" style="width:1.6562in;height:.5312in" id="Picture_x0020_16" src="cid:image005.png@01D3E7A7.B03563C0" alt="cid:image007.png@01D3A0E8.376921D0"></span></a></span><span style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="NO-BOK"><a href="https://www.facebook.com/phonectno"><span style="color:windowtext;mso-fareast-language:NO-BOK;text-decoration:none"><img border="0" width="21" height="21" style="width:.2187in;height:.2187in" id="Picture_x0020_1" src="cid:image003.png@01D3E7A1.CB5A4CC0" alt="facebook_2"></span></a></span><span lang="NO-BOK" style="color:black;mso-fareast-language:NO-BOK"> </span><span lang="NO-BOK"><a href="https://www.linkedin.com/company/44983?trk=tyah&trkInfo=clickedVertical%3Acompany%2CentityType%3AentityHistoryName%2CclickedEntityId%3Acompany_company_44983%2Cidx%3A0"><span style="font-size:10.5pt;color:black;mso-fareast-language:NO-BOK;text-decoration:none"><img border="0" width="21" height="21" style="width:.2187in;height:.2187in" id="Picture_x0020_2" src="cid:image004.png@01D3E7A1.CB5A4CC0" alt="LinkedIn_logo_initials (1)"></span></a></span><span lang="NO-BOK" style="font-size:10.5pt;color:#1F497D;mso-fareast-language:NO-BOK">   </span><span lang="NO-BOK" style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="NO-BOK"><o:p> </o:p></span></p>
</div>
</body>
</html>