Index: pbx.c =================================================================== --- pbx.c (revision 167) +++ pbx.c (working copy) @@ -4988,9 +4988,9 @@ LOAD_OH(oh); chan = __ast_request_and_dial(type, format, data, timeout, reason, cid_num, cid_name, &oh); if (channel) { - *channel = chan; if (chan) ast_mutex_lock(&chan->lock); + *channel = chan; } if (chan) { if (chan->cdr) { /* check if the channel already has a cdr record, if not give it one */