From a08965601c2a1d734f3d41d1aade4521fcc0b50c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 9 May 2013 10:29:45 -0500 Subject: [PATCH] FS-5390 --resolve --- src/switch_ivr_originate.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index acf2a644fe..a43020f5b9 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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) {