]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Quell an annoying message that is likely to print every single time that
authorMark Michelson <mmichelson@digium.com>
Thu, 6 Mar 2008 22:10:07 +0000 (22:10 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 6 Mar 2008 22:10:07 +0000 (22:10 +0000)
ast_pbx_outgoing_app is called. The reason is that __ast_request_and_dial
allocates the cdr for the channel, so it should be expected that the channel
will have a cdr on it.

Thanks to joetester on IRC for pointing this out

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@106437 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index fe3252c0d3a4f86497bdfb80956a2ffb1d7e5027..d057ae2646765a41a99a9f4fccbac4da372e0c17 100644 (file)
@@ -5166,9 +5166,7 @@ int ast_pbx_outgoing_app(const char *type, int format, void *data, int timeout,
        if (sync) {
                chan = __ast_request_and_dial(type, format, data, timeout, reason, cid_num, cid_name, &oh);
                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 {
+                       if (!chan->cdr) { /* check if the channel already has a cdr record, if not give it one */
                                chan->cdr = ast_cdr_alloc();   /* allocate a cdr for the channel */
                                if(!chan->cdr) {
                                        /* allocation of the cdr failed */