After 404 or 484, don't send 503
authorMark Spencer <markster@digium.com>
Tue, 8 Apr 2003 04:26:24 +0000 (04:26 +0000)
committerMark Spencer <markster@digium.com>
Tue, 8 Apr 2003 04:26:24 +0000 (04:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@775 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 73cb433..6512582 100755 (executable)
@@ -4142,7 +4142,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                                transmit_response(p, "100 Trying", req);
                        }
                } else {
-                       if (p) {
+                       if (p && !p->needdestroy) {
                                ast_log(LOG_NOTICE, "Unable to create/find channel\n");
                                transmit_response_reliable(p, "503 Unavailable", req);
                                p->needdestroy = 1;