|
|
@ -706,7 +706,7 @@ route[INTERNAL_TO_EXTERNAL_RELAY] |
|
|
|
|
|
|
|
|
t_on_reply("EXTERNAL_REPLY"); |
|
|
t_on_reply("EXTERNAL_REPLY"); |
|
|
|
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_external_no_response_timer)); |
|
|
|
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_external_no_response_initial_timer)); |
|
|
|
|
|
|
|
|
t_relay(); |
|
|
t_relay(); |
|
|
} |
|
|
} |
|
|
@ -723,7 +723,7 @@ route[EXTERNAL_TO_INTERNAL_RELAY] |
|
|
t_on_reply("INTERNAL_REPLY"); |
|
|
t_on_reply("INTERNAL_REPLY"); |
|
|
t_on_failure("INTERNAL_FAULT"); |
|
|
t_on_failure("INTERNAL_FAULT"); |
|
|
|
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_internal_no_response_timer)); |
|
|
|
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_internal_no_response_initial_timer)); |
|
|
|
|
|
|
|
|
#!ifdef WITH_INTERNAL_LISTENER |
|
|
#!ifdef WITH_INTERNAL_LISTENER |
|
|
xlog("L_DEBUG", "$ci|route|routing to internal thru PORT_PROTO_INTERNAL_LISTENER\n"); |
|
|
xlog("L_DEBUG", "$ci|route|routing to internal thru PORT_PROTO_INTERNAL_LISTENER\n"); |
|
|
@ -737,6 +737,12 @@ onreply_route[EXTERNAL_REPLY] |
|
|
{ |
|
|
{ |
|
|
xlog("L_INFO", "$ci|log|external reply $T_reply_code $T_reply_reason\n"); |
|
|
xlog("L_INFO", "$ci|log|external reply $T_reply_code $T_reply_reason\n"); |
|
|
|
|
|
|
|
|
|
|
|
if($rs == 100) { |
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_external_no_response_100_timer)); |
|
|
|
|
|
} else if(status=~"[1][8][0-9]") { |
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_external_no_response_18X_timer)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#!ifdef NAT_TRAVERSAL_ROLE |
|
|
#!ifdef NAT_TRAVERSAL_ROLE |
|
|
if(status=~"[12][0-9][0-9]") { |
|
|
if(status=~"[12][0-9][0-9]") { |
|
|
route(NAT_MANAGE); |
|
|
route(NAT_MANAGE); |
|
|
@ -763,6 +769,16 @@ onreply_route[INTERNAL_REPLY] |
|
|
xlog("L_DEBUG", "$ci|log|source $si:$sp\n"); |
|
|
xlog("L_DEBUG", "$ci|log|source $si:$sp\n"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if($rs == 100) { |
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_internal_no_response_100_timer)); |
|
|
|
|
|
} else if(status=~"[1][8][0-9]") { |
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_internal_no_response_18X_timer)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if($rs == 100) { |
|
|
|
|
|
t_set_fr(0, $sel(cfg_get.kazoo.to_internal_no_response_100_timer)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#!ifdef NAT_TRAVERSAL_ROLE |
|
|
#!ifdef NAT_TRAVERSAL_ROLE |
|
|
if(status=~"[12][0-9][0-9]") { |
|
|
if(status=~"[12][0-9][0-9]") { |
|
|
route(NAT_MANAGE); |
|
|
route(NAT_MANAGE); |
|
|
|