]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9277: sip info with record: on and off doesn't start and stop call recording sessions
authorMuhammad Zaka <muhammad.zaka@synety.com>
Fri, 17 Jun 2016 13:38:35 +0000 (14:38 +0100)
committerMuhammad Zaka <muhammad.zaka@synety.com>
Mon, 11 Jul 2016 13:27:49 +0000 (14:27 +0100)
src/mod/endpoints/mod_sofia/sofia.c

index 303330c0e0ed4a5b835b43383d287d5a8eb21e90..7307bde4374c79d78d2683e37cda48ddd1674d5c 100644 (file)
@@ -9233,8 +9233,6 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
                        } else if (!strncasecmp(sip->sip_content_type->c_type, "application", 11) && !strcasecmp(sip->sip_content_type->c_subtype, "dtmf")) {
                                int tmp = atoi(sip->sip_payload->pl_data);
                                dtmf.digit = switch_rfc2833_to_char(tmp);
-                       } else {
-                               goto end;
                        }
 
                        if (dtmf.digit) {
@@ -9268,8 +9266,8 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING,
                                                                          "IGNORE INFO DTMF(%c) (This channel was not configured to use INFO DTMF!)\n", dtmf.digit);
                                }
+                               goto end;
                        }
-                       goto end;
                }
 
                if ((clientcode_header = sofia_glue_get_unknown_header(sip, "x-clientcode"))) {