Hello list,

using asterisk 1.4.30 and trying GROUP() and GROUP_COUNT() for the first time... Having some troubles.

This the dialplan (using a sub) :

exten => s,n,Set(_custID=${custID})
exten => s,n,GROUP(${custID})
exten => s,n,NoOp(grouppcount = GROUP_COUNT(${custID}))
exten => s,n,GoToIf($[ ${GROUP_COUNT(${custID})} > 2 ]?maxreached)

The CLI shows :

[Jun 5 16:06:26] -- Executing [...@sub-settings:4] Set("IAX2/testlocal-2669", "_custID=40") in new stack [Jun 5 16:06:26] WARNING[10491]: pbx.c:1849 pbx_extension_helper: No application 'GROUP' for extension (sub-settings, s, 5) [Jun 5 16:06:26] == Spawn extension (sub-settings, s, 5) exited non-zero on 'IAX2/testlocal-2669'
[Jun  5 16:06:26]     -- Hungup 'IAX2/testlocal-2669'


So am I using the GROUP()-function the wrong way ??

I'd like to count the number of simultaneous calls of one particular customer (which may have several SIPaccounts). To identify each group, I simply use the customerID...


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

Reply via email to