Re: [Freeswitch-users] outbound connection using node-esl socket error telnet output added
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.
Right, it looks like you did connect to the node application, but I think Adam brought up a good point. 8022 is freeswitch's inbound port. Try changing that port in your application and restarting both freeswitch and your app to see if that helps. -Chad From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Mumuney Abdlquadri Sent: Thursday, November 08, 2012 9:55 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] outbound connection using node-esl socket error telnet output added 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/eve ntemitter2.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.
participants (2)
-
Chad Engler
-
Mumuney Abdlquadri