Skip to content

Bugfix/1317 setting device sip dtmf is ignored - #197

Open
julien-celya wants to merge 2 commits into
FreePBX:release/17.0from
julien-celya:bugfix/1317-setting-DEVICE_SIP_DTMF-is-ignored
Open

Bugfix/1317 setting device sip dtmf is ignored#197
julien-celya wants to merge 2 commits into
FreePBX:release/17.0from
julien-celya:bugfix/1317-setting-DEVICE_SIP_DTMF-is-ignored

Conversation

@julien-celya

Copy link
Copy Markdown
Contributor

See existing issue here : FreePBX/issue-tracker#1317

$select[] = array('value' => 'inband', 'text' => _('In band audio (Not recommended)'));
$tt = _("The DTMF signaling mode used by this device, usually RFC for most phones.").' [dtmfmode]';
$tmparr['dtmfmode'] = array('prompttext' => _('DTMF Signaling'), 'value' => 'rfc2833', 'tt' => $tt, 'select' => $select, 'level' => 0);
$DEVICE_SIP_DTMF = $this->freepbx->Config->get_conf_setting('DEVICE_SIP_DTMF');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should check for a false return and use a default value if needed, e.g. get_conf_setting('DEVICE_SIP_DTMF') ?: 'rfc2833'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants