<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">&lt;action application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:8022/" target="_blank" style="color:rgb(17,85,204)">127.0.0.1:8022</a> syn full&quot;/&gt;</blockquote>

<div><br></div><div>Try &quot;<a href="http://127.0.0.1:8022">127.0.0.1:8022</a> syn<u><b>c</b></u> full&quot;</div><div><br></div><div>Also verify your program is indeed listening on <a href="http://127.0.0.1:8022">127.0.0.1:8022</a> (use netstat).</div>

<div><br></div><div>-Steve</div><div><br></div><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote">On 7 November 2012 12:05, Mumuney Abdlquadri <span dir="ltr">&lt;<a href="mailto:abdlquadri@googlemail.com" target="_blank">abdlquadri@googlemail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<div><br></div><div>I am using node-esl to setup an outbound connection.</div><div><br></div><div>I am on ubuntu. I have a softphone connected to  freeswitch from a win7 system on Virtualbox.</div>

<div><br></div><div>
my dialplan is such:</div><div><br></div><div><div>&lt;include&gt;</div><div>  &lt;extension name=&quot;<a href="http://abdlquadri.com" target="_blank">abdlquadri.com</a>&quot;&gt;<br></div><div>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1982)$&quot;&gt;<br>


</div><div>&lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div><div>&lt;action application=&quot;set&quot; data=&quot;name=abdlquadri&quot;/&gt;</div><div>      &lt;action application=&quot;log&quot; data=&quot;INFO ${name} is online!&quot;/&gt;<br>


</div><div>     &lt;action application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:8022" target="_blank">127.0.0.1:8022</a> syn full&quot;/&gt;</div><div>    &lt;/condition&gt;<br></div><div>  &lt;/extension&gt;</div>

<div>&lt;/include&gt;</div>
</div><div><br></div><div>When I dial 1982 the output from freeswitch is such:</div><div><br></div><div><div>2012-11-07 12:40:04.403324 [NOTICE] switch_channel.c:926 New Channel sofia/internal/<a href="mailto:1000@10.0.2.2" target="_blank">1000@10.0.2.2</a> [df4ad290-28cf-11e2-a3ea-bdbddea31077]</div>


<div>2012-11-07 12:40:04.403324 [INFO] mod_dialplan_xml.c:485 Processing abdlquadri &lt;1000&gt;-&gt;1982 in context default</div><div>2012-11-07 12:40:05.403318 [INFO] mod_dptools.c:1420 abdlquadri is online!</div><div>

2012-11-07 12:40:05.403318 [INFO] switch_core_session.c:2137 Sending early media</div>
</div><div>2012-11-07 12:40:05.423325 [NOTICE] mod_sofia.c:2585 Pre-Answer sofia/internal/<a href="mailto:1000@10.0.2.2" target="_blank">1000@10.0.2.2</a>!<br></div><div><div>2012-11-07 12:40:29.563345 [ERR] mod_event_socket.c:458 Socket Error!<br>


</div><div>2012-11-07 12:40:29.563345 [NOTICE] switch_core_state_machine.c:226 sofia/internal/<a href="mailto:1000@10.0.2.2" target="_blank">1000@10.0.2.2</a> has executed the last dialplan instruction, hanging up.</div>

<div>2012-11-07 12:40:29.563345 [NOTICE] switch_core_state_machine.c:228 Hangup sofia/internal/<a href="mailto:1000@10.0.2.2" target="_blank">1000@10.0.2.2</a> [CS_EXECUTE] [NORMAL_CLEARING]</div>
<div>2012-11-07 12:40:29.563345 [NOTICE] switch_core_session.c:1400 Session 6 (sofia/internal/<a href="mailto:1000@10.0.2.2" target="_blank">1000@10.0.2.2</a>) Ended</div><div>2012-11-07 12:40:29.563345 [NOTICE] switch_core_session.c:1402 Close Channel sofia/internal/<a href="mailto:1000@10.0.2.2" target="_blank">1000@10.0.2.2</a> [CS_DESTROY]</div>


</div><div><br></div><div><br></div><div>My node-esl code does not get called. Here is it:</div><div><br></div><div><div>var  esl = require(&#39;modesl&#39;);</div><div>var conn = new esl.Server({</div><div>    port:&#39;8022&#39;, </div>


<div>    host:&#39;127.0.0.1&#39;</div><div>},function(){</div><div>    </div><div>    conn.on(&#39;connection::open&#39;, function(){</div><div>        conn.execute(&quot;answer&quot;);</div><div>        conn.getInfo();</div>


<div>        console.log(&#39;Connection Open&#39;);</div><div>    });</div><div>    conn.on(&#39;connection::ready&#39;, function(conne){</div><div>        conne.execute(&quot;answer&quot;);</div><div>        conne.getInfo();</div>


<div>        console.log(&#39;Connection Ready&#39;);</div><div>    });</div><div>    conn.on(&#39;connection::close&#39;, function(){</div><div>        conn.execute(&quot;answer&quot;);</div><div>        conn.getInfo();</div>


<div>        console.log(&#39;Connection Closed&#39;);</div><div>    });</div><div>    console.log(conn);</div><div>});</div></div><div><br></div><div><br></div><div>I guess the problem is this line: 2012-11-07 12:40:29.563345 [ERR] mod_event_socket.c:458 Socket Error!</div>


<div><br></div><div>Please is there anything am doing wrong.</div><div><br></div><div>Thanks. All.</div><div><br></div><div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>