[asterisk-users] Do I understand GROUPs correctly?

Mike list at virtutel.ca
Tue Feb 27 08:51:03 MST 2007


Actually it wasn’t a straight paste.  The straight cut and paste is:

exten => s,1,Set(GROUP()=${VAR})
exten => s,n,Set(GROUP()=${VAR})
exten => s,n,Noop(Used channels: ${GROUP_COUNT(${VAR})}) 

I believe that's good.  But The group count is not "2", but "1".  I thought
I'd be "2" since I called "Set(group)" twice.

Mike



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Doug Lytle
Sent: Tuesday, February 27, 2007 10:21
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Do I understand GROUPs correctly?

Mike wrote:
> Hi,
>  
> I was under the impression that Set(GROUP()=1234) incremented some 
> value associated with 1234.
>  
> So if I did the same thing twice, I'd get a group count of 2.
>  
> Ex:
> exten => s,1,Set(GROUP()=1234)
> exten => s,n,Set(GROUP()=1234)
> exten => s,n,Noop(Used channels: ${GROUP_COUNT(1234})

If this is a direct copy/paste then your error is in line 3.  You have a }
positioned incorrectly.  My example below:

exten => _35XX,1,Set(GROUP()=Max_Calls)
exten => _35XX,n,NoOP(Active Calls: ${GROUP_COUNT(Max_Calls)})

Doug


-- 
 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety."


_______________________________________________
--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



More information about the asterisk-users mailing list