Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: genesys_kumar on December 13, 2021, 07:22:53 PM

Title: Differentiate GWS request
Post by: genesys_kumar 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
}
Title: Re: Differentiate GWS request
Post by: genesys_kumar 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.