]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6888 #resolve #comment fix regression from refactoring new feature
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 3 Oct 2014 15:17:41 +0000 (10:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 3 Oct 2014 15:17:41 +0000 (10:17 -0500)
src/switch_channel.c

index eb38298e37e40efee191247c201d74a0e374a9c9..49aa4e1923a683111db4816c6bb4173581e4f1cf 100644 (file)
@@ -5230,13 +5230,12 @@ SWITCH_DECLARE(switch_status_t) switch_channel_pass_sdp(switch_channel_t *from_c
                const char *var;
 
                if ((var = switch_channel_get_variable(from_channel, "bypass_media_sdp_filter"))) {
-
                        if ((patched_sdp = switch_core_media_process_sdp_filter(use_sdp, var, from_channel->session))) {
                                use_sdp = patched_sdp;
                        }
-
-                       switch_channel_set_variable(to_channel, SWITCH_B_SDP_VARIABLE, use_sdp);
                }
+
+               switch_channel_set_variable(to_channel, SWITCH_B_SDP_VARIABLE, use_sdp);
        }
 
        switch_safe_free(patched_sdp);