Don't send 487 if we've already sent 200 OK on invite at time of receiving a BYE in the same transaction.

(SIPP testing)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47571 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2006-11-13 19:04:39 +00:00
parent 0d9602565f
commit ff0ce011a0
+2 -1
View File
@@ -10835,7 +10835,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req, int de
struct ast_channel *bridged_to;
char iabuf[INET_ADDRSTRLEN];
if (p->pendinginvite && !ast_test_flag(p, SIP_OUTGOING) && !ignore)
/* If we have an INCOMING invite that we haven't answered, terminate that transaction */
if (p->pendinginvite && !ast_test_flag(p, SIP_OUTGOING) && !ignore && !p->owner)
transmit_response_reliable(p, "487 Request Terminated", &p->initreq, 1);
copy_request(&p->initreq, req);