Author Topic: Record not found  (Read 1796 times)

Franklin Garzón

  • Guest
Record not found
« on: November 07, 2007, 08:26:51 AM »
Hi people, I have a problem with Toolkit Desktop VB6 (7.1),  when ocs is on mode Progessive I need change the status manualy, for example I have a 3 phone number of a one client, the ocs sendme the firts number (chain_n=0), on this number the uncle of the client answere but the client is on the seccond number (chain_n=1), I need put the call_result on "no answer" because a treatment when the callresult is no answere giveme the next chain_n.   But when send a "RecordProcessed" ocs sendme the error: Record not found.

Note: I put on: evironment-applications-oc_server (options/ocserver: record_processed = yes)

Thanks for your help.

This is the code:

For send the update call result:
    Dim OUTUD As CTKVList
    Set OUTUD = New CTKVList
   
    Dim OUTP As CTKVPair
    Set OUTP = New CTKVPair
   
    OUTP.key = "GSW_AGENT_REQ_TYPE"
    OUTP.Type = CKVTypeString
    OUTP.StringValue = "RecordProcessed"
    OUTUD.AddTail OUTP
   
    OUTP.key = "GSW_APPLICATION_ID"
    OUTP.Type = CKVTypeNum
    OUTP.NumValue = 136
    OUTUD.AddTail OUTP
   
   
    OUTP.key = "GSW_CALLING_LIST"
    OUTP.Type = CKVTypeString
    OUTP.StringValue = "Calling List TAO"
    OUTUD.AddTail OUTP
       
    OUTP.key = "GSW_CAMPAIGN_NAME"
    OUTP.Type = CKVTypeString
    OUTP.StringValue = "Campaign_Renewals"
    OUTUD.AddTail OUTP
   
    OUTP.key = "GSW_CALL_RESULT"
    OUTP.Type = CKVTypeNum
    OUTP.NumValue = 33
    OUTUD.AddTail OUTP
   
       
    Dim i As Integer
    Dim gswRH As String
    For i = 0 To PublicCTKVListCallNow.GetCount()
        If PublicCTKVListCallNow.Get(i).key = "GSW_RECORD_HANDLE" Then
            gswRH = PublicCTKVListCallNow.Get(i).NumValue
        End If
       
    Next
       
    OUTP.key = "GSW_RECORD_HANDLE"
    OUTP.Type = CKVTypeNum
    OUTP.StringValue = gswRH
    OUTUD.AddTail OUTP
   
    Dim EVENI As TEventInfo
    Set EVENI = New TEventInfo
    EVENI.UserData = OUTUD
    Me.TExtension1.TSendUserEvent EVENI


For active the updated record:
    Dim OUTUD As CTKVList
    Set OUTUD = New CTKVList
   
    Dim OUTP As CTKVPair
    Set OUTP = New CTKVPair
   
    OUTP.key = "GSW_AGENT_REQ_TYPE"
    OUTP.Type = CKVTypeString
    OUTUD.AddTail OUTP
   
    OUTP.key = "GSW_APPLICATION_ID"
    OUTP.Type = CKVTypeNum
    OUTP.NumValue = 136
    OUTUD.AddTail OUTP
       
    OUTP.key = "GSW_CAMPAIGN_NAME"
    OUTP.Type = CKVTypeString
    OUTP.StringValue = "Campaign_Renewals"
    OUTUD.AddTail OUTP
   
    Dim i As Integer
    Dim gswRH As String
    For i = 0 To PublicCTKVListCallNow.GetCount()
        If PublicCTKVListCallNow.Get(i).key = "GSW_RECORD_HANDLE" Then
            gswRH = PublicCTKVListCallNow.Get(i).NumValue
        End If
       
    Next
       
    OUTP.key = "GSW_RECORD_HANDLE"
    OUTP.Type = CKVTypeNum
    OUTP.StringValue = gswRH
    OUTUD.AddTail OUTP
   
    Dim EVENI As TEventInfo
    Set EVENI = New TEventInfo
    EVENI.UserData = OUTUD
    Me.TExtension1.TSendUserEvent EVENI


Online cavagnaro

  • Hero Member
  • *****
  • Posts: 3110
  • Karma: -954
Re: Record not found
« Reply #1 on: November 07, 2007, 01:10:37 PM »

Franklin Garzón

  • Guest
Re: Record not found
« Reply #2 on: November 08, 2007, 01:51:10 AM »
Thanks, I'm test with:

-agent is talking
-agent is on AfterCallWork
-All time the agent is on Ready

but OCS send me, "Record not found" yet.

Online cavagnaro

  • Hero Member
  • *****
  • Posts: 3110
  • Karma: -954
Re: Record not found
« Reply #3 on: November 08, 2007, 06:32:06 AM »
what is the value of Record_Process on OCS application?

Franklin Garzón

  • Guest
Re: Record not found
« Reply #4 on: November 08, 2007, 06:54:43 AM »
the value is "yes".

Online cavagnaro

  • Hero Member
  • *****
  • Posts: 3110
  • Karma: -954
Re: Record not found
« Reply #5 on: November 08, 2007, 07:16:06 AM »
So in OCM when the agent hang up the record_status is Retrieved, right?

Online cavagnaro

  • Hero Member
  • *****
  • Posts: 3110
  • Karma: -954
Re: Record not found
« Reply #6 on: November 08, 2007, 08:09:31 AM »
the value is "yes".


Did you stop and start OCS after the change to "yes"?

Franklin Garzón

  • Guest
Re: Record not found
« Reply #7 on: November 08, 2007, 10:45:54 PM »
Yes, I restart the OCS service, and when the agent si Hang Up the genesys return me the information of the call, such as: phone number, agent id, record_id, campaign name, etc.

Online cavagnaro

  • Hero Member
  • *****
  • Posts: 3110
  • Karma: -954
Re: Record not found
« Reply #8 on: November 09, 2007, 12:26:47 AM »
Yes of course as a new event was triggered, however, what is the status of the record on OCM?

Franklin Garzón

  • Guest
Re: Record not found
« Reply #9 on: November 09, 2007, 02:24:55 AM »
The first status is "Ready" for the chain 0,1 y 2, in few secconds the status auto-change to "Retrive" for the chain 0 and in this moment OCS send me the information of the call to agent desktop, and when the agent answere the status call is "retrive" yet, but when the agent hung-up the status call is "Udated" with the call result "answere".

Online cavagnaro

  • Hero Member
  • *****
  • Posts: 3110
  • Karma: -954
Re: Record not found
« Reply #10 on: November 09, 2007, 02:58:42 AM »
Ok that means that something (agent or application) is closing the record and that is why anything else you do after doesn't work as Record_Handle is no longer available.

Check that after you agent hangs up he is on WrapUp or AfterCallWork status, check on OCS that outbound_release_action = soft_call_work.

If agent puts on Ready by manual action or by software (PBX or CTI) you will not be able to do anything more with that record.