[Freeswitch-svn] [commit] r10679 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
mikej at freeswitch.org
Tue Dec 9 08:19:05 PST 2008
Author: mikej
Date: Tue Dec 9 11:19:04 2008
New Revision: 10679
Log:
FSCORE-247 DTMF digit # is being interpreted as 1 when received in info DTMF
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Tue Dec 9 11:19:04 2008
@@ -3498,7 +3498,7 @@
int tmp;
/* move signal_ptr where we need it (right past Signal=) */
signal_ptr = signal_ptr + 7;
- if (is_dtmf(*signal_ptr)) {
+ if (*strlen && strlen(signal_ptr) == 1 && is_dtmf(*signal_ptr)) {
dtmf.digit = *signal_ptr;
} else {
tmp = atoi(signal_ptr);
More information about the Freeswitch-svn
mailing list