Treat 400 response as "CONGESTION" (bug #2369)
authorMark Spencer <markster@digium.com>
Sat, 4 Sep 2004 00:29:00 +0000 (00:29 +0000)
committerMark Spencer <markster@digium.com>
Sat, 4 Sep 2004 00:29:00 +0000 (00:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3721 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index cd0fb4c..aa0ae60 100755 (executable)
@@ -6753,6 +6753,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
                                case 480: /* Temporarily Unavailable */
                                case 404: /* Not Found */
                                case 410: /* Gone */
                                case 480: /* Temporarily Unavailable */
                                case 404: /* Not Found */
                                case 410: /* Gone */
+                               case 400: /* Bad Request */
                                case 500: /* Server error */
                                        if (owner)
                                                ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                                case 500: /* Server error */
                                        if (owner)
                                                ast_queue_control(p->owner, AST_CONTROL_CONGESTION);