]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-526
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Jan 2010 17:20:13 +0000 (17:20 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Jan 2010 17:20:13 +0000 (17:20 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16311 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index eaf751f14511dc435edfd22f8da5eaf22e9772d7..6c2a9ef5e4d776acf967e56af0e5784a7ab3a970 100644 (file)
@@ -1602,8 +1602,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                switch_channel_set_flag(caller_channel, CF_PROXY_MODE);
                        } else {
                                if (switch_channel_test_flag(caller_channel, CF_PROXY_MODE)) {
-                                       switch_ivr_media(switch_core_session_get_uuid(session), SMF_REBRIDGE);
-                                       switch_channel_set_flag(caller_channel, CF_PROXY_MODE);
+                                       switch_channel_set_variable(caller_channel, SWITCH_B_SDP_VARIABLE, NULL);
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, 
                                                                          "Channel is already up, delaying proxy mode 'till both legs are answered.\n");