<div dir="ltr">Peter,<div><br></div><div>Thank you. By changing the "method_filtering" 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 "180 Ringing" message for a while, followed by a "408 Request Timeout". 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 'chat' messaging. Just can'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 'src_user' in 'field list'</div><div>Mar 29 20:16:07 ace /usr/local/sbin/kamailio[5928]: ERROR: <core> [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"><<a href="mailto:peter.dunkley@crocodile-rcs.com" target="_blank">peter.dunkley@crocodile-rcs.com</a>></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 "Allow:" 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 "method_filtering" 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>
> Hi,<br>
><br>
> New to Kamailio. I have my Kamailio 4.0 server with websocket support,<br>
> and<br>
> the users can register using the JsSIP Tryit sample WebRTC application.<br>
> They can do 'chat' feature of JsSIP Tryit using kamailio 4.0 sip over<br>
> websockets module.<br>
><br>
> However, after registration, the users can't place an audio call. I see<br>
> no<br>
> ringing on the remote browser. Can anyone help with clues or debug? In<br>
> Debug log I can see the websocket ws_frame.c decode the websocket message<br>
> into SIP, and I see normal SIP call flow for an INVITE. However, nothing<br>
> indicating a call.<br>
><br>
> I ran 'ngrep -p -w -W byline port 8888' (WS port) and see that I'm getting<br>
> an error response to browser UA of "405: Method Not Allowed". I've<br>
> isolated it down to the this snippet in the kamailio.cfg for<br>
> route[LOCATION]:<br>
><br>
> $avp(oexten) = $rU;<br>
> if (!lookup("location")) {<br>
> $var(rc) = $rc;<br>
> route(TOVOICEMAIL);<br>
> t_newtran();<br>
> switch ($var(rc)) {<br>
> case -1:<br>
> case -3:<br>
> send_reply("404", "Not Found");<br>
> exit;<br>
> case -2:<br>
> send_reply("405", "TEST: Method Not<br>
> Allowed");<br>
> exit;<br>
> }<br>
> }<br>
><br>
><br>
> The switch case is returning -2, for some reason.<br>
><br>
> Any help in debugging this appreciated.<br>
</div></div>> _______________________________________________<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>
><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>