[asterisk-commits] oej: trunk r89406 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Nov 19 03:12:27 CST 2007
Author: oej
Date: Mon Nov 19 03:12:27 2007
New Revision: 89406
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89406
Log:
Adding busy-level to the SIP_PEER() dialplan function.
With this, you can control the peer in the dialplan, so you avoid placing outbound
calls when the device has reached busy-level.
Reported by pj.
Closes bug #11180
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=89406&r1=89405&r2=89406
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Mon Nov 19 03:12:27 2007
@@ -12988,6 +12988,8 @@
ast_copy_string(buf, peer->regexten, len);
} else if (!strcasecmp(colname, "limit")) {
snprintf(buf, len, "%d", peer->call_limit);
+ } else if (!strcasecmp(colname, "busylevel")) {
+ snprintf(buf, len, "%d", peer->busy_level);
} else if (!strcasecmp(colname, "curcalls")) {
snprintf(buf, len, "%d", peer->inUse);
} else if (!strcasecmp(colname, "accountcode")) {
@@ -13052,6 +13054,7 @@
"- status Status (if qualify=yes).\n"
"- regexten Registration extension\n"
"- limit Call limit (call-limit)\n"
+ "- busylevel Configured call level for signalling busy\n"
"- curcalls Current amount of calls \n"
" Only available if call-limit is set\n"
"- language Default language for peer\n"
More information about the asterisk-commits
mailing list