<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Trebuchet MS" size="2"><span style="font-size:10pt;">
<div>Hi experts,</div>
<div> </div>
<div>Using websockets, I am facing a behavior I can’t manage explaining : on reception of an initial REGISTER (over websocket), it seems that the routing logic in the request_route method is not invoked</div>
<div> </div>
<div>Extract of my Kamailio.cfg to explain</div>
<div>===================================================================</div>
<div>Request_route {</div>
<div style="text-indent:35.4pt;">xlog(“L_DBG”, “Entering request_route for $rm”)</div>
<div>…</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Onreply_route[REGISTER_reply] {</div>
<div style="text-indent:35.4pt;"><font face="Calibri" size="2"><span style="font-size:11pt;">        <font face="Trebuchet MS" size="2"><span style="font-size:10pt;">If (t_check_status(</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">“</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">200</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">”</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">)</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">)
</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">xlog(</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">“</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">L_DBG</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">”</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">,
</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">“</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">REGISTER OK</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">”</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">)</span></font></span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Event_route[xhttp:request] {</div>
<div style="text-indent:35.4pt;">xlog(“L_DBG”, “XHTTP Request received”)</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;">        <font face="Trebuchet MS" size="2"><span style="font-size:10pt;">ws_</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">handle_</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">hanshake(</span></font><font face="Trebuchet MS" size="2"><span style="font-size:10pt;">);</span></font></span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>In my logs, I only see</div>
<ul style="margin:0;padding-left:36pt;">
<li>XHTTP Request received</li><li>REGISTER OK</li></ul>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>No trace of “Entering request route for REGISTER” ! whereas for a subsequent INVITE, I see the trace</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Any explanation ? because of this, the fix_nated_register() is not called, and I suspect this causes the troubles I meet trying to make call with websockets </div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>Olivier DURECU<font face="Calibri" size="2"><span style="font-size:11pt;"> <br>

</span></font>Bell Labs / IP Platform Research <br>

Villarceaux Center<font face="Calibri" size="2"><span style="font-size:11pt;"> <br>

</span></font>Tel: +33(0) 130772759<font face="Calibri" size="2"><span style="font-size:11pt;">
<br>

</span></font>GSM: +33(0) 683776482<font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
</span></font>
</body>
</html>