mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
make dtmf duration defaults tweakable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8126 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -2382,7 +2382,7 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
||||
const char *signal_ptr;
|
||||
const char *rec_header;
|
||||
const char *clientcode_header;
|
||||
switch_dtmf_t dtmf = { 0, SWITCH_DEFAULT_DTMF_DURATION };
|
||||
switch_dtmf_t dtmf = { 0, switch_core_default_dtmf_duration(0) };
|
||||
|
||||
if (session) {
|
||||
/* Get the channel */
|
||||
@@ -2408,7 +2408,7 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
|
||||
int tmp;
|
||||
signal_ptr += 9;
|
||||
if ((tmp = atoi(signal_ptr)) <= 0) {
|
||||
tmp = SWITCH_DEFAULT_DTMF_DURATION;
|
||||
tmp = switch_core_default_dtmf_duration(0);
|
||||
}
|
||||
dtmf.duration = tmp * 8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user