drachtio / drachtio-fsmrf

Drachtio freeswitch-based media resource function -- http://davehorton.github.io/drachtio-fsmrf
MIT License
48 stars 26 forks source link

Feature request: throw error when attempting to send a command to a non active endpoint #22

Open WhiteyDude opened 5 years ago

WhiteyDude commented 5 years ago

As per discussion in #21 .

Currently when an endpoint is dead and a command is sent to it, a console error is thrown and no further action is taken (http://davehorton.github.io/drachtio-fsmrf/api/endpoint.js.html#line840). It would be handy to have an error thrown that can be caught or for this to be handled in a way that can be parsed more cleanly by the end application.