mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-27 16:07:15 -07:00
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: https://origsvn.digium.com/svn/asterisk/trunk@137532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+4
-1
@@ -15178,7 +15178,10 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
|
||||
/* Final response, not 200 ? */
|
||||
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
Block a user