mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-27 06:31:54 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user