[asterisk-users] Problem with GROUP()

Jonas Kellens jonas.kellens at telenet.be
Sat Jun 5 09:13:39 CDT 2010


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 [s at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100605/70f94512/attachment.htm 


More information about the asterisk-users mailing list