I am using task router to assign an incoming call task to a worker. When the worker gets the reservation I am starting a conference like this:
worker.on 'reservation.created', (reservation) =>
reservation.conference(null, idleSid, null, null, null, { "beep": "false", "EndConferenceOnExit": "true" })
There is not much documentation for how to handle a conference with taskrouter.js, but this seems to work to start the conference.
There are 2 problems I am having:
I can't stop the 'entering conference' beep to not play
When both the worker and participant exit the conference the conference is not actually ended and therefore not putting the worker into the after work activity state.
Any help would be appreciated.