[asterisk-users] Problem with GROUP()
Andres
andres at telesip.net
Sat Jun 5 20:14:10 CDT 2010
On 6/5/2010 11:37 AM, 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()
GROUP is not an application. You cannot call it like that. Try to
follow the logic in the below example. If the count is less that 4 it
will jump to priority 5 and do whatever you want. If the count is 4 or
more it goes to busy.
exten => _01XXXXXXXXXX,1,Set(GROUP()=trunk1)
exten => _01XXXXXXXXXX,2,NoOP(Group Count = ${GROUP_COUNT(trunk1)} for
Group = trunk1)
exten => _01XXXXXXXXXX,3,GotoIF($[${GROUP_COUNT(trunk1)} < 4]?5)
exten => _01XXXXXXXXXX,4,Busy(1)
Andres
http://www.neuroredes.com
> exten => s,n,NoOp(groepcount = GROUP_COUNT(${custID}))
>
> The CLI shows :
>
> [Jun 5 16:50:04] -- Executing [s at sub-settings:5]
> Set("IAX2/testlocal-128", "GROUP()=40") in new stack
> [Jun 5 16:50:04] -- Executing [s at 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
More information about the asterisk-users
mailing list