diff --git a/kamailio/fast-pickup-role.cfg b/kamailio/fast-pickup-role.cfg index 705cf4c..36c05e7 100644 --- a/kamailio/fast-pickup-role.cfg +++ b/kamailio/fast-pickup-role.cfg @@ -81,14 +81,14 @@ route[FAST_PICKUP_ATTEMPT] if($du != $null) { if($(kzR{kz.json,Other-Leg-Call-ID}) == "") { ## not bridged - $var(rep) = $_s($hdr(Replaces);a-leg=true); + $var(rep) = $_s($var(replaced_call_id);a-leg=true); } else { ## ensure early-only=true - $var(rep) = $_s($(hdr(Replaces){re.subst,/;early-only//});early-only=true); + $var(rep) = $_s($var(replaced_call_id);early-only=true); } remove_hf_re("^Replaces"); append_hf("Replaces: $var(rep)\r\n"); - xlog("L_INFO", "$ci|log|call-id $var(replaced_call_id) found redirecting call ($(ru{uri.user})) to $du\n"); + xlog("L_INFO", "$ci|log|call-id $var(replaced_call_id) found, redirecting call ($(ru{uri.user})) to $du => $var(rep)\n"); route(EXTERNAL_TO_INTERNAL_RELAY); exit(); } else {