[Freeswitch-users] outbound connection using node-esl socket error telnet output added
Mumuney Abdlquadri
abdlquadri at googlemail.com
Thu Nov 8 17:54:31 MSK 2012
Hi chad,
Output of telnet localhost 8022
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
connect
Connection closed by foreign host.
On my application side I got this error:
/home/abdlquadri/node_modules/modesl/lib/esl/connection.js:386
uuid = self.getInfo().getHeader('unique-id');
^
TypeError: Cannot call method 'getHeader' of null
at Connection.execute
(/home/abdlquadri/node_modules/modesl/lib/esl/connection.js:386:24)
at null.<anonymous>
(/home/abdlquadri/public_html/coWork_nodeServer/server.js:9:15)
at EventEmitter.emit
(/home/abdlquadri/node_modules/modesl/node_modules/eventemitter2/lib/eventemitter2.js:313:21)
at Server._onConnection
(/home/abdlquadri/node_modules/modesl/lib/esl/server.js:46:10)
at Server.EventEmitter.emit (events.js:96:17)
at TCP.onconnection (net.js:1038:8)
I guess it connected that is why the application can crash. Probably
becuase telnet did not send an esl connection object.
Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121108/e7679b06/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list