aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6f5e263d0..1e5b927cf 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5111,6 +5111,10 @@ static int sip_hangup(struct ast_channel *ast)
p->invitestate = INV_TERMINATED;
}
} else { /* Call is in UP state, send BYE */
+ if (p->stimer->st_active == TRUE) {
+ stop_session_timer(p);
+ }
+
if (!p->pendinginvite) {
struct ast_channel *bridge = ast_bridged_channel(oldowner);
char *audioqos = "";