<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>It
seems that I am having a heck of a time explaining my attempts at distributing
ACD Queues to the list. Here's one little problem, that's only a piece of the
puzzle.</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>dundi.conf:</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>180q
=>
global_dundi_q_pbx1,100,IAX,dundi1:${SECRET}@${IPADDR}/${NUMBER},nopartial<BR>180q
=>
global_dundi_q_pbx2,200,IAX,dundi2:${SECRET}@${IPADDR}/${NUMBER},nopartial<BR>180q
=>
global_dundi_q_pbx3,300,IAX,dundi3:${SECRET}@${IPADDR}/${NUMBER},nopartial</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>extensions.conf(PBX1):</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[global_dundi_q_pbx1]<BR>include => one_queue_acd</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[global_dundi_q_pbx2]<BR>[global_dundi_q_pbx3]</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>extensions.conf(PBX2):</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[global_dundi_q_pbx1]<BR></FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[global_dundi_q_pbx2]</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>include => one_queue_acd<BR>[global_dundi_q_pbx3]</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>extensions.conf(PBX3):</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[global_dundi_q_pbx1]<BR></FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[global_dundi_q_pbx2]<BR>[global_dundi_q_pbx3]</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>include => one_queue_acd</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>[one_queue_acd]</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>exten
=> 2944000,1,....</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>Our
polycom phones are registering to a primary Asterisk system. It's ESSENTIAL that
queue calls for a given company go to the SAME box as the phones are registered
to. Queues won't work correctly if they're are split between
servers.</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>If a
phone registered to pbx1 wants to call the queue at 2944000, the call comes into
pbx1. If I do a dundi lookup on that number on the console I get
this:</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2>hestia*CLI> dundi lookup 2944000<A
href="mailto:2944000@180q">@180q</A><BR> 1. 200
IAX2/dundi2:cx8tTjXAoQaPfr9V+C6EWw@xxx.187.142.204/oe_main
(EXISTS)<BR> from 00:0e:0c:a1:90:82, expires in 0
s<BR> 2. 300
IAX2/dundi3:zGFQTD6qixAkSNVpQkviQw@xxx.187.142.232/oe_main
(EXISTS)<BR> from 00:0e:0c:a1:92:6f, expires in 0
s<BR>DUNDi lookup completed in 63 ms</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>If I
do the dundi lookup in the dialplan, all I get is
"IAX2/dundi2:cx8tTjXAoQaPfr9V+C6EWw@xxx.187.142.204/oe_main" with no weight.
DUNDi never returns local matches (with a weight of 100 in this case).
which is a problem. The result I get from the DUNDi lookup in the
dialplan is a string that points to the SECONDARY server. I don't want to
send the call to the secondary server!!! </FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>I
could first do a local lookup with ChanIsAvail and look in the correct context
(global_dundi_q_pbx1 etc) to see if the number is local first. However, this is
tricky as we're trying to maintain a common dialplan between all our servers.
I'd therefore have to probe the system by executing an external command and
pulling the hostname or something just so I know which context to look
in.</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff size=2>I'm
guessing no one has tried to distribute acd queues before...</FONT></SPAN></DIV>
<DIV><SPAN class=159330315-15062006></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=159330315-15062006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN></SPAN> </DIV></DIV></DIV></BODY></HTML>