diff --git a/lib/tasks/conference.js b/lib/tasks/conference.js index 7fe451fb..d98551c4 100644 --- a/lib/tasks/conference.js +++ b/lib/tasks/conference.js @@ -493,7 +493,7 @@ class Conference extends Task { } async doConferenceParticipantAction(cs, opts) { - const {action, tag} = opts; + const {action, tag, wait_hook } = opts; switch (action) { case 'tag': @@ -509,7 +509,10 @@ class Conference extends Task { await this.clearCoachMode(); break; case 'hold': - this.doConferenceHold(cs, {conf_hold_status: 'hold'}); + this.doConferenceHold(cs, { + conf_hold_status: 'hold', + ...(wait_hook && {wait_hook}) + }); break; case 'unhold': this.doConferenceHold(cs, {conf_hold_status: 'unhold'});