[asterisk-users] Do I understand GROUPs correctly?
Mike
list at virtutel.ca
Tue Feb 27 09:28:02 MST 2007
Ok, that sort of makes sense. But what I am doing is passing off a call
into my Asterisk system to a cell phone. I want this to count as 2
"channels". So, I am doing, in effect, this kind of algo:
Answer the call
Set(Group) to increment channel to 1
Play IVR, go into menus, etc.
Eventually go into a "Set(group) again to increment channel before dialing a
cell phone using a "dial(cellphone#)" cmd.
If that doesn't work, how do I accomplish the same kind of thing elegantly?
Mike
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philipp
Kempgen
Sent: Tuesday, February 27, 2007 10:57
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Do I understand GROUPs correctly?
Doug Lytle wrote:
> 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)})
Apart from that you assign the group 1234 twice to the *same* channel. So
GROUP_COUNT(1234) correctly reports only *1* channel to be in that group.
Regards,
Philipp
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk -> http://www.das-asterisk-buch.de
Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
_______________________________________________
--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