mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-17 17:07:39 -07:00
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:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user