<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
this is a test to add a channel to multiple GROUPs.<br>
<br>
this is my dialplan :<br>
<br>
exten =&gt; s,n,NoOp(groepcount = ${GROUP_COUNT(40)})<br>
exten =&gt; s,n,Set(GROUP(40)=40)<br>
exten =&gt; s,n,NoOp(This channel is member of : ${GROUP_LIST()})<br>
exten =&gt; s,n,NoOp(groepcount = ${GROUP_COUNT(40)})<br>
<br>
exten =&gt; s,n,NoOp(groepcount = ${GROUP_COUNT(40L)})<br>
exten =&gt; s,n,Set(GROUP(40)=40L)<br>
exten =&gt; s,n,NoOp(This channel is member of : ${GROUP_LIST()})<br>
exten =&gt; s,n,NoOp(groepcount = ${GROUP_COUNT(40L)})<br>
<br>
<font>this is the output on a first call :<br>
<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:17]
NoOp("SIP/testcorp7-00000036", "groepcount = 0") in new stack<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:18]
Set("SIP/testcorp7-00000036", "GROUP(40)=40") in new stack<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:19]
NoOp("SIP/testcorp7-00000036", "This channel is member of : 40@40") in
new stack<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:20]
NoOp("SIP/testcorp7-00000036", "groepcount = 1") in new stack<br>
<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:24]
NoOp("SIP/testcorp7-00000036", "groepcount = 0") in new stack<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:25]
Set("SIP/testcorp7-00000036", "GROUP(40)=40L") in new stack<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:26]
NoOp("SIP/testcorp7-00000036", "This channel is member of : 40L@40") in
new stack<br>
[Nov&nbsp; 5 17:17:31]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:27]
NoOp("SIP/testcorp7-00000036", "groepcount = 1") in new stack<br>
</font><br>
this is the output on a second call :<br>
<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:17]
NoOp("SIP/testcorp6-00000037", "groepcount = 0") in new stack<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:18]
Set("SIP/testcorp6-00000037", "GROUP(40)=40") in new stack<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:19]
NoOp("SIP/testcorp6-00000037", "This channel is member of : 40@40") in
new stack<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:20]
NoOp("SIP/testcorp6-00000037", "groepcount = 1") in new stack<br>
<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:24]
NoOp("SIP/testcorp6-00000037", "groepcount = 1") in new stack<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:25]
Set("SIP/testcorp6-00000037", "GROUP(40)=40L") in new stack<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:26]
NoOp("SIP/testcorp6-00000037", "This channel is member of : 40L@40") in
new stack<br>
[Nov&nbsp; 5 17:17:43]&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [s@sub-CheckChannels:27]
NoOp("SIP/testcorp6-00000037", "groepcount = 2") in new stack<br>
<br>
<br>
Notice that the GROUP_COUNT for 40@40 in the second call is reset to 0
(zero) to be added by 1 again.<br>
<font>Notice that the GROUP_COUNT for 40L@40 in the second call is
added by 1 to result in a total of 2.</font><br>
<br>
Why is the GROUP_COUNT of <font>40@40 not 2 also ??<br>
<br>
<br>
Kind regards,<br>
Jonas.</font><font><br>
</font>
</body>
</html>