The debug-level log would be helpful.<br><br>What does your dialplan look like? It looks like you&#39;re executing a dialplan extension that&#39;s trying to connect somewhere with the event socket (to have the logic executed externally) but failing to connect to a ESL server:<br>

<span style="color:rgb(0, 0, 255)">mod_event_socket.c:457 Socket Error!<br></span><br>That suggests to me your dialplan might not be doing what you expect it to.<br><br>-Steve<br><br><br><br><div class="gmail_quote">On 3 August 2011 06:10, 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 style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>