Issue #8592 - treat 504 as congestion (imported from 1.2/1.4)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48488 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Olle Johansson 20 years ago
parent bf2172faac
commit 168deb2366

@ -12461,6 +12461,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
}
/* Fall through */
case 503: /* Service Unavailable */
case 504: /* Server Timeout */
if (owner)
ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
break;
@ -12587,6 +12588,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
case 603: /* Decline */
case 500: /* Server error */
case 503: /* Service Unavailable */
case 504: /* Server timeout */
if (sipmethod == SIP_INVITE) { /* re-invite failed */
sip_cancel_destroy(p);

Loading…
Cancel
Save