Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.0.7
-
Fix Version/s: 1.0.7
-
Component/s: mod_spandsp
-
Labels:None
-
Platform:Linux x86/gcc
-
FreeSWITCH GIT Revision:head
-
Reproduced with GIT HEAD?:yes
Description
Updated mod_spandsp_dsp to feed frames to dtmf_rx in 10 ms chunks, to get more accurate and consistent DTMF duration measurement.
Added optional min_dup_digit_duration_ms channel variable to mod_spandsp_dsp.
This variable will detect a duplicate digit if the current digit is the same as the previous digit and the previous digit does not exceed the threshold defined by the variable.
For example:
min_dup_digit_duration_ms=30, DTMF 3 pressed twice
2011-08-16 14:41:54.938739 [DEBUG] mod_spandsp_dsp.c:58 DTMF BEGIN DETECTED: [3]
2011-08-16 14:41:54.958744 [DEBUG] mod_spandsp_dsp.c:70 DTMF END DETECTED: [3], duration = 20 ms
2011-08-16 14:41:54.998738 [DEBUG] mod_spandsp_dsp.c:66 DUP DTMF DETECTED: [3]
2011-08-16 14:41:55.118739 [DEBUG] mod_spandsp_dsp.c:70 DTMF END DETECTED: [3], duration = 180 ms
2011-08-16 14:41:55.258740 [DEBUG] mod_spandsp_dsp.c:58 DTMF BEGIN DETECTED: [3]
2011-08-16 14:41:55.358741 [DEBUG] mod_spandsp_dsp.c:70 DTMF END DETECTED: [3], duration = 110 ms
Added optional min_dup_digit_duration_ms channel variable to mod_spandsp_dsp.
This variable will detect a duplicate digit if the current digit is the same as the previous digit and the previous digit does not exceed the threshold defined by the variable.
For example:
min_dup_digit_duration_ms=30, DTMF 3 pressed twice
2011-08-16 14:41:54.938739 [DEBUG] mod_spandsp_dsp.c:58 DTMF BEGIN DETECTED: [3]
2011-08-16 14:41:54.958744 [DEBUG] mod_spandsp_dsp.c:70 DTMF END DETECTED: [3], duration = 20 ms
2011-08-16 14:41:54.998738 [DEBUG] mod_spandsp_dsp.c:66 DUP DTMF DETECTED: [3]
2011-08-16 14:41:55.118739 [DEBUG] mod_spandsp_dsp.c:70 DTMF END DETECTED: [3], duration = 180 ms
2011-08-16 14:41:55.258740 [DEBUG] mod_spandsp_dsp.c:58 DTMF BEGIN DETECTED: [3]
2011-08-16 14:41:55.358741 [DEBUG] mod_spandsp_dsp.c:70 DTMF END DETECTED: [3], duration = 110 ms
Issue Links
- is related to
-
FS-4109
Use dtmf duration reported from spandsp
-
Activity
Christopher Rienzo
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | mod_spandsp_dsp.txt [ 14401 ] |
Christopher Rienzo
made changes -
| Attachment | mod_spandsp_dsp.txt [ 14392 ] |
Christopher Rienzo
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Christopher Rienzo
made changes -