<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"><action application="socket" data="<a href="http://127.0.0.1:8022/" target="_blank" style="color:rgb(17,85,204)">127.0.0.1:8022</a> syn full"/></blockquote>
<div><br></div><div>Try "<a href="http://127.0.0.1:8022">127.0.0.1:8022</a> syn<u><b>c</b></u> full"</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"><<a href="mailto:abdlquadri@googlemail.com" target="_blank">abdlquadri@googlemail.com</a>></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><include></div><div> <extension name="<a href="http://abdlquadri.com" target="_blank">abdlquadri.com</a>"><br></div><div> <condition field="destination_number" expression="^(1982)$"><br>
</div><div><action application="sleep" data="1000"/></div><div><action application="set" data="name=abdlquadri"/></div><div> <action application="log" data="INFO ${name} is online!"/><br>
</div><div> <action application="socket" data="<a href="http://127.0.0.1:8022" target="_blank">127.0.0.1:8022</a> syn full"/></div><div> </condition><br></div><div> </extension></div>
<div></include></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 <1000>->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('modesl');</div><div>var conn = new esl.Server({</div><div> port:'8022', </div>
<div> host:'127.0.0.1'</div><div>},function(){</div><div> </div><div> conn.on('connection::open', function(){</div><div> conn.execute("answer");</div><div> conn.getInfo();</div>
<div> console.log('Connection Open');</div><div> });</div><div> conn.on('connection::ready', function(conne){</div><div> conne.execute("answer");</div><div> conne.getInfo();</div>
<div> console.log('Connection Ready');</div><div> });</div><div> conn.on('connection::close', function(){</div><div> conn.execute("answer");</div><div> conn.getInfo();</div>
<div> console.log('Connection Closed');</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>