Author Topic: Differentiate GWS request  (Read 2760 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Differentiate GWS request
« on: December 13, 2021, 07:22:53 PM »
Hi,

is there a way we can update the value "userAgent" field while sending request from custom code? i just want to differentiate request sent by manual action and from custom code

request sent: genesys.wwe.service.media.setState("voice","Ready", succeeded, failed);

Response like as below:

wwe-service-client-api.js:203 ServiceClientAPI: receiveMessage: {
"event": "agent",
"data": {
"type": "NOT_READY_ACTION_CODE",
"displayName": "Not Ready - Not Ready",
"operationName": "Not Ready"
},
[b]"userAgent": "WWE Server",[/b]
"protocolVersion": 2
}

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Differentiate GWS request
« Reply #1 on: December 14, 2021, 01:16:45 PM »
I'm closing this topic.  I've tried few customization on service-api script file and it didn't work but found an alternate solution to handle the situation.