Demote a log message down to a warning.
authorJoshua Colp <jcolp@digium.com>
Tue, 1 Apr 2008 17:24:45 +0000 (17:24 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 1 Apr 2008 17:24:45 +0000 (17:24 +0000)
(closes issue #12345)
Reported by: caio1982
Patches:
      limit_msg.diff uploaded by caio1982 (license 22)

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

channels/chan_sip.c

index 5badfc7..1982f1f 100644 (file)
@@ -4472,7 +4472,7 @@ static int update_call_counter(struct sip_pvt *fup, int event)
                /* If call limit is active and we have reached the limit, reject the call */
                if (*call_limit > 0 ) {
                        if (*inuse >= *call_limit) {
-                               ast_log(LOG_ERROR, "Call %s %s '%s' rejected due to usage limit of %d\n", outgoing ? "to" : "from", u ? "user":"peer", name, *call_limit);
+                               ast_log(LOG_WARNING, "Call %s %s '%s' rejected due to usage limit of %d\n", outgoing ? "to" : "from", u ? "user":"peer", name, *call_limit);
                                if (u)
                                        unref_user(u);
                                else