]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only show this warning when we want to show it.
authorJason Parker <jparker@digium.com>
Wed, 3 Dec 2008 21:38:07 +0000 (21:38 +0000)
committerJason Parker <jparker@digium.com>
Wed, 3 Dec 2008 21:38:07 +0000 (21:38 +0000)
(closes issue #13982)
Reported by: coolmig
Patches:
      chan_agent.c.patch uploaded by coolmig (license 621)

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

channels/chan_agent.c

index c15137bba37f97f935c5908c16b8ff484017a22e..9d93f9c1545d7565f606f02d99a7682af32b74ec 100644 (file)
@@ -735,7 +735,8 @@ static int agent_call(struct ast_channel *ast, char *dest, int timeout)
                ast_mutex_unlock(&p->lock);
                return res;
        }
-       ast_verbose( VERBOSE_PREFIX_3 "agent_call, call to agent '%s' call on '%s'\n", p->agent, p->chan->name);
+       if (option_verbose > 2)
+               ast_verbose(VERBOSE_PREFIX_3 "agent_call, call to agent '%s' call on '%s'\n", p->agent, p->chan->name);
        if (option_debug > 2)
                ast_log(LOG_DEBUG, "Playing beep, lang '%s'\n", p->chan->language);
        res = ast_streamfile(p->chan, beep, p->chan->language);