<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dear Mike,
<p>I had wanted to do something that is similar to your need as I wanted
to be able to add one active channel in multiple groups, it worked with
The Ramon's example in the link below which uses categories beside the
set command, note there are two examles depending on the asterisk version
you are using:
<p><A HREF="http://www.voip-info.org/wiki/view/asterisk+cmd+setgroup">http://www.voip-info.org/wiki/view/asterisk+cmd+setgroup</A>
<p>Thx
<br>MAG
<p>Mike wrote:
<blockquote TYPE=CITE>Ok, that sort of makes sense. But what I am
doing is passing off a call
<br>into my Asterisk system to a cell phone. I want this to count
as 2
<br>"channels". So, I am doing, in effect, this kind of algo:
<p>Answer the call
<br>Set(Group) to increment channel to 1
<br>Play IVR, go into menus, etc.
<p>Eventually go into a "Set(group) again to increment channel before dialing
a
<br>cell phone using a "dial(cellphone#)" cmd.
<p>If that doesn't work, how do I accomplish the same kind of thing elegantly?
<p>Mike
<br>
<p>-----Original Message-----
<br>From: asterisk-users-bounces@lists.digium.com
<br>[<a href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</a>]
On Behalf Of Philipp
<br>Kempgen
<br>Sent: Tuesday, February 27, 2007 10:57
<br>To: Asterisk Users Mailing List - Non-Commercial Discussion
<br>Subject: Re: [asterisk-users] Do I understand GROUPs correctly?
<p>Doug Lytle wrote:
<br>> Mike wrote:
<br>>> Hi,
<br>>>
<br>>> I was under the impression that Set(GROUP()=1234) incremented some
<br>>> value associated with 1234.
<br>>>
<br>>> So if I did the same thing twice, I'd get a group count of 2.
<br>>>
<br>>> Ex:
<br>>> exten => s,1,Set(GROUP()=1234)
<br>>> exten => s,n,Set(GROUP()=1234)
<br>>> exten => s,n,Noop(Used channels: ${GROUP_COUNT(1234})
<br>>
<br>> If this is a direct copy/paste then your error is in line 3.
You have
<br>> a } positioned incorrectly. My example below:
<br>>
<br>> exten => _35XX,1,Set(GROUP()=Max_Calls) exten => _35XX,n,NoOP(Active
<br>> Calls: ${GROUP_COUNT(Max_Calls)})
<p>Apart from that you assign the group 1234 twice to the *same* channel.
So
<br>GROUP_COUNT(1234) correctly reports only *1* channel to be in that
group.
<p>Regards,
<br> Philipp
<p>--
<br>amooma GmbH - Bachstr. 126 - 56566 Neuwied - <a href="http://www.amooma.de">http://www.amooma.de</a>
<br> Let's use IT to solve problems and not to
create new ones.
<br> Asterisk
-> <a href="http://www.das-asterisk-buch.de">http://www.das-asterisk-buch.de</a>
<p>Geschäftsführer: Stefan Wintermeyer
<br>Handelsregister: Neuwied B 14998
<br>_______________________________________________
<br>--Bandwidth and Colocation provided by Easynews.com --
<p>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>
<p>_______________________________________________
<br>--Bandwidth and Colocation provided by Easynews.com --
<p>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></blockquote>
<pre>--
Thx
MAG</pre>
</html>