aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-15 10:55:41 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-15 10:55:41 +0000
commit12fe3750d5391b928751fcb8dba7b32504125f4b (patch)
tree1b2200a675ee3a61ddb20564b09f380fde8dc44d /channels/chan_sip.c
parent17abb61501baa371f85e716c7b29f697e7c580ed (diff)
Issue #8592 - treat 504 as 503 (imported from 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48487 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 9f339d05a..5e986be3b 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12250,6 +12250,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;
@@ -12380,6 +12381,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);