06-30-2014 06:04 AM
Hi,
We are using Finesse 10 and we are developing a gadget where one of the options will be to answer the call (should be quite straight forward). However we faced a very strange problem when we execute the requestAction() function. Here is the code that fails:
currentDialog.requestAction(user.getExtension(), finesse.restservices.Dialog.Actions.ANSWER, {
success: function(oResponse) {
debugger
console.log("Success Status :: " + oResponse.status);
console.log("Success Content" + oResponse.content);
},
error: function(oErrorResponse) {
debugger
console.log("on Error Status" + oErrorResponse.status);
console.log("Error content" + oErrorResponse.content);
console.log("Error Type" + oErrorResponse.error.errorType);
console.log("Error Message" + oErrorResponse.error.errorMessage);
}
});
The function finishes at the error branch with error code 401:
HTTP Status 401 - Status report
message: description: This request requires HTTP authentication ().
The agent is logged in in Finesse and I can't understand what would cause this behaviour?
Any thoughts are welcome.
Thanks.
Solved! Go to Solution.
06-30-2014 07:36 AM
Also, did you initialize client services and the User object? See the SampleGadget_Final.js init function.
06-30-2014 07:19 AM
Are you using the correct version of the Finesse javascript library? Are you able to answer the call using the Cisco provided CallControl gadget?
06-30-2014 07:36 AM
Also, did you initialize client services and the User object? See the SampleGadget_Final.js init function.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide