[asterisk-users] Problem with GROUP()
Andres
andres at telesip.net
Sat Jun 5 10:11:10 CDT 2010
On 6/5/2010 10:13 AM, Jonas Kellens wrote:
> 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 ??
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
>
> 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.
More information about the asterisk-users
mailing list