<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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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">Hello again!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve figured out that our SIP backend doesn’t like headers with ‘;transport=ws’ or Via: SIP/2.0/<b>AUTO<o:p></o:p></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I need to modify or remove contact, Via and Record-route headers.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I found that the TOPOS module is able to do this. I added it with default settings and applied it to all messages going to the backend. I was then able to make an outgoing call, but found that topology was only hidden in initial requests
(not ACK, UPDATE, BYE etc.). Applying the module to messages in all directions worked better.<o:p></o:p></p>
<p class="MsoNormal">Being able to make outgoing calls is good progress, but this client will mostly be used for incoming calls (switchboard).<o:p></o:p></p>
<p class="MsoNormal">TOPOS does not modify REGISTER. I’m not sure if it’s able to or if it should.<o:p></o:p></p>
<p class="MsoNormal">We tried modifying the headers in the client, but then Kamailio replies ‘478 Unresolvable destination’ to INVITE from the backend.<o:p></o:p></p>
<p class="MsoNormal">How can I enable the WebRTC client to register against the backend and maintain correct routing? Should TOPOS be able to do this? Can I use another module? Is it possible to register the client in Kamailio and then register Kamailio with
the backend (building a new REGISTER message)? Any other suggestions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><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>
Phonect AS </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> <b>
On Behalf Of </b>Pan Christensen<br>
<b>Sent:</b> onsdag 9. mai 2018 15:09<br>
<b>To:</b> sr-users@lists.kamailio.org<br>
<b>Subject:</b> [SR-Users] WebRTC to SIP gateway<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<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 <a href="sip:DOMAIN">sip:DOMAIN</a> 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: <<a href="sip:4777519304@DOMAIN">sip:4777519304@DOMAIN</a>>.<o:p></o:p></p>
<p class="MsoNormal">From: <<a href="sip:4777519304@DOMAIN">sip:4777519304@DOMAIN</a>>;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: <<a href="sip:c3qkm4fv@lr2l9s72ehhc.invalid;transport=ws">sip:c3qkm4fv@lr2l9s72ehhc.invalid;transport=ws</a>>;+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: <<a href="sip:GATEWAY:15060;lr">sip:GATEWAY:15060;lr</a>>.<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: <<a href="sip:4777519304@DOMAIN">sip:4777519304@DOMAIN</a>>;tag=91334f57.<o:p></o:p></p>
<p class="MsoNormal">From: <<a href="sip:4777519304@DOMAIN">sip:4777519304@DOMAIN</a>>;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">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:image001.png@01D3E938.887D74C0" 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:image002.png@01D3E938.887D74C0" 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:image003.png@01D3E938.887D74C0" 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>
</div>
</body>
</html>