@ -571,12 +571,9 @@ route[EXTERNAL_TO_INTERNAL_RELAY]
}
#!endif
##### CALL-PARK ####
if(is_method("REFER")) {
$avp(refer_to) = $hdr(Refer-To);
$avp(refer_to_uri) = $rt;
$avp(referred_by) = $hdr(Referred-By);
}
#!ifdef FAST_PICKUP-ROLE
route(FAST_PICKUP_REFER);
#!endif
remove_hf_re("^X-.*");
append_hf("X-AUTH-IP: $si\r\n");
@ -633,6 +630,10 @@ onreply_route[INTERNAL_REPLY]
route(DOS_PREVENTION);
#!endif
#!ifdef FAST_PICKUP-ROLE
route(FAST_PICKUP_REPLY);
#!endif
if (is_method("INVITE") &&
!isflagset(FLAG_SESSION_PROGRESS) &&
t_check_status("(180)|(183)|(200)")
@ -647,12 +648,6 @@ onreply_route[INTERNAL_REPLY]
setflag(FLAG_SESSION_PROGRESS);
}
##### CALL-PARK ####
if (is_method("REFER") && t_check_status("(200)|(202)") ) {
$sht(park = >$(avp(refer_to_uri){uri.user})@$(avp(refer_to_uri){uri.domain})) = "sip:" + $(ct{tobody.uri}{uri.host}) + ":" + $(ct{tobody.uri}{uri.port});
xlog("L_INFO", "caching park info $(avp(refer_to_uri){uri.user})@$(avp(refer_to_uri){uri.domain}) = sip:$(ct{tobody.uri}{uri.host}):$(ct{tobody.uri}{uri.port})");
}
if ($rs < 300) {
xlog("L_INFO", "$ci|pass|$T_req($si):$T_req($sp)");
}