mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +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:
@@ -853,7 +853,7 @@ static void set_one_cid(struct ast_cdr *cdr, struct ast_channel *c)
|
||||
}
|
||||
|
||||
/* Grab source from ANI or normal Caller*ID */
|
||||
num = S_OR(c->caller.ani,
|
||||
num = S_COR(c->caller.ani.number.valid, c->caller.ani.number.str,
|
||||
S_COR(c->caller.id.number.valid, c->caller.id.number.str, NULL));
|
||||
ast_callerid_merge(cdr->clid, sizeof(cdr->clid),
|
||||
S_COR(c->caller.id.name.valid, c->caller.id.name.str, NULL), num, "");
|
||||
|
||||
Reference in New Issue
Block a user