[cisco-voip] UCCX 7.x Same Agent failing
Tanner Ezell
tanner.ezell at gmail.com
Fri Dec 21 18:08:47 EST 2012
Jason,
I've attached some screenshots to help illustrate the following:
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.
Next you need to get the Agent as a User object via the Get User step, by
extension.
Under the connect branch, get the connected agent extension's via the Get
User Info step.
Finally save the agent extension to the session for retrieval later.
HTH
Tanner Ezell
On Fri, Dec 21, 2012 at 3:16 PM, Jason Aarons (AM) <
jason.aarons at dimensiondata.com> wrote:
> ** **
>
> 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.****
>
> ** **
>
> The Set Session Info is failing, but I’m not sure what I’m doing wrong.***
> *
>
> ** **
>
> This is known as same agent/sticky agent.****
>
> ** **
>
> AEF file is attached and below as text as well;****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> /* Simple Queuing Template */****
>
> Start****
>
> /* Press 1 for Santa or hold for a dial by name directory. *
> ***
>
> After Pressin****
>
> g 1 if caller has called before connect them****
>
> to same Agent. */****
>
> Accept (--Triggering Contact--)****
>
> ANI = Get Call Contact Info (--Triggering Contact--, Calling
> Nu****
>
> /* Get Caller ID */****
>
> SessionPrev = Get Session (ANI)****
>
> /* Check to see if there is an existing Session */****
>
> If ((SessionPrev==null)) Then****
>
> True****
>
> /* No existing session, go into Queue */****
>
> Goto QueueCall****
>
> False****
>
> /* Found an existing session, let's get the agent name
> */****
>
> Get Session Info (SessionPrev)****
>
> Set SRS_TempResourceSelectedVar2 = PreviousAgent****
>
> QueueCall:****
>
> Select Resource (--Triggering Contact-- from CSQ)****
>
> Selected****
>
> TEST1:****
>
> Connect (--Triggering Contact-- to
> SRS_TempResourceSelect****
>
> Connected****
>
> /* Assigned agent available */****
>
> Set Session Info (SessionPrev)****
>
> /* Write data to session for next time */****
>
> Failed****
>
> /* Assigned agent not available, go into queue */
> ****
>
> Goto queueLoop****
>
> /* Add Comment */****
>
> Queued****
>
> queueLoop:****
>
> Play Prompt (--Triggering Contact--, QueuePrompt)****
>
> Delay DelayWhileQueued sec****
>
> Goto queueLoop****
>
> End
> ****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> Name Type Value Attributes*
> ***
>
> resourceID String ""****
>
> CSQ String "CSQ" Parameter**
> **
>
> DelayWhileQueued int 30 Parameter**
> **
>
> WelcomePrompt Prompt SP[ICD\ICDWelcome.wav]Parameter**
> **
>
> QueuePrompt Prompt SP[ICD\ICDQueue.wav] Parameter**
> **
>
> SRS_TempResourceSelecteU****
>
> ds****
>
> Ve****
>
> ar****
>
> r2 null****
>
> ANI String ""****
>
> PositionCount int 0****
>
> FinalCount Prompt P[]****
>
> Agent String ""****
>
> SessionPrev Session null****
>
> PreviousAgent User null****
>
> sessANI String ""****
>
> StoreAgentName User null****
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> Resources
> ****
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/66d49abe/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-12-21 at 3.59.46 PM.png
Type: image/png
Size: 151487 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/66d49abe/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-12-21 at 3.59.54 PM.png
Type: image/png
Size: 149472 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/66d49abe/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-12-21 at 4.00.47 PM.png
Type: image/png
Size: 161826 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/66d49abe/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-12-21 at 4.01.08 PM.png
Type: image/png
Size: 197094 bytes
Desc: not available
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/66d49abe/attachment-0003.png>
More information about the cisco-voip
mailing list