eslResponse.linger() causes javascript-error on disconnect
Closed this issue · 2 comments
grEvenX commented
I'm getting the following error when trying to use the linger() method in order to be able to properly retrieve CHANNEL_HANGUP_COMPLETE events:
applications/conference/node_modules/esl/lib/response.js:245
return _this.exit();
^
TypeError: Object #<eslResponse> has no method 'exit'
I'm not sure what's the desired effect here should be, the method "exit" does not as the error shows exist for the response object.
shimaore commented
This should be addressed in v0.3.2 (now on npm). Sorry about that.
FWIW I'm working on a new (promise-based) API for this module, make sure to use
"esl": "~0.3.2"
as your dependency to keep tracking the proper version.
grEvenX commented
Sounds very promising, and thanks for the incredible fast fix :)
This release fixed the issues I were experiencing related to the lingering command, and it seems to work as expected now.
🍰