[asterisk-commits] seanbright: trunk r140559 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Sep 2 09:41:42 CDT 2008
Author: seanbright
Date: Tue Sep 2 09:41:41 2008
New Revision: 140559
URL: http://svn.digium.com/view/asterisk?view=rev&rev=140559
Log:
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.
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=140559&r1=140558&r2=140559
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Sep 2 09:41:41 2008
@@ -4708,7 +4708,7 @@
/* 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;
}
More information about the asterisk-commits
mailing list