Skip to content
Snippets Groups Projects
Commit f99a3102 authored by Olle Johansson's avatar Olle Johansson
Browse files

Make sure we stop session timers as soon as we start hanging up an active call.

May fix issue 12919.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@127791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 2491cc6e
Branches
Tags
No related merge requests found
...@@ -5111,6 +5111,10 @@ static int sip_hangup(struct ast_channel *ast) ...@@ -5111,6 +5111,10 @@ static int sip_hangup(struct ast_channel *ast)
p->invitestate = INV_TERMINATED; p->invitestate = INV_TERMINATED;
} }
} else { /* Call is in UP state, send BYE */ } else { /* Call is in UP state, send BYE */
if (p->stimer->st_active == TRUE) {
stop_session_timer(p);
}
if (!p->pendinginvite) { if (!p->pendinginvite) {
struct ast_channel *bridge = ast_bridged_channel(oldowner); struct ast_channel *bridge = ast_bridged_channel(oldowner);
char *audioqos = ""; char *audioqos = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment