Consider service unavailable as CONGESTION (bug #2391)
[asterisk/asterisk.git] / 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 503: /* Service Unavailable */
                                        if (owner)
                                                ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
                                        break;