mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-01-25 02:07:59 +00:00
increase dtmf volume (#184)
https://github.com/jambonz/jambonz-feature-server/issues/1272
This commit is contained in:
@@ -1106,11 +1106,13 @@ Duration=${payload.duration} `
|
|||||||
const code = arr[1];
|
const code = arr[1];
|
||||||
const arr2 = /Duration=\s*(\d+)/.exec(req.body);
|
const arr2 = /Duration=\s*(\d+)/.exec(req.body);
|
||||||
const duration = arr2 ? arr2[1] : 250;
|
const duration = arr2 ? arr2[1] : 250;
|
||||||
|
const volume = 13;
|
||||||
const dtmfOpts = {
|
const dtmfOpts = {
|
||||||
...this.rtpEngineOpts.common,
|
...this.rtpEngineOpts.common,
|
||||||
'from-tag': this.rtpEngineOpts.uas.tag,
|
'from-tag': this.rtpEngineOpts.uas.tag,
|
||||||
code,
|
code,
|
||||||
duration
|
duration,
|
||||||
|
volume
|
||||||
};
|
};
|
||||||
const response = await this.playDTMF(dtmfOpts);
|
const response = await this.playDTMF(dtmfOpts);
|
||||||
if ('ok' !== response.result) {
|
if ('ok' !== response.result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user