summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2008-09-02 14:41:41 +0000
committerSean Bright <sean@malleable.com>2008-09-02 14:41:41 +0000
commitb74c9b910e6b732ce78fe9b3c1fab3dbe51d352c (patch)
tree1885f070f33c94838215d4430150257f6a460c34
parent8fc9d6d6fa70ea52375261c4e62ff1500916298b (diff)
When a call is rejected because of call-limit, the channel driver is behaving
as expected, so we shouldn't report it as an error. Change to LOG_NOTICE instead. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 351a09782..c1e21d4e3 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4708,7 +4708,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", "peer", name, *call_limit);
+ ast_log(LOG_NOTICE, "Call %s %s '%s' rejected due to usage limit of %d\n", outgoing ? "to" : "from", "peer", name, *call_limit);
unref_peer(p, "update_call_counter: unref peer p, call limit exceeded");
return -1;
}