Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: cgonzalez76 on March 16, 2016, 04:18:47 PM

Title: Error sending RequestProcessed http request
Post by: cgonzalez76 on March 16, 2016, 04:18:47 PM
Hi!

I'm trying to send a RecordProcessed event using OCS http service. The request is:

URI:
http://10.0.0.201/records/7?req=RecordProcessed

Body:
{'GSW_AGENT_REQ_TYPE':'RecordProcessed',
'GSW_RECORD_HANDLE':'7',
'GSW_APPLICATION_ID':'125',
'GSW_CAMPAIGN_NAME':'campaign1',
'GSW_CALLING_LIST':'callinglist1'}

Response:
<HTML>
    <body>400 Bad Request : 104 Invalid call party</body>
</HTML>


What I'm doing wrong?

Thanks in advance.
Title: Re: Error sending RequestProcessed http request
Post by: cavagnaro on March 16, 2016, 04:48:16 PM
Can you post equivalent OCS logs?
Title: Re: Error sending RequestProcessed http request
Post by: cgonzalez76 on March 16, 2016, 05:02:41 PM
Hi!

The log is:

HTTPProxyClient[]::mesage received
'GSW_AGENT_REQ_TYPE' 'RecordProcessed'
'GSW_RECORD_HANDLE' '7'
''GSW_AGENT_REQ_TYPE'' 0
''GWS_USER_EVENT'' 0
'GSW_APPLICATION_ID' 125
Attribute <GSW_TREATMENT> not found
CallDesktop[7:VC000007]::EventUserEvent {
CallDesktop[7:VC000007]::Unable to process event, wrong place dbid: 0
}
HTTPProxyClient[]::message
'GSW_AGENT_REQ_TYPE' 'RecordProcessed'
'GSW_RECORD_HANDLE' '7'
'GSW_ERROR_NUMBER' 104
'GSW_ERROR' 'Invalid call party'
'GSW_APPLICATION_ID' 125
17:01:26.999 sent to  HTTPProxyClient[]

HTTPLog {
request uri: /records/7?req=RecordProcessed
{'GSW_AGENT_REQ_TYPE':'RecordProcessed',
'GWS_USER_EVENT':'RecordProcessed'}
}

HTTPLog {
HTTP/1.1 400 Bad Request
Server: OCS/8.0
Content-Type: text/html;
Cache-control: private
Etag: 1458144086
Content-length: 66

<HTML><body>400 Bad Request : 104 Invalid call party</body></HTML>

What means 'wrong place dbid'? I can't read anything about place dbid in reference manual...

Thanks
Title: Re: Error sending RequestProcessed http request
Post by: cavagnaro on March 16, 2016, 06:12:28 PM
Seems that the agent who is sending the RecordProcess is not the original one who received the interaction. Can you post full OCS/TServer logs for that call?
Title: Re: Error sending RequestProcessed http request
Post by: cgonzalez76 on March 17, 2016, 08:46:40 AM
I'm trying to get the full log.

I'm sending request from a diferent client (rest client) to test the http service, Is not possible? I must execute the request from GAS script? How can I send the agent who received the interaction? I can't see on script the GSW field that contains the place id or agent id...

Thanks.
Title: Re: Error sending RequestProcessed http request
Post by: cavagnaro on March 17, 2016, 01:29:07 PM
Make sure that selected campaing Dialing Mode supports HTTP
Supported dialing modes are Power GVP, Progressive GVP with GVP VXML client, and Push Preview with Orchestration Server
Title: Re: Error sending RequestProcessed http request
Post by: cgonzalez76 on March 17, 2016, 02:54:00 PM
That's the problem. We don't have GVP neither orchestration.

Thanks a lot.