Author Topic: Differentiate GWS request  (Read 1916 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Differentiate GWS request
« on: December 14, 2021, 04:22:53 AM »
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"
   },
   "userAgent": "WWE Server",
   "protocolVersion": 2
}

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 25
  • Karma: 0
Re: Differentiate GWS request
« Reply #1 on: December 14, 2021, 10: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.