diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-19 09:12:27 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-19 09:12:27 +0000 |
commit | 5434749d80b88bb19c2195a5510ac34affbba24f (patch) | |
tree | 03e06373e230445fc63c5bd911faa18e7e62bacb /channels/chan_sip.c | |
parent | 3c9ab4b9166232516ce789f48f956e213088ac01 (diff) |
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
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89406 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 965123309..106368caf 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -12988,6 +12988,8 @@ static int function_sippeer(struct ast_channel *chan, const char *cmd, char *dat 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 @@ struct ast_custom_function sippeer_function = { "- 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" |