mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Expand the caller ANI field to an ast_party_id
Expand the ani field in ast_party_caller and ast_party_connected_line to an ast_party_id. This is an extension to the ast_callerid restructuring patch in review: https://reviewboard.asterisk.org/r/702/ Review: https://reviewboard.asterisk.org/r/744/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@276393 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -888,7 +888,10 @@ static struct ast_channel *phone_new(struct phone_pvt *i, int state, char *cntx,
|
||||
|
||||
/* Don't use ast_set_callerid() here because it will
|
||||
* generate a NewCallerID event before the NewChannel event */
|
||||
tmp->caller.ani = ast_strdup(i->cid_num);
|
||||
if (!ast_strlen_zero(i->cid_num)) {
|
||||
tmp->caller.ani.number.valid = 1;
|
||||
tmp->caller.ani.number.str = ast_strdup(i->cid_num);
|
||||
}
|
||||
|
||||
i->owner = tmp;
|
||||
ast_module_ref(ast_module_info->self);
|
||||
|
Reference in New Issue
Block a user