From: Richard Mudgett Date: Tue, 26 Apr 2011 18:00:34 +0000 (+0000) Subject: Add missing set of name valid flag when dialing. X-Git-Tag: 1.8.5-rc1~11^2~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06223e643b20ddb3d15506e447112c7308a7e4f3;p=thirdparty%2Fasterisk.git Add missing set of name valid flag when dialing. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@315452 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index 6a415ff029..d76a0cf6aa 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); }