Consider service unavailable as CONGESTION (bug #2391)
authorMark Spencer <markster@digium.com>
Tue, 7 Sep 2004 01:25:18 +0000 (01:25 +0000)
committerMark Spencer <markster@digium.com>
Tue, 7 Sep 2004 01:25:18 +0000 (01:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3733 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index aa0ae60..ef26c29 100755 (executable)
@@ -6755,6 +6755,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                case 410: /* Gone */
                                case 400: /* Bad Request */
                                case 500: /* Server error */
                                case 410: /* Gone */
                                case 400: /* Bad Request */
                                case 500: /* Server error */
+                               case 503: /* Service Unavailable */
                                        if (owner)
                                                ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                                        break;
                                        if (owner)
                                                ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                                        break;