fix inband dtmf does not work in dial verb (#1018)

This commit is contained in:
Hoan Luu Huu
2025-01-09 06:29:43 +07:00
committed by GitHub
parent 67cd53c930
commit fcefa1ff31
2 changed files with 19 additions and 1 deletions

View File

@@ -349,6 +349,15 @@ class SingleDialer extends Emitter {
if (Object.keys(opts).length > 0) {
this.ep.set(opts);
}
if (this.dialTask?.inbandDtmfEnabled && !this.ep.inbandDtmfEnabled) {
// https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod-dptools/6587132/#0-about
try {
this.ep.execute('start_dtmf');
this.ep.inbandDtmfEnabled = true;
} catch (err) {
this.logger.info(err, 'place-outdial:_configMsEndpoint - error enable inband DTMF');
}
}
}
/**