Display invalid extension when there is one, fix minor OSP typo, Don't send 200 OK...
[asterisk/asterisk.git] / channels / chan_sip.c
index d599a0d..28b0ad9 100755 (executable)
@@ -7079,7 +7079,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
 
                if (!ignore && p)
                        p->lastinvite = seqno;
-               if (p) {
+               if (p && !p->needdestroy) {
                    if (!(p->expiry = atoi(get_header(req, "Expires")))) {
                        transmit_response(p, "200 OK", req);
                        p->needdestroy = 1;