diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-12 17:47:55 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-12 17:47:55 +0000 |
commit | 6627b7fbd41f7b7e83956073ddeae4d115355e81 (patch) | |
tree | 603ec434049bbb13e11afdaf9ba698eb7b82d70d /apps/app_dial.c | |
parent | 11b9943a11ba2f0005fad3f5fff6c9c7dd64666c (diff) |
Merged revisions 156169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r156169 | mmichelson | 2008-11-12 11:41:56 -0600 (Wed, 12 Nov 2008) | 15 lines
Merged revisions 156167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r156167 | mmichelson | 2008-11-12 11:38:33 -0600 (Wed, 12 Nov 2008) | 7 lines
When doing some tests, I was having a crash at the end of every call
if an attended transfer occurred during the call. I traced the cause to
the CDR on one of the channels being NULL. murf suggested a check in
the end bridge callback to be sure the CDR is non-NULL before proceeding,
so that's what I'm adding.
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@156170 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 63bc5f32c..4943727b2 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1221,6 +1221,10 @@ static void end_bridge_callback(void *data) time_t end; struct ast_channel *chan = data; + if (!chan->cdr) { + return; + } + time(&end); ast_channel_lock(chan); |