summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2002-02-18 20:25:25 +0000
committerMark Spencer <markster@digium.com>2002-02-18 20:25:25 +0000
commitbc740c86fd819200f43f295eef72b6f5f6c0dc26 (patch)
tree3fe82fd87764b99357b2de2b85a9ce609cd7cd1d
parent21b5e17de5e4234a7f9fd725f64bf541261e1f85 (diff)
Version 0.1.11 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xapps/app_qcall.c10
-rwxr-xr-xcdr.c6
-rwxr-xr-xconfigs/iax.conf.sample1
3 files changed, 9 insertions, 8 deletions
diff --git a/apps/app_qcall.c b/apps/app_qcall.c
index 87672e5ff..5e153e19c 100755
--- a/apps/app_qcall.c
+++ b/apps/app_qcall.c
@@ -217,10 +217,10 @@ time_t t;
ast_set_read_format(channel,AST_FORMAT_SLINEAR);
ast_set_write_format(channel,AST_FORMAT_SLINEAR);
channel->callerid = NULL;
- channel->hidden_callerid = NULL;
+ channel->ani = NULL;
#ifdef OURCLID
channel->callerid = strdup(OURCLID);
- channel->hidden_callerid = strdup(OURCLID);
+ channel->ani = strdup(OURCLID);
#endif
channel->whentohangup = 0;
channel->appl = "AppQcall";
@@ -237,8 +237,8 @@ time_t t;
}
if (channel->callerid) free(channel->callerid);
channel->callerid = NULL;
- if (channel->hidden_callerid) free(channel->hidden_callerid);
- channel->hidden_callerid = NULL;
+ if (channel->ani) free(channel->ani);
+ channel->ani = NULL;
if (channel->state == AST_STATE_UP)
if (debug) printf("@@@@ Autodial:Line is Up\n");
if (option_verbose > 2)
@@ -305,7 +305,7 @@ time_t t;
ast_stopstream(channel);
}
channel->callerid = strdup(clid);
- channel->hidden_callerid = strdup(clid);
+ channel->ani = strdup(clid);
channel->language[0] = 0;
channel->dnid = strdup(extstr);
#ifdef AMAFLAGS
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)
diff --git a/configs/iax.conf.sample b/configs/iax.conf.sample
index 2c474287c..9d9d9e80e 100755
--- a/configs/iax.conf.sample
+++ b/configs/iax.conf.sample
@@ -139,6 +139,7 @@ type=peer
username=asterisk
secret=supersecret
host=216.207.245.57
+;sendani=no
;host=asterisk.linux-support.net
;port=5036
;mask=255.255.255.255