FSCORE-247 DTMF digit # is being interpreted as 1 when received in info DTMF

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10679 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-12-09 16:19:04 +00:00
parent 85dcc6d8d1
commit 18a90c87e3

View File

@ -3498,7 +3498,7 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
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);