<div dir="ltr">Why so many conditionals?<div><br></div><div>If you're simply trying to map a CSQ name to an Extension to call, you could use a HashMap.</div><div><br></div><div>Link for example usage of HashMap</div><div><br></div><div><a href="https://supportforums.cisco.com/t5/contact-center/route-customer-call-to-a-specific-agent-based-on-calling-number/td-p/2176574">https://supportforums.cisco.com/t5/contact-center/route-customer-call-to-a-specific-agent-based-on-calling-number/td-p/2176574</a><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 22, 2018 at 1:45 PM Matthew Loraditch <<a href="mailto:MLoraditch@heliontechnologies.com">MLoraditch@heliontechnologies.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_386132041714286559WordSection1">
<p class="MsoNormal">It’s a sip phone, it lights on a ring or on a call.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I managed to program the nearly 40 nested ifs (broken up into 3 copies of the script) in about 30 minutes. So I guess I’m done for now in that respect. If I could make it more programmatic I might. I’ve done no API work, so not sure if
 that would work or not or be any easier.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0"><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0"><tr><td style="padding:0 10px 0 0"> </td><td align="left" style="padding:10px 0 10px 10px;vertical-align:middle"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0"><tr style="font-size:14.67px;color:#f3800b;font-style:normal;font-weight:700;white-space:nowrap"><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Matthew Loraditch<span style="font-family:remialcxesans">​</span></td></tr><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:14.67px;color:#808080;font-style:normal;font-weight:700;white-space:nowrap"><tr><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif">Sr. Network Engineer</td></tr></table></td></tr><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0"><tr><td align="left" style="padding:10px 0 0;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:14.67px;color:#808080;font-style:normal;font-weight:400;white-space:nowrap"><tr><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"><span style="color:#f3800b">p:</span> <a href="tel:443.541.1518" id="m_386132041714286559LPlnk689713" style="text-decoration:none;color:#808080" target="_blank"><strong style="font-weight:400">443.541.1518</strong></a></td></tr></table></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:14.67px;color:#808080;font-style:normal;font-weight:400;white-space:nowrap"><tr><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"><span style="color:#f3800b">w:</span> <a href="http://www.heliontechnologies.com/" id="m_386132041714286559LPlnk689713" style="text-decoration:none;color:#808080" target="_blank"><strong style="font-weight:400">www.heliontechnologies.com</strong></a></td><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"> | </td><td align="left" style="vertical-align:top;font-family:Calibri,Arial,sans-serif"><span style="color:#f3800b">e:</span> <a href="mailto:MLoraditch@heliontechnologies.com" id="m_386132041714286559LPlnk689713" style="text-decoration:none;color:#808080" target="_blank"><strong style="font-weight:400">MLoraditch@heliontechnologies.com</strong></a></td></tr></table></td></tr><tr><td align="left" style="vertical-align:middle"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal"><tr><td align="left" style="vertical-align:bottom"><img src="cid:image937678.png@71AF2D24.FFE0460B" width="400" height="68" border="0" alt="" style="width:400px;min-width:400px;max-width:400px;height:68px;min-height:68px;max-height:68px;font-size:0"></td></tr><tr><td align="left" style="vertical-align:top"><img src="cid:image248277.png@A513F166.776FAAB5" border="0" alt="" style="font-size:0"></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0"><tr><td align="left" style="padding:10px 0 0;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0"><tr><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;line-height:normal"><tr><td align="center" style="padding:0 3px 0 0;vertical-align:top"><a href="https://facebook.com/heliontech" id="m_386132041714286559LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:image295882.png@20E11F5C.07A39831" width="18" height="18" border="0" title="Facebook" alt="Facebook" style="width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;font-size:12px"></a></td></tr></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;line-height:normal"><tr><td align="center" style="padding:0 3px 0 0;vertical-align:top"><a href="https://twitter.com/heliontech" id="m_386132041714286559LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:image467248.png@A8802044.C331FE6E" width="18" height="18" border="0" title="Twitter" alt="Twitter" style="width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;font-size:12px"></a></td></tr></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;line-height:normal"><tr><td align="center" style="padding:0 3px 0 0;vertical-align:top"><a href="https://www.linkedin.com/company/helion-technologies" id="m_386132041714286559LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:image193657.png@0E86349E.56F89E74" width="18" height="18" border="0" title="LinkedIn" alt="LinkedIn" style="width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;font-size:12px"></a></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Bill Talley <<a href="mailto:btalley@gmail.com" target="_blank">btalley@gmail.com</a>> <br>
<b>Sent:</b> Thursday, March 22, 2018 2:22 PM</p></div></div></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_386132041714286559WordSection1"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><br>
<b>To:</b> Matthew Loraditch <<a href="mailto:MLoraditch@heliontechnologies.com" target="_blank">MLoraditch@heliontechnologies.com</a>><br>
<b>Cc:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> Re: [cisco-voip] Check on calls in queue for a team?<u></u><u></u></p></div></div></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_386132041714286559WordSection1"><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m behind all of the emails but am curious about how the light gets triggered.  Is it a SIP device registered to CUCM or how does that work?    What version of CCX are you running?<u></u><u></u></p></div></div><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_386132041714286559WordSection1">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I’m wondering if you could do a REST call to the CCX database for contacts waiting and parse the XML?  Might be easier to capture the data that way?<u></u><u></u></p>
<div id="m_386132041714286559AppleMailSignature">
<p class="MsoNormal">Sent from a mobile device with very tiny touchscreen input keys. Please excude my typtos.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Mar 22, 2018, at 11:20 AM, Matthew Loraditch <<a href="mailto:MLoraditch@heliontechnologies.com" target="_blank">MLoraditch@heliontechnologies.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">I'm setting up that light system I’ve talked about and the managers wants their lights to come on if any queue assigned to a team has calls waiting. I can't think of any way to do that but iterate through every queue in a very long nested
 if of get reporting statistics steps and anytime we add a queue I will have to modify the script...<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">One team has 22 queues assigned…<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">If anyone has a better idea, I'd love to hear it!<u></u><u></u></p>
<div>
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:0in 7.5pt 0in 0in">
<p class="MsoNormal"><span style="font-size:1.0pt"> <u></u><u></u></span></p>
</td>
<td style="padding:7.5pt 0in 7.5pt 7.5pt">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:#f3800b">Matthew Loraditch</span></b><b><span style="font-family:remialcxesans;color:#f3800b">​</span></b><b><span style="color:#f3800b"><u></u><u></u></span></b></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:gray">Sr. Network Engineer<u></u><u></u></span></b></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:7.5pt 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="color:#f3800b">p:</span><span style="color:gray"> <a href="tel:443.541.1518" target="_blank"><strong><span style="font-family:"Calibri",sans-serif;color:gray;font-weight:normal;text-decoration:none">443.541.1518</span></strong></a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="color:#f3800b">w:</span><span style="color:gray"> <a href="http://www.heliontechnologies.com/" target="_blank"><strong><span style="font-family:"Calibri",sans-serif;color:gray;font-weight:normal;text-decoration:none">www.heliontechnologies.com</span></strong></a><u></u><u></u></span></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="color:gray"> | <u></u><u></u></span></p>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="color:#f3800b">e:</span><span style="color:gray"> <a href="mailto:MLoraditch@heliontechnologies.com" target="_blank"><strong><span style="font-family:"Calibri",sans-serif;color:gray;font-weight:normal;text-decoration:none">MLoraditch@heliontechnologies.com</span></strong></a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="bottom" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:1.0pt"><image905466.png><u></u><u></u></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span style="font-size:1.0pt"><img border="0" width="500" height="240" style="width:5.2083in;height:2.5in" id="m_386132041714286559_x0000_i1025" src="cid:image001.png@01D3C1E9.BBD89370"><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:7.5pt 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 2.25pt 0in 0in">
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:1.0pt"><a href="https://facebook.com/heliontech" target="_blank"><span style="text-decoration:none"><img border="0" width="18" height="18" style="width:.1875in;height:.1875in" id="m_386132041714286559_x0000_i1026" src="cid:image002.png@01D3C1E9.BBD89370" alt="Facebook"></span></a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 2.25pt 0in 0in">
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:1.0pt"><a href="https://twitter.com/heliontech" target="_blank"><span style="text-decoration:none"><image374618.png></span></a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" style="padding:0in 0in 0in 0in">
<table class="m_386132041714286559MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%">
<tbody>
<tr>
<td valign="top" style="padding:0in 2.25pt 0in 0in">
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:1.0pt"><a href="https://www.linkedin.com/company/helion-technologies" target="_blank"><span style="text-decoration:none"><img border="0" width="18" height="18" style="width:.1875in;height:.1875in" id="m_386132041714286559_x0000_i1027" src="cid:image003.png@01D3C1E9.BBD89370" alt="LinkedIn"></span></a><u></u><u></u></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><u></u><u></u></p>
</div>
</blockquote>
</div>
</div></div>

_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
</blockquote></div>