|
|
|
@ -530,13 +530,12 @@ route[EXTERNAL_TO_INTERNAL_RELAY] |
|
|
|
} |
|
|
|
#!endif |
|
|
|
|
|
|
|
#!ifdef CALL-PARK-REDIRECT-ROLE |
|
|
|
##### CALL-PARK #### |
|
|
|
if(is_method("REFER")) { |
|
|
|
$avp(refer_to) = $hdr(Refer-To); |
|
|
|
$avp(refer_to_uri) = $rt; |
|
|
|
$avp(referred_by) = $hdr(Referred-By); |
|
|
|
} |
|
|
|
#!endif |
|
|
|
|
|
|
|
remove_hf_re("^X-.*"); |
|
|
|
append_hf("X-AUTH-IP: $si\r\n"); |
|
|
|
@ -586,12 +585,11 @@ onreply_route[INTERNAL_REPLY] |
|
|
|
setflag(FLAG_SESSION_PROGRESS); |
|
|
|
} |
|
|
|
|
|
|
|
#!ifdef CALL-PARK-REDIRECT-ROLE |
|
|
|
##### CALL-PARK #### |
|
|
|
if (is_method("REFER") && $T_reply_code == "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", "PARK $(avp(refer_to_uri){uri.user})@$(avp(refer_to_uri){uri.domain}) = sip:$(ct{tobody.uri}{uri.host}):$(ct{tobody.uri}{uri.port})"); |
|
|
|
} |
|
|
|
#!endif |
|
|
|
|
|
|
|
if ($rs < 300) { |
|
|
|
xlog("L_INFO", "$ci|pass|$T_req($si):$T_req($sp)"); |
|
|
|
|