<div dir="ltr">On 29 May 2013 19:23, Michael Leuker <span dir="ltr"><<a href="mailto:michael@leuker.me" target="_blank">michael@leuker.me</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr">Sure, here's the sequence for an inbound call via the "LPhone" trunk that was supposed to go through to extension 1001. The extension was set to "NAT" in the FreePBX settings. Just ask if you need more background.<br>



</div><div class="gmail_extra"><br></div></blockquote><div><br></div><div style>The Asterisk part looks fine. It is sending the call to <a href="http://1001@198.23.139.21:5060">1001@198.23.139.21:5060</a> which I presume is your Kamailio instance.</div>

<div style><br></div><div style>for some reason Kamailio is not recognising the user. Could it be that you do not have the ip 198.23.139.21 set up on Kamailio as an alias, or that the user 1001 is registering to a different domain?</div>

<div style><br></div><div style>Kamailio would be looking in the location table for "username='1001' AND domain='198.23.139.21'"</div><div style><br></div><div style>You should check the Kamailio logs for what is happening when Asterisk sends it the INVITE for <a href="mailto:1001@198.23.139.21">1001@198.23.139.21</a></div>

<div style><br></div><div style>Hope this helps.</div><div style><br></div><div style>-Barry</div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, May 29, 2013 at 6:14 PM, Barry Flanagan <span dir="ltr"><<a href="mailto:barry@flanagan.ie" target="_blank">barry@flanagan.ie</a>></span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>On 29 May 2013 10:25, Michael Leuker <span dir="ltr"><<a href="mailto:michael@leuker.me" target="_blank">michael@leuker.me</a>></span> wrote:<br>



</div><div class="gmail_extra"><div class="gmail_quote"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr"><div><div>Thank you very much for sharing your insights, Barry! I am facing the same problem that Trevor described: <br><br>Things are working just fine on their own, but as soon as FreePBX comes into play, calling extensions becomes impossible because of the different tables used. Removing the password from FreePBX (and setting the Kamailio IP in the ACL field) seems to mitigate the issue somewhat, but even though the extension shows as registered in FreePBX, it always shows as busy:<br>







<br>chan_sip.c:23237 handle_response_invite: Failed to authenticate on INVITE to '"xxxxxxxx" <<a href="mailto:sip%3Axxxxxxxx@198.23.139.21" target="_blank">sip:xxxxxxxx@198.23.139.21</a>>;tag=as72a4117a'<br>





    -- SIP/1001-00000006 is circuit-busy<br>

<br></div></div></div></blockquote><div><br></div></div><div>Can you do "sip set debug on" on Asterisk and make a call and  post the output?</div><span><font color="#888888"><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">





<div dir="ltr"><div><div></div></div></div></blockquote></font></span></div><span><font color="#888888">-Barry</font></span></div><div class="gmail_extra"><br></div></div>
<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" target="_blank">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></blockquote></div><br></div>
<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>
<br></blockquote></div><br></div></div>