]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6833
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 4 Feb 2016 23:37:42 +0000 (17:37 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 4 Feb 2016 23:37:42 +0000 (17:37 -0600)
src/switch_ivr.c

index 649debd65a4a1069f63a691546498c8849c0a7eb..0bdd50e71a2a9655c72da3ff14a8dd36c4767842 100644 (file)
@@ -1819,7 +1819,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_3p_nomedia(const char *uuid, switch_m
                                        switch_channel_wait_for_state(other_channel, channel, CS_PARK);
                                }
                                
-                               msg.string_arg = switch_channel_get_variable(channel, SWITCH_R_SDP_VARIABLE);
+                               
                                switch_channel_set_flag(other_channel, CF_3P_NOMEDIA_REQUESTED);
                                switch_channel_set_flag(other_channel, CF_3P_NOMEDIA_REQUESTED_BLEG);
                                
@@ -1832,7 +1832,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_3p_nomedia(const char *uuid, switch_m
                                //switch_channel_wait_for_flag(channel, CF_MEDIA_SET, SWITCH_TRUE, 10000, NULL);
 
 
-
+                               msg.string_arg = switch_channel_get_variable(channel, SWITCH_R_SDP_VARIABLE);
                                switch_core_session_receive_message(other_session, &msg);
                                switch_channel_wait_for_flag(other_channel, CF_REQ_MEDIA, SWITCH_FALSE, 10000, NULL);
                                //switch_channel_wait_for_flag(other_channel, CF_MEDIA_SET, SWITCH_TRUE, 10000, NULL);