]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5390 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 9 May 2013 15:29:45 +0000 (10:29 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 9 May 2013 15:30:00 +0000 (10:30 -0500)
src/switch_ivr_originate.c

index acf2a644fe4a1768a38c3410c4f3935d873e6053..a43020f5b95c64618e7b95c64282e1be412e432e 100644 (file)
@@ -2181,17 +2181,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
 
                if (switch_channel_test_flag(caller_channel, CF_PROXY_MODE) || switch_channel_test_flag(caller_channel, CF_PROXY_MEDIA)) {
                        ringback_data = NULL;
-               } else if (zstr(ringback_data)) {
-                       const char *vvar;
-
-                       if ((vvar = switch_channel_get_variable(caller_channel, SWITCH_SEND_SILENCE_WHEN_IDLE_VARIABLE))) {
-                               int sval = atoi(vvar);
-
-                               if (sval) {
-                                       ringback_data = switch_core_session_sprintf(oglobals.session, "silence:%d", sval);
-                               }
-
-                       }
                }
        }
 #if 0
@@ -3030,7 +3019,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                                                                 oglobals.sending_ringback > 1 || oglobals.bridge_early_media > -1)) {
                                                if (oglobals.ringback_ok == 1) {
                                                        switch_status_t rst;
-                                                       
+
                                                        rst = setup_ringback(&oglobals, originate_status, and_argc, ringback_data, &ringback, &write_frame, &write_codec);
                                                        
                                                        if (oglobals.bridge_early_media > -1) {