From 9fc8772aefdd8d8fcb55478fa8b18829ace93a2e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 14 May 2015 13:55:32 -0400 Subject: [PATCH] FS-7463: revert commits c2c04632f35c b33563138b09 and 6bf74877b5f0. Future pull requests should be verified that they compile before submitting. --- src/mod/endpoints/mod_sofia/sofia.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 7c8c31ff6e..78a0b58646 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -9885,16 +9885,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia "%sanswer,sofia_sla:%s", codec_str, b_private->uuid); } } else { - char *aleg = NULL; - - if (sip->sip_replaces && sip->sip_replaces->rp_params && sip->sip_replaces->rp_call_id) { - aleg = switch_find_parameter(sip->sip_replaces->rp_params, "a-leg", switch_core_session_get_pool(session)); - } - - if (aleg) { - switch_channel_mark_hold(b_channel, SWITCH_FALSE); - tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", sip->sip_replaces->rp_call_id); - } else if (!zstr(bridge_uuid)) { + if (!zstr(bridge_uuid)) { switch_channel_mark_hold(b_channel, SWITCH_FALSE); tech_pvt->caller_profile->destination_number = switch_core_sprintf(tech_pvt->caller_profile->pool, "answer,intercept:%s", bridge_uuid); } else {