<div dir="ltr">Peter,<div><br></div><div>Thank you.  By changing the &quot;method_filtering&quot; modparam to 0 (it was actually 1), I am now able to make it past this, and the INVITE is processed over WS transport.  However, the audio call is still not completing.</div>

<div><br></div><div>I am seeing a &quot;180 Ringing&quot; message for a while, followed by a &quot;408 Request Timeout&quot;.  Nothing is showing ringing on the remote browser with JsSIP tryit.  </div><div><br></div><div>
The only clues I can see in /var/log/syslog hae to do with Accounting DB.  I am using MySQL. </div><div><br></div><div style>Note that I can do SIP User Agent client calling just fine between these two same users, and using the JsSIP Tryit app I can also do &#39;chat&#39; messaging.  Just can&#39;t do audio call.  Here is /var/log/syslog:</div>
<div><br></div><div><div>Mar 29 20:16:07 ace /usr/local/sbin/kamailio[5928]: NOTICE: acc [acc.c:275]: ACC: call missed: timestamp=1364588167;method=INVITE;from_tag=v71r89q4si;to_tag=mnspl1i563;call_id=8rcjevfvgid74ep1s8rc;code=408;reason=Request Timeout;src_user=brad;src_domain=<a href="http://xxx.net">xxx.net</a>;src_ip=172.10.200.149;dst_ouser=joe;dst_user=tmgcpvap;dst_domain=7dq4kria04ks.invalid</div>
<div>Mar 29 20:16:07 ace /usr/local/sbin/kamailio[5928]: ERROR: db_mysql [km_dbase.c:122]: driver error on query: Unknown column &#39;src_user&#39; in &#39;field list&#39;</div><div>Mar 29 20:16:07 ace /usr/local/sbin/kamailio[5928]: ERROR: &lt;core&gt; [db_query.c:235]: error while submitting query</div>
<div>Mar 29 20:16:07 ace /usr/local/sbin/kamailio[5928]: ERROR: acc [acc.c:404]: failed to insert into database</div></div>
<div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 9:26 PM, Peter Dunkley <span dir="ltr">&lt;<a href="mailto:peter.dunkley@crocodile-rcs.com" target="_blank">peter.dunkley@crocodile-rcs.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
In SIP you can put an Allow: header in REGISTER requests to say which<br>
methods the registering end-point is capable of receiving.<br>
<br>
If you get a -2 returned from lookup() it means that the method for the<br>
request (in this case INVITE) was not in the &quot;Allow:&quot; header in the<br>
REGISTER.<br>
<br>
You can check this by looking at the REGISTER request in a trace and by<br>
inspecting the location records stored in Kamailio (use the ul.dump<br>
command in kamctl for this).<br>
<br>
You can disable method filtering in the Kamailio registrar module by<br>
ensuring that the &quot;method_filtering&quot; modparam is set to 0 (or just not set<br>
at all as disabled is the default).  Doing this should prevent lookup()<br>
ever returning -2.<br>
<br>
Regards,<br>
<br>
Peter<br>
<div><div class="h5"><br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; New to Kamailio.  I have my Kamailio 4.0 server with websocket support,<br>
&gt; and<br>
&gt; the users can register using the JsSIP Tryit sample WebRTC application.<br>
&gt;  They can do &#39;chat&#39; feature of JsSIP Tryit using kamailio 4.0 sip over<br>
&gt; websockets module.<br>
&gt;<br>
&gt; However, after registration, the users can&#39;t place an audio call.  I see<br>
&gt; no<br>
&gt; ringing on the remote browser.  Can anyone help with clues or debug?  In<br>
&gt; Debug log I can see the websocket ws_frame.c decode the websocket message<br>
&gt; into SIP, and I see normal SIP call flow for an INVITE.  However, nothing<br>
&gt; indicating a call.<br>
&gt;<br>
&gt; I ran &#39;ngrep -p -w -W byline port 8888&#39; (WS port) and see that I&#39;m getting<br>
&gt; an error response to browser UA of &quot;405:  Method Not Allowed&quot;.  I&#39;ve<br>
&gt; isolated it down to the this snippet in the kamailio.cfg for<br>
&gt; route[LOCATION]:<br>
&gt;<br>
&gt;         $avp(oexten) = $rU;<br>
&gt;         if (!lookup(&quot;location&quot;)) {<br>
&gt;                 $var(rc) = $rc;<br>
&gt;                 route(TOVOICEMAIL);<br>
&gt;                 t_newtran();<br>
&gt;                 switch ($var(rc)) {<br>
&gt;                         case -1:<br>
&gt;                         case -3:<br>
&gt;                                 send_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>
&gt;                                 exit;<br>
&gt;                         case -2:<br>
&gt;                                 send_reply(&quot;405&quot;, &quot;TEST:  Method Not<br>
&gt; Allowed&quot;);<br>
&gt;                                 exit;<br>
&gt;                 }<br>
&gt;         }<br>
&gt;<br>
&gt;<br>
&gt; The switch case is returning -2, for some reason.<br>
&gt;<br>
&gt; Any help in debugging this appreciated.<br>
</div></div>&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Peter Dunkley<br>
Technical Director<br>
Crocodile RCS Ltd<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</font></span></blockquote></div><br></div>