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";
}
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)
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
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)