Best thing here is to turn on debugging and a siptrace:<div>console loglevel debug</div><div>sofia global siptrace on</div><div><br></div><div>Do a test call and then put it into <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a>. Be sure to use &quot;FreeSWITCH Log&quot; as the syntax highlighting.</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 10:10 PM, Dhairya Vora <span dir="ltr">&lt;<a href="mailto:dhairya.blogs@gmail.com">dhairya.blogs@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I don&#39;t understand why two users (registered directly to freeswitch) are unable to connect each other?<br><br><br>When a registered user 1001 calls registered user 1002, call fails giving this error<br><span style="color:rgb(0, 0, 255)">************************************************************************************************************************************************************</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">freeswitch@localhost.localdomain&gt;
 2011-08-03 10:07:01.941089 [WARNING] sofia_reg.c:1337 SIP auth 
challenge (INVITE) on sofia profile &#39;internal&#39; for [<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a>] from ip 172.16.10.248</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.941089 [NOTICE] switch_channel.c:897 New Channel sofia/internal/<a href="mailto:1000@172.16.10.211" target="_blank">1000@172.16.10.211</a> [0bf31c06-8379-4831-88d7-a7df3c4ecd49]</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.941089 [INFO] mod_dialplan_xml.c:336 Processing 1000 &lt;1000&gt;-&gt;1002 in context default</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.941089 [INFO] switch_core_session.c:1281 sofia/internal/<a href="mailto:1000@172.16.10.211" target="_blank">1000@172.16.10.211</a> setting session heartbeat to 60 second(s).</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.941089 [ERR] mod_event_socket.c:457 Socket Error!</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.941089 [NOTICE] switch_core_state_machine.c:189 sofia/internal/<a href="mailto:1000@172.16.10.211" target="_blank">1000@172.16.10.211</a> has executed the last dialplan instruction, hanging up.</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.941089 [NOTICE] switch_core_state_machine.c:191 Hangup sofia/internal/<a href="mailto:1000@172.16.10.211" target="_blank">1000@172.16.10.211</a> [CS_EXECUTE] [NORMAL_CLEARING]</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.961094 [NOTICE] switch_core_session.c:1347 Session 25 (sofia/internal/<a href="mailto:1000@172.16.10.211" target="_blank">1000@172.16.10.211</a>) Ended</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:07:01.961094 [NOTICE] switch_core_session.c:1349 Close Channel sofia/internal/<a href="mailto:1000@172.16.10.211" target="_blank">1000@172.16.10.211</a> [CS_DESTROY]</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">************************************************************************************************************************************************************</span><br style="color:rgb(0, 0, 255)">

<br><br><br>When I make an outbound call to my mobile, calls are not going through the custom gateway<br><span style="color:rgb(0, 0, 255)">************************************************************************************************************************************************************</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">freeswitch@localhost.localdomain&gt;
 2011-08-03 10:03:43.608234 [WARNING] sofia_reg.c:1337 SIP auth 
challenge (INVITE) on sofia profile &#39;internal&#39; for [<a href="mailto:00919876543210@172.16.10.211" target="_blank">00919876543210@172.16.10.211</a>] from ip 172.16.10.213</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [NOTICE] switch_channel.c:897 New Channel sofia/internal/<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a> [334906be-9cb0-44f2-9660-f9377c2ecfba]</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [INFO] mod_dialplan_xml.c:336 Processing 1002 &lt;1002&gt;-&gt;00919876543210 in context default</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [INFO] switch_core_session.c:1281 sofia/internal/<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a> setting session heartbeat to 60 second(s).</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [ERR] mod_event_socket.c:457 Socket Error!</span><br style="color:rgb(0, 0, 255)"><span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [NOTICE] switch_core_state_machine.c:189 sofia/internal/<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a> has executed the last dialplan instruction, hanging up.</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [NOTICE] switch_core_state_machine.c:191 Hangup sofia/internal/<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a> [CS_EXECUTE] [NORMAL_CLEARING]</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [NOTICE] switch_core_session.c:1347 Session 24 (sofia/internal/<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a>) Ended</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">2011-08-03 10:03:43.728232 [NOTICE] switch_core_session.c:1349 Close Channel sofia/internal/<a href="mailto:1002@172.16.10.211" target="_blank">1002@172.16.10.211</a> [CS_DESTROY]</span><br style="color:rgb(0, 0, 255)">

<span style="color:rgb(0, 0, 255)">************************************************************************************************************************************************************</span>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>