Hello,
this is a test to add a channel to multiple GROUPs.
this is my dialplan :
exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40)})
exten => s,n,Set(GROUP(40)=40)
exten => s,n,NoOp(This channel is member of : ${GROUP_LIST()})
exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40)})
exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40L)})
exten => s,n,Set(GROUP(40)=40L)
exten => s,n,NoOp(This channel is member of : ${GROUP_LIST()})
exten => s,n,NoOp(groepcount = ${GROUP_COUNT(40L)})
this is the output on a first call :
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:17]
NoOp("SIP/testcorp7-00000036", "groepcount = 0") in new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:18]
Set("SIP/testcorp7-00000036", "GROUP(40)=40") in new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:19]
NoOp("SIP/testcorp7-00000036", "This channel is member of : 4...@40") in
new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:20]
NoOp("SIP/testcorp7-00000036", "groepcount = 1") in new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:24]
NoOp("SIP/testcorp7-00000036", "groepcount = 0") in new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:25]
Set("SIP/testcorp7-00000036", "GROUP(40)=40L") in new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:26]
NoOp("SIP/testcorp7-00000036", "This channel is member of : 4...@40") in
new stack
[Nov 5 17:17:31] -- Executing [...@sub-checkchannels:27]
NoOp("SIP/testcorp7-00000036", "groepcount = 1") in new stack
this is the output on a second call :
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:17]
NoOp("SIP/testcorp6-00000037", "groepcount = 0") in new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:18]
Set("SIP/testcorp6-00000037", "GROUP(40)=40") in new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:19]
NoOp("SIP/testcorp6-00000037", "This channel is member of : 4...@40") in
new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:20]
NoOp("SIP/testcorp6-00000037", "groepcount = 1") in new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:24]
NoOp("SIP/testcorp6-00000037", "groepcount = 1") in new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:25]
Set("SIP/testcorp6-00000037", "GROUP(40)=40L") in new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:26]
NoOp("SIP/testcorp6-00000037", "This channel is member of : 4...@40") in
new stack
[Nov 5 17:17:43] -- Executing [...@sub-checkchannels:27]
NoOp("SIP/testcorp6-00000037", "groepcount = 2") in new stack
Notice that the GROUP_COUNT for 4...@40 in the second call is reset to 0
(zero) to be added by 1 again.
Notice that the GROUP_COUNT for 4...@40 in the second call is added by 1
to result in a total of 2.
Why is the GROUP_COUNT of 4...@40 not 2 also ??
Kind regards,
Jonas.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users