From 0869a730528a14c59bb2babb4823b94942ed4517 Mon Sep 17 00:00:00 2001 From: Sam Machin Date: Tue, 21 Oct 2025 16:20:12 +0100 Subject: [PATCH] add distributeDtmf to conference (#1401) * add distributeDtmf to conference * lint * bump verb specs --- lib/tasks/conference.js | 4 +++- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/tasks/conference.js b/lib/tasks/conference.js index 93e6fd10..6c16b884 100644 --- a/lib/tasks/conference.js +++ b/lib/tasks/conference.js @@ -49,7 +49,8 @@ class Conference extends Task { this.confName = this.data.name; [ 'beep', 'startConferenceOnEnter', 'endConferenceOnExit', 'joinMuted', - 'maxParticipants', 'waitHook', 'statusHook', 'endHook', 'enterHook', 'endConferenceDuration' + 'maxParticipants', 'waitHook', 'statusHook', 'endHook', 'enterHook', + 'endConferenceDuration', 'distributeDtmf' ].forEach((attr) => this[attr] = this.data[attr]); this.record = this.data.record || {}; this.statusEvents = []; @@ -356,6 +357,7 @@ class Conference extends Task { //https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod_conference_3965534/ // mute | Enter conference muted ...((this.joinMuted || this.speakOnlyTo) && {mute: true}), + ...(this.distributeDtmf && {'dist-dtmf': true}) }}); /** diff --git a/package-lock.json b/package-lock.json index 514d0c2e..5adcd8e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "@jambonz/speech-utils": "^0.2.25", "@jambonz/stats-collector": "^0.1.10", "@jambonz/time-series": "^0.2.14", - "@jambonz/verb-specifications": "^0.0.118", + "@jambonz/verb-specifications": "^0.0.119", "@modelcontextprotocol/sdk": "^1.9.0", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-jaeger": "^1.23.0", @@ -1517,9 +1517,9 @@ } }, "node_modules/@jambonz/verb-specifications": { - "version": "0.0.118", - "resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.118.tgz", - "integrity": "sha512-1dGnc6TUCehjt1yGNuqh1uzk1xw9HhUm39aVUosQMHlnT0fK0ItikeJ0uttTjFastHNmPPxqJwb20wOvVGTCFg==", + "version": "0.0.119", + "resolved": "https://registry.npmjs.org/@jambonz/verb-specifications/-/verb-specifications-0.0.119.tgz", + "integrity": "sha512-AQsZ7EY2bBOjdhufKtZpdrhFobo6LBMLkuDJY058Q3qxGBtlZr3Wx9zrlVjJuNOGCEJSmMP7Gr/EtjtFFX2iTw==", "license": "MIT", "dependencies": { "debug": "^4.3.4", diff --git a/package.json b/package.json index 9568d5b8..d90bf9dc 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "@jambonz/speech-utils": "^0.2.25", "@jambonz/stats-collector": "^0.1.10", "@jambonz/time-series": "^0.2.14", - "@jambonz/verb-specifications": "^0.0.118", + "@jambonz/verb-specifications": "^0.0.119", "@modelcontextprotocol/sdk": "^1.9.0", "@opentelemetry/api": "^1.8.0", "@opentelemetry/exporter-jaeger": "^1.23.0",