Issue #8592 - treat 504 as congestion (imported from 1.2/1.4)
authorOlle Johansson <oej@edvina.net>
Fri, 15 Dec 2006 10:58:36 +0000 (10:58 +0000)
committerOlle Johansson <oej@edvina.net>
Fri, 15 Dec 2006 10:58:36 +0000 (10:58 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48488 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e8890eb..f972a5c 100644 (file)
@@ -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);