Skip to content

Commit

Permalink
support inband dtmf
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Nov 15, 2023
1 parent e5f7c6d commit 3ec37e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/api/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function validateUpdateCall(opts) {
if (opts.record && !opts.record.action) {
throw new DbErrorBadRequest('record requires action property');
}
if (opts.inband_dtmf && !['digit'].includes(opts.inband_dtmf)) {
if (opts.inband_dtmf && !opts.inband_dtmf.digit) {
throw new DbErrorBadRequest('invalid inband_dtmf');
}
if ('startCallRecording' === opts.record?.action && !opts.record.siprecServerURL) {
Expand Down

0 comments on commit 3ec37e0

Please sign in to comment.