summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/app_dial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 6a415ff02..d76a0cf6a 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -2243,6 +2243,7 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast
* No hint name available. We have a connected name supplied by
* the dialplan we can use instead.
*/
+ caller.id.name.valid = 1;
caller.id.name = chan->connected.id.name;
}
ast_channel_set_caller_event(tc, &caller, NULL);
@@ -2256,6 +2257,7 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast
* We have a connected name supplied by the dialplan we can
* use instead.
*/
+ caller.id.name.valid = 1;
caller.id.name = chan->connected.id.name;
ast_channel_set_caller_event(tc, &caller, NULL);
}