mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 17:51:03 +00:00
fix messup in dtmf change
This commit is contained in:
parent
995d7dcb02
commit
f7b40140bb
@ -3963,9 +3963,9 @@ FT_DECLARE(ftdm_status_t) ftdm_channel_process_media(ftdm_channel_t *ftdmchan, v
|
|||||||
char digit_char;
|
char digit_char;
|
||||||
uint32_t dur;
|
uint32_t dur;
|
||||||
|
|
||||||
teletone_dtmf_detect(&ftdmchan->dtmf_detect, sln, (int)slen);
|
if ((hit = teletone_dtmf_detect(&ftdmchan->dtmf_detect, sln, (int)slen)) == TT_HIT_BEGIN) {
|
||||||
|
teletone_dtmf_get(&ftdmchan->dtmf_detect, &digit_char, &dur);
|
||||||
if ((hit = teletone_dtmf_get(&ftdmchan->dtmf_detect, &digit_char, &dur)) == TT_HIT_BEGIN) {
|
|
||||||
if (ftdmchan->state == FTDM_CHANNEL_STATE_CALLWAITING && (digit_char == 'D' || digit_char == 'A')) {
|
if (ftdmchan->state == FTDM_CHANNEL_STATE_CALLWAITING && (digit_char == 'D' || digit_char == 'A')) {
|
||||||
ftdmchan->detected_tones[FTDM_TONEMAP_CALLWAITING_ACK]++;
|
ftdmchan->detected_tones[FTDM_TONEMAP_CALLWAITING_ACK]++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user