From d789548f26c1ebcc5bd453d568259671ce82b1b0 Mon Sep 17 00:00:00 2001 From: lazedo Date: Thu, 7 Jun 2018 19:42:07 +0100 Subject: [PATCH] freeswitch 1.6.20 has trouble finding params --- kamailio/fast-pickup-role.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kamailio/fast-pickup-role.cfg b/kamailio/fast-pickup-role.cfg index 705cf4c7..36c05e73 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 {