Skip to content

Commit

Permalink
freeswitch 1.6.20 has trouble finding params
Browse files Browse the repository at this point in the history
  • Loading branch information
lazedo authored Jun 7, 2018
1 parent 80013a9 commit d789548
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kamailio/fast-pickup-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d789548

Please sign in to comment.