[cisco-voip] UCCX 7.x Same Agent failing

Jason Aarons (AM) jason.aarons at dimensiondata.com
Fri Dec 21 17:16:56 EST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/e94ae51a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: santa-same-agent-122112.aef
Type: application/octet-stream
Size: 22528 bytes
Desc: santa-same-agent-122112.aef
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20121221/e94ae51a/attachment.obj>


More information about the cisco-voip mailing list