"%sanswer,sofia_sla:%s", codec_str, b_private->uuid);
}
} else {
- char* pickup = NULL;
- if(sip->sip_replaces->rq_url->url_params && sip->sip_replaces->rp_call_id) {
- pickup = switch_find_parameter(sip->sip_replaces->rq_url->url_params,"pickup", switch_core_session_get_pool(session));
+ 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(pickup) {
+
+ 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)) {