mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
More improvements to re-INVITEs timing out after a provisional response
There is no need to call check_pendings() on a final response to an INVITE when destroying the scheduler entry as it will be done later during normal processing. (issue ASTERISK-19992) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@369579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -20122,9 +20122,6 @@ static void handle_response_invite(struct sip_pvt *p, int resp, const char *rest
|
|||||||
p->ongoing_reinvite = 0;
|
p->ongoing_reinvite = 0;
|
||||||
if (p->reinviteid > -1) {
|
if (p->reinviteid > -1) {
|
||||||
AST_SCHED_DEL_UNREF(sched, p->reinviteid, dialog_unref(p, "unref dialog for reinvite timeout because of a final response"));
|
AST_SCHED_DEL_UNREF(sched, p->reinviteid, dialog_unref(p, "unref dialog for reinvite timeout because of a final response"));
|
||||||
/* Since we got a final response to the reinvite, but were relying on the reinvite_timeout
|
|
||||||
* function to clean up after the reinvite, we need to make sure and call check_pendings */
|
|
||||||
check_pendings(p);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user