[Home]

Summary:ASTERISK-07806: multiple incoming call to one dynamic queue member
Reporter:Peng Yong (ppyy)Labels:
Date Opened:2006-09-23 04:12:38Date Closed:2011-06-07 14:02:45
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:i use AddQueueMember to add dynamic to a queue.

context utils {
   1001 => {
       AddQueueMember(mhxy|Local/${CALLERIDNUM}@default/n);
   }
   1002 => {
       RemoveQueueMember(mhxy|Local/${CALLERIDNUM}@default/n);
   }
   1005 => {
       goto ${mhxy}-mainmenu|s|1;
   }
}

and there are two problem:

1. show queues give (Unknown) status
2. there are maybe more than one incoming call to one member.

asterisk*CLI> show queues
mhxy         has 0 calls (max 15) in 'rrmemory' strategy (0s holdtime), W:0, C:0, A:1, SL:0.0% within 0s
  Members:
     Local/3002@default/n with penalty 10 (dynamic) (Unknown) has taken no calls yet
  No Callers
Comments:By: Joshua C. Colp (jcolp) 2006-09-26 15:24:25

This is a configuration issue. You need to use groups in order to limit to only 1 simultaneous call at a time. Please seek help on the asterisk-users mailing list or look around for some documentation.

By: Peng Yong (ppyy) 2006-11-26 21:35:41.000-0600

there is still problem after i using GROUP_COUNT:

macro agent-exten( ext ) {
   Set(GROUP()=${ext});
   Set(GROUPCOUNT=${GROUP_COUNT(${ext})});
   if(${GROUPCOUNT}>1) {
       BUSY();
   } else {
       Dial(SIP/${ext});
   }  
}      

it's a production call center that has 40 agents. in most case, it works, but the agent still got multiple incoming call several times one day.

i think the dialplan has no lock. we should add a status to member structure to resolve the problem.

By: Joshua C. Colp (jcolp) 2006-11-26 23:14:41.000-0600

Please see the documentation in 1.4 in the doc directory entitled queues-with-callback-members.txt for help with this, it covers it and has an example that is known to work. In the future please also use the asterisk-users mailing list for help.