<div>Jason,</div><div><br></div><div>I've attached some screenshots to help illustrate the following:</div><div><br></div><div>First you need to actually pull data from your Session with the Get Session Info step. I recommend storing the agent extension instead of a User object so I have based the following on that premise.</div>
<div><br></div><div>Next you need to get the Agent as a User object via the Get User step, by extension. </div><div><br></div><div>Under the connect branch, get the connected agent extension's via the Get User Info step.</div>
<div><br></div><div>Finally save the agent extension to the session for retrieval later.</div><div><br></div><div>HTH</div><div><br></div><div>Tanner Ezell</div><div><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 3:16 PM, Jason Aarons (AM) <span dir="ltr"><<a href="mailto:jason.aarons@dimensiondata.com" target="_blank">jason.aarons@dimensiondata.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’m working on a script that does a Get Session/Set Session Info to determine if the caller has called before. If they have called within the last 30 minutes I want to connect them to same UCCX agent.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The Set Session Info is failing, but I’m not sure what I’m doing wrong.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">This is known as same agent/sticky agent.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">AEF file is attached and below as text as well;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"> /* Simple Queuing Template */<u></u><u></u></p><p class="MsoNormal"> Start<u></u><u></u></p>
<p class="MsoNormal"> /* Press 1 for Santa or hold for a dial by name directory. <u></u><u></u></p><p class="MsoNormal"> After Pressin<u></u><u></u></p><p class="MsoNormal"> g 1 if caller has called before connect them<u></u><u></u></p>
<p class="MsoNormal"> to same Agent. */<u></u><u></u></p><p class="MsoNormal"> Accept (--Triggering Contact--)<u></u><u></u></p><p class="MsoNormal"> ANI = Get Call Contact Info (--Triggering Contact--, Calling Nu<u></u><u></u></p>
<p class="MsoNormal"> /* Get Caller ID */<u></u><u></u></p><p class="MsoNormal"> SessionPrev = Get Session (ANI)<u></u><u></u></p><p class="MsoNormal"> /* Check to see if there is an existing Session */<u></u><u></u></p>
<p class="MsoNormal"> If ((SessionPrev==null)) Then<u></u><u></u></p><p class="MsoNormal"> True<u></u><u></u></p><p class="MsoNormal"> /* No existing session, go into Queue */<u></u><u></u></p>
<p class="MsoNormal"> Goto QueueCall<u></u><u></u></p><p class="MsoNormal"> False<u></u><u></u></p><p class="MsoNormal"> /* Found an existing session, let's get the agent name */<u></u><u></u></p>
<p class="MsoNormal"> Get Session Info (SessionPrev)<u></u><u></u></p><p class="MsoNormal"> Set SRS_TempResourceSelectedVar2 = PreviousAgent<u></u><u></u></p><p class="MsoNormal"> QueueCall:<u></u><u></u></p>
<p class="MsoNormal"> Select Resource (--Triggering Contact-- from CSQ)<u></u><u></u></p><p class="MsoNormal"> Selected<u></u><u></u></p><p class="MsoNormal"> TEST1:<u></u><u></u></p>
<p class="MsoNormal"> Connect (--Triggering Contact-- to SRS_TempResourceSelect<u></u><u></u></p><p class="MsoNormal"> Connected<u></u><u></u></p><p class="MsoNormal"> /* Assigned agent available */<u></u><u></u></p>
<p class="MsoNormal"> Set Session Info (SessionPrev)<u></u><u></u></p><p class="MsoNormal"> /* Write data to session for next time */<u></u><u></u></p><p class="MsoNormal"> Failed<u></u><u></u></p>
<p class="MsoNormal"> /* Assigned agent not available, go into queue */<u></u><u></u></p><p class="MsoNormal"> Goto queueLoop<u></u><u></u></p><p class="MsoNormal"> /* Add Comment */<u></u><u></u></p>
<p class="MsoNormal"> Queued<u></u><u></u></p><p class="MsoNormal"> queueLoop:<u></u><u></u></p><p class="MsoNormal"> Play Prompt (--Triggering Contact--, QueuePrompt)<u></u><u></u></p>
<p class="MsoNormal"> Delay DelayWhileQueued sec<u></u><u></u></p><p class="MsoNormal"> Goto queueLoop<u></u><u></u></p><p class="MsoNormal"> End<br clear="all"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
Name Type Value Attributes<u></u><u></u></p><p class="MsoNormal"> resourceID String ""<u></u><u></u></p><p class="MsoNormal"> CSQ String "CSQ" Parameter<u></u><u></u></p>
<p class="MsoNormal"> DelayWhileQueued int 30 Parameter<u></u><u></u></p><p class="MsoNormal"> WelcomePrompt Prompt SP[ICD\ICDWelcome.wav]Parameter<u></u><u></u></p>
<p class="MsoNormal"> QueuePrompt Prompt SP[ICD\ICDQueue.wav] Parameter<u></u><u></u></p><p class="MsoNormal"> SRS_TempResourceSelecteU<u></u><u></u></p><p class="MsoNormal"> ds<u></u><u></u></p>
<p class="MsoNormal"> Ve<u></u><u></u></p><p class="MsoNormal"> ar<u></u><u></u></p><p class="MsoNormal"> r2 null<u></u><u></u></p>
<p class="MsoNormal"> ANI String ""<u></u><u></u></p><p class="MsoNormal"> PositionCount int 0<u></u><u></u></p><p class="MsoNormal"> FinalCount Prompt P[]<u></u><u></u></p>
<p class="MsoNormal"> Agent String ""<u></u><u></u></p><p class="MsoNormal"> SessionPrev Session null<u></u><u></u></p><p class="MsoNormal"> PreviousAgent User null<u></u><u></u></p>
<p class="MsoNormal"> sessANI String ""<u></u><u></u></p><p class="MsoNormal"> StoreAgentName User null<u></u><u></u></p><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""><br clear="all">
</span><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
<u></u> <u></u></p><p class="MsoNormal"> Resources<br clear="all"><u></u><u></u></p></div></div><br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">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><br>
<br></blockquote></div><br></div>