summaryrefslogtreecommitdiff
path: root/res/snmp
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2010-07-14 16:58:03 +0000
committerRichard Mudgett <rmudgett@digium.com>2010-07-14 16:58:03 +0000
commitcf7bbcc4c667a1fe907b0ec71e9a4fed506b8c23 (patch)
tree804c18f5b1b87b38928ba78b993358d14926f97e /res/snmp
parente2599bc42c07a6a5611a3804ce08495ccdc72b94 (diff)
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
Diffstat (limited to 'res/snmp')
-rw-r--r--res/snmp/agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/snmp/agent.c b/res/snmp/agent.c
index c18c3e5af..bd84c1b6b 100644
--- a/res/snmp/agent.c
+++ b/res/snmp/agent.c
@@ -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;