mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
support wait hook for conf:participant-action hold (#851)
This commit is contained in:
@@ -493,7 +493,7 @@ class Conference extends Task {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async doConferenceParticipantAction(cs, opts) {
|
async doConferenceParticipantAction(cs, opts) {
|
||||||
const {action, tag} = opts;
|
const {action, tag, wait_hook } = opts;
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'tag':
|
case 'tag':
|
||||||
@@ -509,7 +509,10 @@ class Conference extends Task {
|
|||||||
await this.clearCoachMode();
|
await this.clearCoachMode();
|
||||||
break;
|
break;
|
||||||
case 'hold':
|
case 'hold':
|
||||||
this.doConferenceHold(cs, {conf_hold_status: 'hold'});
|
this.doConferenceHold(cs, {
|
||||||
|
conf_hold_status: 'hold',
|
||||||
|
...(wait_hook && {wait_hook})
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case 'unhold':
|
case 'unhold':
|
||||||
this.doConferenceHold(cs, {conf_hold_status: 'unhold'});
|
this.doConferenceHold(cs, {conf_hold_status: 'unhold'});
|
||||||
|
|||||||
Reference in New Issue
Block a user