diff options
author | Mark Spencer <markster@digium.com> | 2002-02-18 20:25:25 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2002-02-18 20:25:25 +0000 |
commit | bc740c86fd819200f43f295eef72b6f5f6c0dc26 (patch) | |
tree | 3fe82fd87764b99357b2de2b85a9ce609cd7cd1d /cdr.c | |
parent | 21b5e17de5e4234a7f9fd725f64bf541261e1f85 (diff) |
Version 0.1.11 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'cdr.c')
-rwxr-xr-x | cdr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -198,9 +198,9 @@ int ast_cdr_init(struct ast_cdr *cdr, struct ast_channel *c) if (strlen(cdr->channel)) ast_log(LOG_WARNING, "CDR already initialized on '%s'\n", chan); strncpy(cdr->channel, c->name, sizeof(cdr->channel) - 1); - /* Grab source from hidden or normal Caller*ID */ - if (c->hidden_callerid) - strncpy(tmp, c->hidden_callerid, sizeof(tmp) - 1); + /* Grab source from ANI or normal Caller*ID */ + if (c->ani) + strncpy(tmp, c->ani, sizeof(tmp) - 1); else if (c->callerid) strncpy(tmp, c->callerid, sizeof(tmp) - 1); if (c->callerid) |