diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-13 19:20:42 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-04-13 19:20:42 +0000 |
commit | 11a8503e469e952ff1796956d667db07338e59b9 (patch) | |
tree | 7b52c596284f15bcdf97d3bee9e896efeb3f25b4 | |
parent | 80b065a4d19ba8cef61d531aff8e8777e9856441 (diff) |
Merged revisions 257191 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r257191 | tilghman | 2010-04-13 14:17:48 -0500 (Tue, 13 Apr 2010) | 10 lines
Also unref the pvt when we delete the provisional keepalive job.
(closes issue #16774)
Reported by: kowalma
Patches:
20100315__issue16774.diff.txt uploaded by tilghman (license 14)
Tested by: falves11, jamicque
Review: https://reviewboard.asterisk.org/r/591/
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@257206 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 86398dbae..e44be9f7d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5220,7 +5220,7 @@ static int sip_hangup(struct ast_channel *ast) } } else { /* Incoming call, not up */ const char *res; - AST_SCHED_DEL(sched, p->provisional_keepalive_sched_id); + AST_SCHED_DEL_UNREF(sched, p->provisional_keepalive_sched_id, dialog_unref(p)); if (p->hangupcause && (res = hangup_cause2sip(p->hangupcause))) transmit_response_reliable(p, res, &p->initreq); else |