Merged revisions 181768 via svnmerge from
[asterisk/asterisk.git] / channels / chan_sip.c
index b8f2fe6..a2bb9fc 100644 (file)
@@ -19947,7 +19947,7 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
        struct ast_channel *bridged_to;
        
        /* If we have an INCOMING invite that we haven't answered, terminate that transaction */
-       if (p->pendinginvite && !ast_test_flag(&p->flags[0], SIP_OUTGOING) && !req->ignore && !p->owner) {
+       if (p->pendinginvite && !ast_test_flag(&p->flags[0], SIP_OUTGOING) && !req->ignore) {
                transmit_response_reliable(p, "487 Request Terminated", &p->initreq);
        }