mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 16:50:14 +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:
@@ -443,8 +443,8 @@ static u_char *ast_var_channels_table(struct variable *vp, oid *name, size_t *le
|
||||
}
|
||||
break;
|
||||
case ASTCHANCIDANI:
|
||||
if (chan->caller.ani) {
|
||||
strncpy(string_ret, chan->caller.ani, sizeof(string_ret));
|
||||
if (chan->caller.ani.number.valid && chan->caller.ani.number.str) {
|
||||
strncpy(string_ret, chan->caller.ani.number.str, sizeof(string_ret));
|
||||
string_ret[sizeof(string_ret) - 1] = '\0';
|
||||
*var_len = strlen(string_ret);
|
||||
ret = (u_char *)string_ret;
|
||||
|
||||
Reference in New Issue
Block a user