<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">New to Kamailio.  I have my Kamailio 4.0 server with websocket support, and the users can register using the JsSIP Tryit sample WebRTC application.  They can do &#39;chat&#39; feature of JsSIP Tryit using kamailio 4.0 sip over websockets module.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">However, after registration, the users can&#39;t place an audio call.  I see no ringing on the remote browser.  Can anyone help with clues or debug?  In Debug log I can see the websocket ws_frame.c decode the websocket message into SIP, and I see normal SIP call flow for an INVITE.  However, nothing indicating a call.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I ran &#39;ngrep -p -w -W byline port 8888&#39; (WS port) and see that I&#39;m getting an error response to browser UA of &quot;405:  Method Not Allowed&quot;.  I&#39;ve isolated it down to the this snippet in the kamailio.cfg for route[LOCATION]:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div><div><font face="arial, sans-serif">        $avp(oexten) = $rU;</font></div><div><font face="arial, sans-serif">        if (!lookup(&quot;location&quot;)) {</font></div>
<div><font face="arial, sans-serif">                $var(rc) = $rc;</font></div><div><font face="arial, sans-serif">                route(TOVOICEMAIL);</font></div><div><font face="arial, sans-serif">                t_newtran();</font></div>
<div><font face="arial, sans-serif">                switch ($var(rc)) {</font></div><div><font face="arial, sans-serif">                        case -1:</font></div><div><font face="arial, sans-serif">                        case -3:</font></div>
<div><font face="arial, sans-serif">                                send_reply(&quot;404&quot;, &quot;Not Found&quot;);</font></div><div><font face="arial, sans-serif">                                exit;</font></div><div>
<font face="arial, sans-serif">                        case -2:</font></div><div><font face="arial, sans-serif">                                send_reply(&quot;405&quot;, &quot;TEST:  Method Not Allowed&quot;);</font></div>
<div><font face="arial, sans-serif">                                exit;</font></div><div><font face="arial, sans-serif">                }</font></div><div><font face="arial, sans-serif">        }</font></div></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">The switch case is returning -2, for some reason.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Any help in debugging this appreciated.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div></div>