<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>Hello Dhaval (and others),</DIV>
<DIV> </DIV>
<DIV>As far as I can tell, realtime queue will not solve my problem. I can
statically define the same queue with the same members on two machines as well.
I was planning to use realtime anyway. The issue is the actual queueing of the
incoming calls.</DIV>
<DIV> </DIV>
<DIV>Let’s say I define the queue "IT-support" with members Local/100 and
Local/101 on both machines. The first call comes in and is distributed by
Kamailio to Asterisk A, and answered by 100. The next call comes in to Asterisk
B, and is answered by 101. At this point, both members are busy. Call 3 now
comes in and is sent to Asterisk A, where it waits for a free member. Call 4
comes in and is also sent to Asterisk A, as is Call 5. Then call 6 is sent to
Asterisk B. At this point 100 finishes his call and becomes free. Which call is
delivered to 100? As far as I can tell, that’s a 50/50 chance between call 3 and
call 6. This is not correct behaviour! Call 6 should wait until calls 3, 4 and 5
(from the other server) have all been delivered.</DIV>
<DIV> </DIV>
<DIV>In the example above: When call 3 comes in, Asterisk A may even try to
deliver it to 101, who gets call waiting indication. He will now have two
simultaneous calls from the same queue!</DIV>
<DIV> </DIV>
<DIV>I have not found any way to share information about calls waiting in the
queue, wait times, member states and so on between the two servers.</DIV>
<DIV> </DIV>
<DIV>Unless you guys know of a way, I think I'm going to have to ask the
customer to change their design to master-slave (with failover) instead of
load-balanced.</DIV>
<DIV> </DIV>
<DIV>With kind regards,</DIV>
<DIV>Pan</DIV>
<DIV> </DIV>
<DIV>> Hello Pan,</DIV>
<DIV>> </DIV>
<DIV>> You can user DB for this just make real time configuration of Queue
and make</DIV>
<DIV>> all asterisk server connected to Same DB if more load then use
replication</DIV>
<DIV>> for different server on DB, also So that Quque name should be same for
all</DIV>
<DIV>> server and asterisk can call same agent.</DIV>
<DIV>> </DIV>
<DIV>> you didnot mentioned that which purpose youwere use queue other wise i
can</DIV>
<DIV>> give answer in better way.</DIV>
<DIV>> </DIV>
<DIV>> regards</DIV>
<DIV>> Dhaval</DIV>
<DIV>> </DIV>
<DIV>> On Fri, Jan 7, 2011 at 5:08 PM, Pan B. Christensen <pan at
ibidium.no> wrote:</DIV>
<DIV>></DIV>
<DIV>>> Hello,</DIV>
<DIV>>></DIV>
<DIV>>> I have been asked to implement the following design:</DIV>
<DIV>>></DIV>
<DIV>>> Load-balanced Kamailio servers handling registrations and
routing.</DIV>
<DIV>>> Load-balanced asterisk feature servers handling voicemail and
other things</DIV>
<DIV>>> Kamailio cannot do. Plus several load-balanced gateways, but they
are not</DIV>
<DIV>>> relevant to my question.</DIV>
<DIV>>></DIV>
<DIV>>> All this is working fine.</DIV>
<DIV>>></DIV>
<DIV>>> I've now been asked to start implementing calling queues, and my
question</DIV>
<DIV>>> is this:</DIV>
<DIV>>> How can I implement the same queue on multiple Asterisk
servers?</DIV>
<DIV>>></DIV>
<DIV>>> Let's say that 10 people call the same queue. These calls would
then</DIV>
<DIV>>> currently be distributed 5 to Asterisk A and 5 to Asterisk B. How
can I make</DIV>
<DIV>>> Asterisk A respect the 5 people queued on the other server and
vice versa?</DIV>
<DIV>>></DIV>
<DIV>>> Will the customer need to change their design to make the feature
servers</DIV>
<DIV>>> master-slave with failover instead of load-balanced?</DIV>
<DIV>>></DIV>
<DIV>>> Mvh</DIV>
<DIV>>> Pan</DIV>
<DIV> </DIV></DIV></DIV></BODY></HTML>