A demonstration:
exten => _XXXXX.,1,Set(GROUP()=${CALLERID(num))
exten => _XXXXX.,n,Set(CDR(AccountCode)=${CALLERID(num))
exten => _XXXXX.,n,GotoIf($[${GROUP_COUNT(${CALLERID(num))} > 2]?103)
exten => _XXXXX.,n,Macro(trunk,${EXTEN},residential)
exten => _XXXXX.,n,Hangup
exten => _XXXXX.,103,Playback(allison7/all-circuits-busy-now)
exten => _XXXXX.,n,Hangup
________________________________________
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Marco
Mouta
Sent: Friday, January 19, 2007 6:55 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to limit IAX calls
Take a look on:
Dialplan applications:
GetGroupMatchCount(groupmatch[@category])
SetGroup(groupname[@category])
Using this two applications you can deploy a max calls control inside
your dialplan!
check this too: http://www.voip-info.org/wiki/view/Asterisk+cmd+SetGroup
Hope it helps
On 1/19/07, Barzilai Spinak <barcho@creacion.com.uy> wrote:
The SIP channels have a "call-limit" parameter (which is badly
documented and I haven't tested yet)
How can I have the same behaviour for IAX channels? I can't see anything
related to it.
Ah, I'm using Asterisk 1.2.13... maybe there is something in the 1.4
versions... but I can't change to 1.4 right now because of MFC/R2
BarZ
_______________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20070119/2d332f71/attachment.htm