aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-02-18 20:25:25 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-02-18 20:25:25 +0000
commitbf25a6f8f9a98d2beed4c13e6edabe4ae8ef834d (patch)
tree3fe82fd87764b99357b2de2b85a9ce609cd7cd1d /cdr.c
parentfe1cd7d32148d8d6b9021433c8f67100d8db42e9 (diff)
Version 0.1.11 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@414 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr.c')
-rwxr-xr-xcdr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cdr.c b/cdr.c
index 3a0d27951..91b76f0e4 100755
--- a/cdr.c
+++ b/cdr.c
@@ -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)