Author Topic: Error sending RequestProcessed http request  (Read 3693 times)

Offline cgonzalez76

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Error sending RequestProcessed http request
« 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7640
  • Karma: 56330
Re: Error sending RequestProcessed http request
« Reply #1 on: March 16, 2016, 04:48:16 PM »
Can you post equivalent OCS logs?

Offline cgonzalez76

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Error sending RequestProcessed http request
« Reply #2 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

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7640
  • Karma: 56330
Re: Error sending RequestProcessed http request
« Reply #3 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?

Offline cgonzalez76

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Error sending RequestProcessed http request
« Reply #4 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7640
  • Karma: 56330
Re: Error sending RequestProcessed http request
« Reply #5 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

Offline cgonzalez76

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Error sending RequestProcessed http request
« Reply #6 on: March 17, 2016, 02:54:00 PM »
That's the problem. We don't have GVP neither orchestration.

Thanks a lot.