<div dir="auto">Hi! <div dir="auto">You can to hande it with add_contact_alias but im not sure it will rewrite transport for you</div><div dir="auto"><br></div><div dir="auto">also if you will store contact as it is on your backend it is a big chance that it can be unusefull with your SIP service because conract uri is encrypted and most of b2b servers like asterisk for example will can not resolve this.</div><div dir="auto"><br></div><div dir="auto">Only one I can suggest - is rewrite contact header with ip address of webrtc2sip gateway you are building</div><div dir="auto"><br></div><div dir="auto">May be some one else will can suggest some more usefull solutions for you.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, May 9, 2018, 16:11 Pan Christensen <<a href="mailto:pan.christensen@phonect.no" target="_blank" rel="noreferrer">pan.christensen@phonect.no</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_7314863629908938895m_6169067686582779843WordSection1">
<p class="MsoNormal"><span lang="NO-BOK">Hello!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="NO-BOK"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">U 2018/05/09 10:12:58.316643 GATEWAY:15060 -> DOMAIN:5060<u></u><u></u></p>
<p class="MsoNormal">REGISTER sip:DOMAIN SIP/2.0.<u></u><u></u></p>
<p class="MsoNormal">Via: SIP/2.0/UDP GATEWAY:15060;branch=z9hG4bK4fc6.04d1730be5b78d595c69a3aa137987c1.0.<u></u><u></u></p>
<p class="MsoNormal">Via: SIP/2.0/AUTO lr2l9s72ehhc.invalid;rport=61353;received=CLIENT;branch=z9hG4bK5927151.<u></u><u></u></p>
<p class="MsoNormal">Max-Forwards: 68.<u></u><u></u></p>
<p class="MsoNormal">To: <sip:4777519304@DOMAIN>.<u></u><u></u></p>
<p class="MsoNormal">From: <sip:4777519304@DOMAIN>;tag=9qhqhrnj3s.<u></u><u></u></p>
<p class="MsoNormal">Call-ID: j5h7830ivr5dfc2mn5sov1.<u></u><u></u></p>
<p class="MsoNormal">CSeq: 4 REGISTER.<u></u><u></u></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.<u></u><u></u></p>
<p class="MsoNormal">Expires: 600.<u></u><u></u></p>
<p class="MsoNormal">Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO.<u></u><u></u></p>
<p class="MsoNormal">Supported: path,gruu,outbound.<u></u><u></u></p>
<p class="MsoNormal">User-Agent: JsSIP 3.2.9.<u></u><u></u></p>
<p class="MsoNormal">Content-Length: 0.<u></u><u></u></p>
<p class="MsoNormal">Path: <sip:GATEWAY:15060;lr>.<u></u><u></u></p>
<p class="MsoNormal">.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">U 2018/05/09 10:12:58.368409 DOMAIN:5060 -> GATEWAY:15060<u></u><u></u></p>
<p class="MsoNormal">SIP/2.0 400 Wrong transport. Provided transport either invalid or not supported..<u></u><u></u></p>
<p class="MsoNormal">Via: SIP/2.0/UDP GATEWAY:15060;branch=z9hG4bK4fc6.04d1730be5b78d595c69a3aa137987c1.0.<u></u><u></u></p>
<p class="MsoNormal">Via: SIP/2.0/AUTO lr2l9s72ehhc.invalid;rport=61353;received=CLIENT;branch=z9hG4bK5927151.<u></u><u></u></p>
<p class="MsoNormal">To: <sip:4777519304@DOMAIN>;tag=91334f57.<u></u><u></u></p>
<p class="MsoNormal">From: <sip:4777519304@DOMAIN>;tag=9qhqhrnj3s.<u></u><u></u></p>
<p class="MsoNormal">Call-ID: j5h7830ivr5dfc2mn5sov1.<u></u><u></u></p>
<p class="MsoNormal">CSeq: 4 REGISTER.<u></u><u></u></p>
<p class="MsoNormal">Content-Length: 0.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">How do I best proceed?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:black">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"><a href="mailto:pan.christensen@phonect.no" rel="noreferrer noreferrer" target="_blank"><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"><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/" rel="noreferrer noreferrer" target="_blank"><span style="color:windowtext;text-decoration:none"><img border="0" width="159" height="51" style="width:1.6562in;height:.5312in" id="m_7314863629908938895m_6169067686582779843Picture_x0020_16" alt="cid:image007.png@01D3A0E8.376921D0"></span></a></span><span><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="NO-BOK"><a href="https://www.facebook.com/phonectno" rel="noreferrer noreferrer" target="_blank"><span style="color:windowtext;text-decoration:none"><img border="0" width="21" height="21" style="width:.2187in;height:.2187in" id="m_7314863629908938895m_6169067686582779843Picture_x0020_1" alt="facebook_2"></span></a></span><span lang="NO-BOK" style="color:black"> </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" rel="noreferrer noreferrer" target="_blank"><span style="font-size:10.5pt;color:black;text-decoration:none"><img border="0" width="21" height="21" style="width:.2187in;height:.2187in" id="m_7314863629908938895m_6169067686582779843Picture_x0020_2" alt="LinkedIn_logo_initials (1)"></span></a></span><span lang="NO-BOK" style="font-size:10.5pt;color:#1f497d"> </span><span lang="NO-BOK"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="NO-BOK"><u></u> <u></u></span></p>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer noreferrer" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>