[asterisk-users] GROUP() and queues

Juraj Bednar
Mon, 28 Aug 2006 05:11:30 -0000

Hello,

 I have a call queue with ringall strategy. Users are IAX2 users. I would
like to allow only one parallel call at all. I tried setting incominglimit=1
in iax.conf, but this did not help. I want queue to ring only when operator
is not on line already with someone.

  I tried creating Local channel for operators. I added

members => Local/999@agents
members => Local/998@agents

  to my test queue. Then I defined this in my extensions.conf:

[agents_test]
exten => _9.,1,Set(GROUP()=${EXTEN})
exten => _9.,2,NoOP(Group count is ${GROUP_COUNT()}, group is ${GROUP()},
exten is ${EXTEN})
exten => _9.,3,Dial(IAX2/user${EXTEN},120,rtT)
exten => _9.,4,Goto(exithandling,s-${DIALSTATUS},1)

  Now, when I call queue first time, both of agents (998 and 999) are
ringing. When the call is answered, I dial second time, but both channels'
NoOP results in group count 1. So my question is how to make it work. What
am I doing wrong? Or is there a simpler solution? Is there a reason why
incominglimit=1 in iax.conf does not work?

   I have asterisk 1.2.7 (with security patches). Any help appreciated.


        Thanks,

           Juraj Bednar.
-------------- next part --------------
An HTML attachment was scrubbed...