I hope that this simple example will clarify things a bit, so is an example of a test; trying to count incoming and outgoing in one trunk.
exten => _9.,n,Set(GROUP(${TRUNK})=${EXTEN) Example: exten => _9.,n,Set(GROUP(COMP1)=${EXTEN:1}) exten => _9.,n,Set(GROUP(COMP2)=${CALLERID(num)}) exten => _9.,n,NoOp(Group Count COMP1 is: ${GROUP_COUNT(${EXTEN:1})}) exten => _9.,n,NoOp(Group Count COMP2 is: ${GROUP_COUNT(${CALLERID(num)})}) exten => _9.,n,NoOp(Group List is: ${GROUP_LIST()}) exten => _9.,n,GotoIf($[${GROUP_COUNT(COMP1)}>5]?busy) exten => _9.,n,GotoIf($[${GROUP_COUNT(COMP2)}>5]?busy) exten => _9.,n,NoOp(Group Match Count is: ${GROUP_MATCH_COUNT(70*)}) -- Executing [9...@internal:2] Set("SIP/700-09cf8038", "GROUP(COMP1)=701") in new stack -- Executing [9...@internal:3] Set("SIP/700-09cf8038", "GROUP(COMP2)=700") in new stack -- Executing [9...@internal:4] NoOp("SIP/700-09cf8038", "Group Count COMP1 is: 1") in new stack -- Executing [9...@internal:5] NoOp("SIP/700-09cf8038", "Group Count COMP2 is: 1") in new stack -- Executing [9...@internal:6] NoOp("SIP/700-09cf8038", "Group List es: 7...@comp1 7...@comp2") in new stack -- Executing [9...@internal:7] GotoIf("SIP/700-09cf8038", "0?busy") in new stack -- Executing [9...@internal:8] GotoIf("SIP/700-09cf8038", "0?busy") in new stack -- Executing [9...@internal:9] NoOp("SIP/700-09cf8038", "Group Match Count is: 2") in new stack On Saturday 05 June 2010 12:37:47 Jonas Kellens wrote: > I made your adjustments, but still the same result . > > dialplan : > > exten => s,n,Set(GROUP()=${custID}) > exten => s,n,NoOp(This channel is member of group: ${GROUP()}) > exten => s,n,GROUP() > exten => s,n,NoOp(groepcount = GROUP_COUNT(${custID})) > > The CLI shows : > > [Jun 5 16:50:04] -- Executing [...@sub-settings:5] > Set("IAX2/testlocal-128", "GROUP()=40") in new stack > [Jun 5 16:50:04] -- Executing [...@sub-settings:6] > NoOp("IAX2/testlocal-128", "This channel is member of group: 40") in new > stack > [Jun 5 16:50:04] WARNING[10555]: pbx.c:1849 pbx_extension_helper: No > application 'GROUP' for extension (sub-settings, s, 7) > [Jun 5 16:50:04] == Spawn extension (sub-settings, s, 7) exited > non-zero on 'IAX2/testlocal-128' > [Jun 5 16:50:04] -- Hungup 'IAX2/testlocal-128' > > > With GROUP() I want to increase the number of calls for this "channel". > How do I increase the number of GROUP() ?? > > > Jonas. > > On 06/05/2010 05:11 PM, Andres wrote: > > Yes, you should do something like: > > > > exten => s,n,Set(GROUP()=${custID}) > > > > GROUP in itself is not an application. Thats why you are getting "No > > application 'GROUP' for extension". > > > > > > > > Andres > > http://www.neuroredes.com -- _____________________________________________________________________ -- 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