From: Olle Johansson Date: Fri, 15 Dec 2006 10:58:36 +0000 (+0000) Subject: Issue #8592 - treat 504 as congestion (imported from 1.2/1.4) X-Git-Tag: 1.6.0-beta1~3^2~3730 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168deb2366b4d58d8eeb3a7f93c12ce77007c919;p=thirdparty%2Fasterisk.git 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e8890ebbe8..f972a5c517 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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);