mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Version 0.1.11 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -217,10 +217,10 @@ time_t t;
|
|||||||
ast_set_read_format(channel,AST_FORMAT_SLINEAR);
|
ast_set_read_format(channel,AST_FORMAT_SLINEAR);
|
||||||
ast_set_write_format(channel,AST_FORMAT_SLINEAR);
|
ast_set_write_format(channel,AST_FORMAT_SLINEAR);
|
||||||
channel->callerid = NULL;
|
channel->callerid = NULL;
|
||||||
channel->hidden_callerid = NULL;
|
channel->ani = NULL;
|
||||||
#ifdef OURCLID
|
#ifdef OURCLID
|
||||||
channel->callerid = strdup(OURCLID);
|
channel->callerid = strdup(OURCLID);
|
||||||
channel->hidden_callerid = strdup(OURCLID);
|
channel->ani = strdup(OURCLID);
|
||||||
#endif
|
#endif
|
||||||
channel->whentohangup = 0;
|
channel->whentohangup = 0;
|
||||||
channel->appl = "AppQcall";
|
channel->appl = "AppQcall";
|
||||||
@@ -237,8 +237,8 @@ time_t t;
|
|||||||
}
|
}
|
||||||
if (channel->callerid) free(channel->callerid);
|
if (channel->callerid) free(channel->callerid);
|
||||||
channel->callerid = NULL;
|
channel->callerid = NULL;
|
||||||
if (channel->hidden_callerid) free(channel->hidden_callerid);
|
if (channel->ani) free(channel->ani);
|
||||||
channel->hidden_callerid = NULL;
|
channel->ani = NULL;
|
||||||
if (channel->state == AST_STATE_UP)
|
if (channel->state == AST_STATE_UP)
|
||||||
if (debug) printf("@@@@ Autodial:Line is Up\n");
|
if (debug) printf("@@@@ Autodial:Line is Up\n");
|
||||||
if (option_verbose > 2)
|
if (option_verbose > 2)
|
||||||
@@ -305,7 +305,7 @@ time_t t;
|
|||||||
ast_stopstream(channel);
|
ast_stopstream(channel);
|
||||||
}
|
}
|
||||||
channel->callerid = strdup(clid);
|
channel->callerid = strdup(clid);
|
||||||
channel->hidden_callerid = strdup(clid);
|
channel->ani = strdup(clid);
|
||||||
channel->language[0] = 0;
|
channel->language[0] = 0;
|
||||||
channel->dnid = strdup(extstr);
|
channel->dnid = strdup(extstr);
|
||||||
#ifdef AMAFLAGS
|
#ifdef AMAFLAGS
|
||||||
|
6
cdr.c
6
cdr.c
@@ -198,9 +198,9 @@ int ast_cdr_init(struct ast_cdr *cdr, struct ast_channel *c)
|
|||||||
if (strlen(cdr->channel))
|
if (strlen(cdr->channel))
|
||||||
ast_log(LOG_WARNING, "CDR already initialized on '%s'\n", chan);
|
ast_log(LOG_WARNING, "CDR already initialized on '%s'\n", chan);
|
||||||
strncpy(cdr->channel, c->name, sizeof(cdr->channel) - 1);
|
strncpy(cdr->channel, c->name, sizeof(cdr->channel) - 1);
|
||||||
/* Grab source from hidden or normal Caller*ID */
|
/* Grab source from ANI or normal Caller*ID */
|
||||||
if (c->hidden_callerid)
|
if (c->ani)
|
||||||
strncpy(tmp, c->hidden_callerid, sizeof(tmp) - 1);
|
strncpy(tmp, c->ani, sizeof(tmp) - 1);
|
||||||
else if (c->callerid)
|
else if (c->callerid)
|
||||||
strncpy(tmp, c->callerid, sizeof(tmp) - 1);
|
strncpy(tmp, c->callerid, sizeof(tmp) - 1);
|
||||||
if (c->callerid)
|
if (c->callerid)
|
||||||
|
@@ -139,6 +139,7 @@ type=peer
|
|||||||
username=asterisk
|
username=asterisk
|
||||||
secret=supersecret
|
secret=supersecret
|
||||||
host=216.207.245.57
|
host=216.207.245.57
|
||||||
|
;sendani=no
|
||||||
;host=asterisk.linux-support.net
|
;host=asterisk.linux-support.net
|
||||||
;port=5036
|
;port=5036
|
||||||
;mask=255.255.255.255
|
;mask=255.255.255.255
|
||||||
|
Reference in New Issue
Block a user