Aaah... I'll try that...
A simple variable would be so much easier... :-)

BarZ

Jonathan k. Creasy wrote:

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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([EMAIL PROTECTED])

SetGroup([EMAIL PROTECTED])

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 <[EMAIL PROTECTED]> 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

_______________________________________________

------------------------------------------------------------------------

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to