aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-12 17:38:33 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-12 17:38:33 +0000
commitc0b64547a753ce744f6d84296f5dbe020b863e13 (patch)
tree96bd8637f279048a96c0d0d5574aac0a85ff5998
parent304f7ecb1f83167bb9507384be24303f9f3ddfd0 (diff)
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.4@156167 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_dial.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 72ad5a6c4..0032dd845 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -838,6 +838,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);