<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=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
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:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m working on building an RTP Proxy which will allow both regular SIP to SIP transactions and WebRTC to SIP transactions to an Asterisk Server.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">SIP UAC < ---UDP/SIP --- > Kamailio/RTPEngine Proxy < ---UDP/SIP----- > Asterisk Server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">AND<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">WebRTC UAC < ---WSS--- > Kamailio/RTPEngine Proxy < ---UDP/SIP----- > Asterisk Server<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The Kamailio/RTPEngine Proxy is stateless (does not use the tm or registerer modules), and uses the Path module to replace the Route header with a Path header.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It works grep for SIP/UDP to SIP/UDP transactions.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">HOWEVER… It only partially works for WSS to SIP/UDP transactions. The REGISTER/401(Unauthorized), REGISTER/200(OK) transaction works well.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When the Asterisk server sends a SIP Options message, I get the following error:<o:p></o:p></p>
<p class="MsoNormal">Jun 25 15:47:03 VRTPENGINE kamailio[4953]: INFO: <script>: => OPTIONS <
<a href="sip:l4umfumh@192.0.2.97;transport=ws;alias=209.141.117.212~59751~6">sip:l4umfumh@192.0.2.97;transport=ws;alias=209.141.117.212~59751~6</a> -> <null> (IP:172.16.0.48:sp)<o:p></o:p></p>
<p class="MsoNormal">Jun 25 15:47:03 VRTPENGINE kamailio[4953]: WARNING: <core> [core/msg_translator.c:2815]: via_builder(): TCP/TLS connection (id: 0) for WebSocket could not be found<o:p></o:p></p>
<p class="MsoNormal">Jun 25 15:47:03 VRTPENGINE kamailio[4953]: ERROR: <core> [core/msg_translator.c:2003]: build_req_buf_from_sip_req(): could not create Via header<o:p></o:p></p>
<p class="MsoNormal">Jun 25 15:47:03 VRTPENGINE kamailio[4953]: ERROR: <core> [core/forward.c:550]: forward_request(): building failed<o:p></o:p></p>
<p class="MsoNormal">Jun 25 15:47:03 VRTPENGINE kamailio[4953]: WARNING: <core> [core/receive.c:425]: receive_msg(): error while trying script<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It appears that the WebSocket corresponding to the WSS leg cannot be located when the request is initiated from the Asterisk Server.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Any thoughts on how I can get this to work in the other direction (Asterisk to Kamailio)? I’ve been looking at the WebRTC to SIP Client and Server (<a href="https://github.com/havfo/WEBRTC-to-SIP">https://github.com/havfo/WEBRTC-to-SIP</a>),
but that doesn’t quite do what I want it to do (i.e. it appears to act as a registrar server and doesn’t forward REGISTER requests on to another registrar).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks and regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="color:#2F5496">Peter H. Manley, Ph.D.</span></b><span style="color:#4472C4">
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#68613C">Chief Software Architect</span><b><span style="font-size:10.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#68613C">Kom</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D">Bea</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#68613C"> Corporation</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D3400-2BNorth-2BAshton-2BBlvd-2C-2BSuite-2B470-2B-250D-250A-2BLehi-2C-2BUtah-2B84043-26entry-3Dgmail-26source-3Dg&d=DwMF-g&c=aXfg9j-An5sFdflqnjAj_USiCjXm5xEBIX8lTgWEt0U&r=ykVOlDeeWPn-JjTs8avieNrFskQ3kNzjf6_Jn_wG5HLeLIRsvzCN4-dJx6BFR4el&m=MMSIepRfj2CXVMH3CH8SghyPAoonRISMH__5bcNFPLM&s=C4toC0HQ2JwHKiamawbqvdjdidlwyhCP0XVneFagwkY&e=" target="_BLANK" title="https://urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D3400-2BNorth-2BAshton-2BBlvd-2C-2BSuite-2B470-2B-250D-250A-2BLehi-2C-2BUtah-2B84043-26entry-3Dgmail-26source-3Dg&d=DwMF-g&c=aXfg9j-An5sFdflqnjAj_USiCjXm5xEBIX8lTgWEt0U&r=ykVOlDeeW"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1155CC">3400
North Ashton Blvd, Suite 470</span></a></span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D3400-2BNorth-2BAshton-2BBlvd-2C-2BSuite-2B470-2B-250D-250A-2BLehi-2C-2BUtah-2B84043-26entry-3Dgmail-26source-3Dg&d=DwMF-g&c=aXfg9j-An5sFdflqnjAj_USiCjXm5xEBIX8lTgWEt0U&r=ykVOlDeeWPn-JjTs8avieNrFskQ3kNzjf6_Jn_wG5HLeLIRsvzCN4-dJx6BFR4el&m=MMSIepRfj2CXVMH3CH8SghyPAoonRISMH__5bcNFPLM&s=C4toC0HQ2JwHKiamawbqvdjdidlwyhCP0XVneFagwkY&e=" target="_BLANK//urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1155CC">Lehi,
Utah 84043</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#212121"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kombea.com_&d=DwMF-g&c=aXfg9j-An5sFdflqnjAj_USiCjXm5xEBIX8lTgWEt0U&r=ykVOlDeeWPn-JjTs8avieNrFskQ3kNzjf6_Jn_wG5HLeLIRsvzCN4-dJx6BFR4el&m=MMSIepRfj2CXVMH3CH8SghyPAoonRISMH__5bcNFPLM&s=ocueS1ZL34IN6qr14M-aItGjeJGQ2km5U2zpzO4Fyqw&e=" target="_BLANK//urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#1F497D">www.kombea.com</span></a></span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:gray"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:gray">Office:+1.801.610.5808<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:gray">Mobile +1.801.243.7773<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>