aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-03 16:50:43 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-03 16:50:43 +0000
commita7abb541e3c999e58a1e5c0b06642437fd20c024 (patch)
tree630c4d394bf365d9fd5b068375685ae7d70e6b68 /channels
parent6eb570316a84a637e62541c487b4909e927a0a04 (diff)
Merged revisions 127791 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r127791 | oej | 2008-07-03 18:48:23 +0200 (Tor, 03 Jul 2008) | 5 lines Make sure we stop session timers as soon as we start hanging up an active call. May fix issue 12919. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@127792 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 51c30b11a..e209c72c9 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4822,6 +4822,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) {
char *audioqos = "";
char *videoqos = "";