<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<pre>Hi Brian,<br><br>Thank you very much for your answer but both, Freeswitch and Kamailio have public IPs, it's my NAT'd IP phone who has private IP but this is fixed by Kamailio.<br><br>The problem is not the 1st call is failing ( the test is set that way), the problem is FS answers back 482 when Kamailio tries a 2nd route ( or 3rd ) for the same call...  <br><br><br>Freeswitch is configured to use the Requested-URI sent by Kamailio:<br><br>&lt;action application="bridge" data="sofia/external/${sip_req_uri}"/&gt;<br><br><br>I noticed that there is no Log message in Freeswitch when receiving the INVITE for the 2nd route.<br>The process in FS seems to be destroyed (11:46:21.396593) before the 2nd INVITE is received (11:46:21.401419<br>).<br><br><br>U 2009/09/08 11:46:21.395702 freeswitch:5060 -&gt; kamailio:5060<br>SIP/2.0 503 Service Unavailable.<br>Call-ID: ba748cd27cd163b5@192.168.2.13<br><br>U 2009/09/08 11:46:21.395897 kamailio:5060 -&gt; freeswitch:5060<br>ACK sip:5145555555@gw1:5060 SIP/2.0.<br>Call-ID: ba748cd27cd163b5@192.168.2.13<br><br>U 2009/09/08 11:46:21.401419 kamailio:5060 -&gt; freeswitch:5060<br>INVITE sip:15145555555@gw2:5061 SIP/2.0.<br>Call-ID: ba748cd27cd163b5@192.168.2.13<br><br>U 2009/09/08 11:46:21.401845 freeswitch:5060 -&gt; kamailio:5060<br>SIP/2.0 482 Request merged.<br>Call-ID: ba748cd27cd163b5@192.168.2.13<br><br><br>2009-09-08 11:46:21.395503 [DEBUG] mod_sofia.c:417 Responding to INVITE with: 503<br>2009-09-08 11:46:21.395503 [DEBUG] switch_core_state_machine.c:46 sofia/external/10092020@freeswitch Standard HANGUP, cause: NORMAL_TEMPORARY_FAILURE<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:434 (sofia/external/10092020@freeswitch) State HANGUP going to sleep<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:476 (sofia/external/10092020@freeswitch) State Change CS_HANGUP -&gt; CS_REPORTING<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_session.c:932 Send signal sofia/external/10092020@freeswitch [BREAK]<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:398 (sofia/external/10092020@freeswitch) Running State Change CS_REPORTING<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:612 (sofia/external/10092020@freeswitch) State REPORTING<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:53 sofia/external/10092020@freeswitch Standard REPORTING, cause: NORMAL_TEMPORARY_FAILURE<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:612 (sofia/external/10092020@freeswitch) State REPORTING going to sleep<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:411 (sofia/external/10092020@freeswitch) State Change CS_REPORTING -&gt; CS_DESTROY<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_session.c:1068 Session 3 (sofia/external/10092020@freeswitch) Locked, Waiting on external entities<br>2009-09-08 11:46:21.396593 [NOTICE] switch_core_session.c:1086 Session 3 (sofia/external/10092020@freeswitch) Ended<br>2009-09-08 11:46:21.396593 [NOTICE] switch_core_session.c:1088 Close Channel sofia/external/10092020@freeswitch [CS_DESTROY]<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:564 (sofia/external/10092020@freeswitch) State DESTROY<br>2009-09-08 11:46:21.396593 [DEBUG] mod_sofia.c:255 sofia/external/10092020@freeswitch SOFIA DESTROY<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:60 sofia/external/10092020@freeswitch Standard DESTROY<br>2009-09-08 11:46:21.396593 [DEBUG] switch_core_state_machine.c:564 (sofia/external/10092020@freeswitch) State DESTROY going to sleep<br><br><br>Note: I'm using only the external sofia profile.<br><br><br>Thanks,<br><br>Humberto<br><br><br><br><br><br><br><br><br><br><br><br>==========================================<br>Looks like FS is behind nat.  You need to set local-network-acl and  <br>the ext-rtp-ip and ext-sip-ip so FreeSWITCH properly puts in the right  <br>IP's in the via headers and sdp.<br><br>Please refer to internal.xml in the latest SVN for an example of how  <br>to do this.<br><br>/b<br></pre><br /><hr />New! Open Hotmail faster on the new <a href='http://go.microsoft.com/?linkid=9677400' target='_new'>MSN homepage!</a></body>
</html>