Correctly end locally ended calls.
(closes issue #12170) Reported by: pj Patches: 20080702__issue12170_clear_pendinginvite.diff uploaded by bbryant (license 36) Tested by: bbryant, pabelanger git-svn-id: http://svn.digium.com/svn/asterisk/trunk@137532 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
3006400b15
commit
79b9b09365
|
@ -15179,6 +15179,9 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
|
|||
if (resp >= 300 && (p->invitestate == INV_CALLING || p->invitestate == INV_PROCEEDING || p->invitestate == INV_EARLY_MEDIA ))
|
||||
p->invitestate = INV_COMPLETED;
|
||||
|
||||
/* Final response, clear out pending invite */
|
||||
if ((resp == 200 || resp >= 300) && p->pendinginvite && seqno == p->pendinginvite)
|
||||
p->pendinginvite = 0;
|
||||
|
||||
switch (resp) {
|
||||
case 100: /* Trying */
|
||||
|
|
Reference in New Issue