<div dir="ltr"><div><div><div><div><div><div>Thank you so much for pointing me in the right direction! It was the missing alias. Now the extensions are working, but there's one more problem: When I call the PBX (echo-test) or from one extension to another, I get a hangup because Asterisk doesn't seem to receive an ACK from the client:<br>

<br>"Retransmission timeout reached on transmission OGNkYTY1ZmJmY2VmMjQ2YmM4MWU1YWY0YjU3NjlhYjA for seqno 2 (Critical Response)"<br><br></div>I have attached the log for two local calls that hangup after about 30s and the sequence for an incoming call from one of the trunks that works without problems. So you can map all the IPs:<br>

<br>--------<br></div>198.23.139.21 (5060): Kamailio<br></div>198.23.139.21 (5080): Asterisk<br></div>--------<br><a href="http://192.168.178.33">192.168.178.33</a>: Home network local IP<br></div><a href="http://188.105.112.187">188.105.112.187</a>: Home network external IP<br>

--------<br><a href="http://94.75.247.45">94.75.247.45</a>: Trunk<br></div><div><div>--------<br><br></div><div>NAT was set to "No - RFC3581" for these captures, but I've tried all other possibilities (including nathelper / rtpproxy) without success. Do you (or anybody else) have any idea where to look in order to solve this problem?<br>

</div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 30, 2013 at 10:36 AM, Barry Flanagan <span dir="ltr"><<a href="mailto:barry@flanagan.ie" target="_blank">barry@flanagan.ie</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">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><div class="gmail_extra"><div class="gmail_quote"><div class="im"><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><div>The Asterisk part looks fine. It is sending the call to <a href="http://1001@198.23.139.21:5060" target="_blank">1001@198.23.139.21:5060</a> which I presume is your Kamailio instance.</div>



<div><br></div><div>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><br></div><div>Kamailio would be looking in the location table for "username='1001' AND domain='198.23.139.21'"</div><div><br></div><div>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" target="_blank">1001@198.23.139.21</a></div>



<div><br></div><div>Hope this helps.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Barry</div></font></span><div class="im"><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 class="gmail_extra"><br><div class="gmail_quote"><div><div>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><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" 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></div><br></div></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>