mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Use AST_CDR_NOANSWER instead of AST_CDR_NULL as the default CDR disposition.
This change also involves the addition of an AST_CDR_FLAG_ORIGINATED flag that is used on originated channels to distinguish: them from dialed channels. (closes issue #12946) Reported by: meral Patches: null-cdr2.diff uploaded by mnicholson (license 96) Tested by: mnicholson, dbrooks (closes issue #15122) Reported by: sum Tested by: sum git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@198068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3063,6 +3063,7 @@ struct ast_channel *__ast_request_and_dial(const char *type, int format, void *d
|
||||
ast_cdr_setaccount(chan, oh->account);
|
||||
}
|
||||
ast_set_callerid(chan, cid_num, cid_name, cid_num);
|
||||
ast_set_flag(chan->cdr, AST_CDR_FLAG_ORIGINATED);
|
||||
|
||||
if (ast_call(chan, data, 0)) { /* ast_call failed... */
|
||||
ast_log(LOG_NOTICE, "Unable to call channel %s/%s\n", type, (char *)data);
|
||||
|
Reference in New Issue
Block a user