Browse Source

update the failure cases to respond to, and some additional logging info

3.12
K Anderson 14 years ago
parent
commit
7069f92b9e
1 changed files with 11 additions and 5 deletions
  1. +11
    -5
      opensips/opensips.tmp

+ 11
- 5
opensips/opensips.tmp View File

@ -734,7 +734,7 @@ onreply_route[external_reply]
# this branch handles replies that are comming from equipment # this branch handles replies that are comming from equipment
# outside our control # outside our control
xlog("L_INFO", "$ci|start|recieved external reply $rs $rr");
xlog("L_INFO", "$ci|start|recieved external reply $T_reply_code $rr");
xlog("L_INFO", "$ci|log|source $si:$sp"); xlog("L_INFO", "$ci|log|source $si:$sp");
# This ensures that if a endpoint recieves a call they can properly # This ensures that if a endpoint recieves a call they can properly
@ -788,9 +788,15 @@ onreply_route[external_reply]
onreply_route[internal_reply] onreply_route[internal_reply]
{ {
# this branch handles replies that are comming from our media server # this branch handles replies that are comming from our media server
xlog("L_INFO", "$ci|start|recieved internal reply $rs $rr");
xlog("L_INFO", "$ci|log|source $si:$sp");
if(t_local_replied("last"))
{
xlog("L_INFO", "$ci|start|recieved local internal reply $T_reply_code $rr");
}
else
{
xlog("L_INFO", "$ci|start|recieved internal reply $T_reply_code $rr");
xlog("L_INFO", "$ci|log|source $si:$sp");
}
# Ensure that if we challenge an endpoint its response is not round-robin'd # Ensure that if we challenge an endpoint its response is not round-robin'd
# We have to do it in the reply so we have the correct call id # We have to do it in the reply so we have the correct call id
@ -843,7 +849,7 @@ failure_route[internal_fault]
# if the failure case was soemthing that we should recover # if the failure case was soemthing that we should recover
# from then try to find a new media server # from then try to find a new media server
if (t_check_status("(408)|(5[0-9][0-9])"))
if (t_check_status("(404)|(486)|(5[0-9][0-9])"))
{ {
xlog("L_ERR", "$ci|log|moving media server $rd:$rp to probing mode"); xlog("L_ERR", "$ci|log|moving media server $rd:$rp to probing mode");


Loading…
Cancel
Save