diff --git a/apps/app_dial.c b/apps/app_dial.c index 66e8bb8654c1988b86977d08ca556a4534368a20..95c0b359eea4e8acc7291d9b78a4c88b3fe4d465 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1910,7 +1910,7 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast connected.id.number_presentation = AST_PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN; ast_channel_set_connected_line(tmp->chan, &connected); } else { - ast_connected_line_copy_from_caller(&tmp->chan->connected, &chan->cid); + ast_connected_line_copy_from_caller(&tc->connected, &chan->cid); } S_REPLACE(tc->cid.cid_rdnis, ast_strdup(chan->cid.cid_rdnis));