" /> I cannot filter on Reason with CCA - Genesys CTI User Forum

Author Topic: I cannot filter on Reason with CCA  (Read 6137 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

ReasonGirl

  • Guest
I cannot filter on Reason with CCA
« on: September 12, 2006, 08:46:43 AM »
Advertisement
Dear Genesys Pros,

I found a previous here about how to filter CCA data using Reason code. I tried it in my lab and it does not work.

Here are the settings that I have used:

  ・AUXReason1=PairExists("AUXReason","1")
 ・AUXReason2=PairExists("AUXReason","2")
 ・AUXReason3=PairExists("AUXReason","3")
 ・AUXReason4=PairExists("AUXReason","4")
 ・AUXReason5=PairExists("AUXReason","5")
 ・AUXReason9=PairExists("AUXReason","9")

In this case I would get 0 for all of the data.

I also tried this:

 ・U_AUXReason1=PairExists(UserData,"AUXReason","1")
 ・U_AUXReason2=PairExists(UserData,"AUXReason","2")
 ・U_AUXReason3=PairExists(UserData,"AUXReason","3")
 ・U_AUXReason4=PairExists(UserData,"AUXReason","4")
 ・U_AUXReason5=PairExists(UserData,"AUXReason","5")
 ・U_AUXReason9=PairExists(UserData,"AUXReason","9") 

In this case, I would get the value of Total_Talk_Time with filter equal to Total_Talk_Time without one.
So, this is not the right one as well.

What is going on? I can confirm the reason code in the statserver log (see below!)

Server: [09/08/06 18:44:43] Switch 'Switch_S8700_Fuk', 'EventAgentNotReady'
        ThisDN '8001'
        Agent LoginID '1702'
        This Queue '0'
        CustomerID 'Resources'
        WorkMode 'AgentAuxWork'
        Reasons
                'AUXReason'    '3'
        Extensions
                'ReasonCode'    '3'

The way I am tesitng is to issue a AuxWork with ReasonCode using Genesys Testphone.

What am I doing wrong?

Thank you very much!



[move]*******************
*The Reason(able) Girl*
*******************[/move]

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: I cannot filter on Reason with CCA
« Reply #1 on: September 12, 2006, 01:03:34 PM »
Hi,

try with Total_NOT_Ready_Time filtered with AUXReason1=PairExists("AUXReason","1"), I remember I did so and worked fine.


Offline ecki

  • Sr. Member
  • ****
  • Posts: 329
  • Karma: 8
Re: I cannot filter on Reason with CCA
« Reply #2 on: September 12, 2006, 01:06:40 PM »
Hi ReasonGirl,

Well the filter definitions are correct, at least in the first case. But the problem could be that that event EventAgentNotReady which delivers the reason is not call related event, therefore it has nothing to do with stat Total_talk_time. In this casee the result 0 is correct as there is neither reason code nor userdata attached to the call which could be filtered out.  The filters will work only when the reason will be delivered together with call related events like EventEstablished ,EventReleased ....

E.

ReasonGirl

  • Guest
Re: I cannot filter on Reason with CCA
« Reply #3 on: September 13, 2006, 07:28:08 AM »
Hi Fra
Thank you for an answer.

>try with Total_NOT_Ready_Time filtered with AUXReason1=PairExists("AUXReason","1"), I remember I did so and worked fine.
I tested it.
However, the result was the same.
I would get 0 for all of the data.




ReasonGirl

  • Guest
Re: I cannot filter on Reason with CCA
« Reply #4 on: September 13, 2006, 07:47:48 AM »
Hi ecki

Thank you for an answer.

Is "EventAgentNotReady" a filter not to be applied?

Should I use a filter of what kind of kind?
And where should I apply to?
How do you do it?

Thank you very much!

Offline ecki

  • Sr. Member
  • ****
  • Posts: 329
  • Karma: 8
Re: I cannot filter on Reason with CCA
« Reply #5 on: September 13, 2006, 11:28:59 AM »
Hej RG,


Basically you can use filters for KVP (key value pairs) attached as UserData to Call using function RequesAttachUserData, or Reason KVPs which are mainly used for call unrelated states (e.g. agent not ready, ready, logged in etc. .... states) and are delivered as part of the request like RequestAgentReady, RequestAgentNotReady etc.. You can see this in your example.

Therefore the Fra suggested example should work, but if you wish to use filter AUXReson1, you have to send request ReqeustAgantNotReady with Reason KVP       
'AUXReason'    '1', otherwise use filter AUXReason3=PairExists("AUXReason","3"). Try it again and if this won't work, then certainly the problem is somewhere else.

In this case I would recommend to check StatServer log files.

E.




Marked as best answer by on Today at 06:27:52 PM

Offline Eisa

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: I cannot filter on Reason with CCA
« Reply #6 on: September 13, 2006, 12:43:29 PM »
  • Undo Best Answer
  • Hi,
    which KVP you are using to attached the notready reasons
    in my case it is ReasonCode and I filter useing
    PairExists ("ReasonCode","1")

    ReasonGirl

    • Guest
    Re: I cannot filter on Reason with CCA
    « Reply #7 on: September 19, 2006, 02:00:32 AM »
    Hi,
    Thank you for a reply.
    It was settled by the following setting.

    --------------
    Filter_Name=Reason=1
    --------------

    http://ticketsearch.genesyslab.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=SR223492xml

    Thank you very much!