I would use the Set(GROUP()=groupname) command followed by a GotoIf($[ ${GROUP_COUNT() blah blah blah] statement that directs the caller to a priority based on the number of channels in use. Works very well...<br><br>Pedro
<br><a href="http://www.TRACI.net">http://www.TRACI.net</a><br>Offering SIP Origination and Termination Services<br><br><br><div><span class="gmail_quote">On 11/20/06, <b class="gmail_sendername">mail-lists</b> <<a href="mailto:mail-lists@peachnet.com">
mail-lists@peachnet.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">this is from freepbx though coceptually should hold true..
<br><br>can you not come up with a custom dial route (ie dialing 9 or whatever)<br>and then limit the channels on that route to 4<br>then have that extension send a prefix (9) whener it's being used to<br>access that route?
<br>> That doesn't work thought, because calls from extension to extension<br>> (i.e. 201 to 205) shouldn't be taken into account. Only calls to/from<br>> my VoiP providers should.<br>><br>> Mike<br>><br>
> ------------------------------------------------------------------------<br>> *From:* <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>> [mailto:
<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] *On Behalf Of *Vicky<br>> *Sent:* November 20, 2006 12:31 PM<br>> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
<br>> *Subject:* Re: [asterisk-users] Call limits and VoIP providers<br>><br>> You can set maximum channels per extension in sip.conf like using<br>> call-limit . From wiki<br>> call-limit = number : Number of simultaneous calls through this
<br>> user/peer.<br>><br>> On 20/11/06, *Mike* <<a href="mailto:list@virtutel.ca">list@virtutel.ca</a> <mailto:<a href="mailto:list@virtutel.ca">list@virtutel.ca</a>>><br>> wrote:<br>>
<br>> Hi,<br>><br>> I have a few customers hosted on my Asterisk PBX. All<br>> incoming calls are coming from VoIP provider A and all<br>> outgoing calls are going to termination provider B (they
<br>> happen to be different for now).<br>><br>> On ONE of those customers I'd like to setup a channel limit,<br>> meaning they can have 4 calls max, either outgoing, incoming,<br>> or a combinaison of both. After that, I want it to ring busy.
<br>><br>> How do I accomplish that? I don't want to setup a global call<br>> limit for the provider, because other customers are on taking<br>> calls and have no limits. What is the best practice here?
<br>><br>> Mike<br>><br>><br>><br>><br>> _______________________________________________<br>> --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com
</a><br>> <<a href="http://Easynews.com">http://Easynews.com</a>> --<br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>><br>><br>><br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com
</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>