]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-247 DTMF digit # is being interpreted as 1 when received in info DTMF
authorMichael Jerris <mike@jerris.com>
Tue, 9 Dec 2008 16:19:04 +0000 (16:19 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 9 Dec 2008 16:19:04 +0000 (16:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10679 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 5ae270c367f1aced2d9f646143d644d031b3435e..40753759ef302391fcce6a0a16e566f719475b8e 100644 (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);