Author Topic: Record not found  (Read 10989 times)

Franklin Garzón

  • Guest
Record not found
« on: November 06, 2007, 11:26:51 PM »
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: [font=Verdana][b]Record not found.[/b][/font]

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

[b]Thanks for your help.[/b]

This is the code:

[font=Verdana][b]For send the update call result:[/b][/font]
    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


[font=Verdana][b]For active the updated record:[/b][/font]
    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


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Record not found
« Reply #1 on: November 07, 2007, 04:10:37 AM »
  • Best Answer
  • Please check this previous post:

    http://www.sggu.com/smf/index.php/topic,2517.0.html

    Franklin Garzón

    • Guest
    Re: Record not found
    « Reply #2 on: November 07, 2007, 04:51:10 PM »
  • Best Answer
  • 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.

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7639
    • Karma: 56330
    Re: Record not found
    « Reply #3 on: November 07, 2007, 09:32:06 PM »
  • Best Answer
  • what is the value of Record_Process on OCS application?

    Franklin Garzón

    • Guest
    Re: Record not found
    « Reply #4 on: November 07, 2007, 09:54:43 PM »
  • Best Answer
  • the value is "yes".

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7639
    • Karma: 56330
    Re: Record not found
    « Reply #5 on: November 07, 2007, 10:16:06 PM »
  • Best Answer
  • So in OCM when the agent hang up the record_status is Retrieved, right?

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7639
    • Karma: 56330
    Re: Record not found
    « Reply #6 on: November 07, 2007, 11:09:31 PM »
  • Best Answer
  • [quote author=Franklin Garzón link=topic=2562.msg9905#msg9905 date=1194472483]
    the value is "yes".
    [/quote]

    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, 01:45:54 PM »
  • Best Answer
  • 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.

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7639
    • Karma: 56330
    Re: Record not found
    « Reply #8 on: November 08, 2007, 03:26:47 PM »
  • Best Answer
  • 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 08, 2007, 05:24:55 PM »
  • Best Answer
  • 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".

    Offline cavagnaro

    • Administrator
    • Hero Member
    • *****
    • Posts: 7639
    • Karma: 56330
    Re: Record not found
    « Reply #10 on: November 08, 2007, 05:58:42 PM »
  • Best Answer
  • 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.