Hi, is there a way to limit an account to do simultaneous calls in sip and iax? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070713/841cbb5f/attachment.htm
On Fri, 2007-07-13 at 21:58 +0800, Mark Quitoriano wrote:> is there a way to limit an account to do simultaneous calls in sip and > iax?You can use the GROUP and GROUP_COUNT dialplan functions to enforce arbitrary limits as you see fit. There's an example on the wiki at http://www.voip-info.org/wiki/view/Asterisk+Queue+with+limited+calls+per +IAX+agent -- Jared Smith Community Relations Manager Digium, Inc.
On Fri, 13 Jul 2007, Mark Quitoriano wrote:> is there a way to limit an account to do simultaneous calls in sip and iax?Among other solutions that have been proposed, you can always use global variables or AstDB values to keep per-peer reference counts and increment and decrement them as calls get set up and torn down, and enforce limits that way. -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : +1-678-954-0670 Direct : +1-678-954-0671