mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-22 16:29:02 -07:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@62782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -775,16 +775,18 @@ int ast_cdr_update(struct ast_channel *c)
|
||||
|
||||
/* Copy account code et-al */
|
||||
ast_copy_string(cdr->accountcode, c->accountcode, sizeof(cdr->accountcode));
|
||||
/* Destination information */
|
||||
ast_copy_string(cdr->dst, (ast_strlen_zero(c->macroexten)) ? c->exten : c->macroexten, sizeof(cdr->dst));
|
||||
ast_copy_string(cdr->dcontext, (ast_strlen_zero(c->macrocontext)) ? c->context : c->macrocontext, sizeof(cdr->dcontext));
|
||||
if (!ast_check_hangup(c)) {
|
||||
/* Destination information */ /* XXX privilege macro* ? */
|
||||
ast_copy_string(cdr->dst, (ast_strlen_zero(c->macroexten)) ? c->exten : c->macroexten, sizeof(cdr->dst));
|
||||
ast_copy_string(cdr->dcontext, (ast_strlen_zero(c->macrocontext)) ? c->context : c->macrocontext, sizeof(cdr->dcontext));
|
||||
}
|
||||
}
|
||||
cdr = cdr->next;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int ast_cdr_amaflags2int(const char *flag)
|
||||
{
|
||||
if (!strcasecmp(flag, "default"))
|
||||
|
||||
Reference in New Issue
Block a user