diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-14 13:58:42 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-14 13:58:42 +0000 |
commit | 504ef4a3a32a59a0c5663737c374a4642ae5f42f (patch) | |
tree | fc5def642167cc7ec729e8bbeca53c9abe17bb9e /main/pbx.c | |
parent | 83aecb42e253e8cd2f7dbd97f052d3565d49b4ce (diff) |
As per 9570, worrisome CDR warnings have been removed, that are either not helpful, or not relevant.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@64193 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/main/pbx.c b/main/pbx.c index 068b638e4..56e291175 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4972,20 +4972,6 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout ast_channel_lock(chan); } if (chan) { - if (chan->cdr) { /* check if the channel already has a cdr record, if not give it one */ - ast_log(LOG_WARNING, "%s already has a call record??\n", chan->name); - } else { - chan->cdr = ast_cdr_alloc(); /* allocate a cdr for the channel */ - if (!chan->cdr) { - /* allocation of the cdr failed */ - free(chan->pbx); - res = -1; - goto outgoing_exten_cleanup; - } - /* allocation of the cdr was successful */ - ast_cdr_init(chan->cdr, chan); /* initilize our channel's cdr */ - ast_cdr_start(chan->cdr); - } if (chan->_state == AST_STATE_UP) { res = 0; if (option_verbose > 3) @@ -5016,7 +5002,7 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout if (option_verbose > 3) ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", chan->name); - if(chan->cdr) { /* update the cdr */ + if (chan->cdr) { /* update the cdr */ /* here we update the status of the call, which sould be busy. * if that fails then we set the status to failed */ if (ast_cdr_disposition(chan->cdr, chan->hangupcause)) |