<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=890193120-23022007><FONT face=Arial 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>I was under the 
impression that Set(GROUP()=1234) incremented some value associated with 
1234.</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>So if I did the same 
thing twice, I'd get a group count of 2.</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2>Ex:</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>exten =&gt; 
s,1,Set(GROUP()=1234)<BR>exten =&gt; s,n,Set(GROUP()=1234)<BR>exten =&gt; 
s,n,Noop(Used channels: ${GROUP_COUNT(1234})</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>I get this in the 
CLI:</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>-- Executing 
Set("IAX2/test-2", "GROUP()=1234") in new stack<BR>-- Executing 
Set("IAX2/test-2", "GROUP()=1234") in new stack<BR>-- Executing 
NoOp("IAX2/test-2", "Used channels: 1") in new stack</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>I'm trying to limit 
the amount of channel used by some customers, but the incrementation doesn't 
seem to work.&nbsp; I'm using Asterisk 1.2.13.</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial size=2>My real life example 
(the above is clearly a proof of concept that is failing) is that someone 
calling an IVR&nbsp;uses one channel.&nbsp; Someone calling the IVR and being 
eventually transfered to a cell phone (PSTN-----&gt;ASTERISK----&gt;PSTN) uses 
two channels.&nbsp; Unfortunately the number doesn't increased as planned, it 
stays at 1 channel used.</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=890193120-23022007><FONT face=Arial 
size=2>Mike</FONT></SPAN></DIV></BODY></HTML>