MODENDP-163 fix info dtmf support on some devices that do not send it properly

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10852 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-12-17 17:02:46 +00:00
parent dbf10cab75
commit ee5adf3729
1 changed files with 1 additions and 1 deletions

View File

@ -3516,7 +3516,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 (*signal_ptr && strlen(signal_ptr) == 1 && is_dtmf(*signal_ptr)) {
if (*signal_ptr && (*signal_ptr == '*' || *signal_ptr == '#' || *signal_ptr == 'A' || *signal_ptr == 'B' || *signal_ptr == 'C' || *signal_ptr == 'D')) {
dtmf.digit = *signal_ptr;
} else {
tmp = atoi(signal_ptr);