From a3d00acaeb204e1f54f9ce4e4742bd24d126a892 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 9 Apr 2013 14:40:02 +0200 Subject: [PATCH] $avp(s:callee_ringtimeout) --- proxy.cfg.customtt.tt2 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/proxy.cfg.customtt.tt2 b/proxy.cfg.customtt.tt2 index 78de1f7..d77d450 100644 --- a/proxy.cfg.customtt.tt2 +++ b/proxy.cfg.customtt.tt2 @@ -1008,7 +1008,6 @@ route[ROUTE_LOAD_CALLEE_PREF] avp_copy("$avp(s:cfna)", "$avp(s:callee_cfna)/gd"); avp_copy("$avp(s:cfb)", "$avp(s:callee_cfb)/gd"); avp_copy("$avp(s:cft)", "$avp(s:callee_cft)/gd"); - avp_copy("$avp(s:ringtimeout)", "$avp(s:callee_ringtimeout)/d"); avp_copy("$avp(s:lock)", "$avp(s:callee_lock)/d"); avp_copy("$avp(s:e164_to_ruri)", "$avp(s:callee_e164_to_ruri)/d"); avp_copy("$avp(s:force_inbound_calls_to_peer)", "$avp(s:callee_force_inbound_calls_to_peer)/d"); @@ -1276,16 +1275,16 @@ route[ROUTE_LOAD_CALLEE_PREF] if($avp(s:callee_cft) != $null) { - if($avp(s:callee_ringtimeout) != $null) + if($xavp(callee_real_prefs=>ringtimeout) != $null) { - xlog("L_INFO", "Setting ring timeout to $avp(s:callee_ringtimeout) secs - [% logreq -%]\n"); + xlog("L_INFO", "Setting ring timeout to $xavp(callee_real_prefs=>ringtimeout) secs - [% logreq -%]\n"); } else { - $(avp(s:callee_ringtimeout)[*]) = 180; - xlog("L_INFO", "Setting default ring timeout to $avp(s:callee_ringtimeout) secs - [% logreq -%]\n"); + $xavp(callee_real_prefs=>ringtimeout) = 180; + xlog("L_INFO", "Setting default ring timeout to $xavp(callee_real_prefs=>ringtimeout) secs - [% logreq -%]\n"); } - $(avp(s:callee_fr_inv_timer)[*]) = $avp(s:callee_ringtimeout) * 1000; + $(avp(s:callee_fr_inv_timer)[*]) = $xavp(callee_real_prefs=>ringtimeout) * 1000; t_set_fr("$avp(s:callee_fr_inv_timer)"); }