cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
452
Views
0
Helpful
2
Replies
Highlighted
Beginner

Finesse 10 requestAction ANSWER fails

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Contributor

Also, did you initialize client services and the User object? See the SampleGadget_Final.js init function.

View solution in original post

2 REPLIES 2
Highlighted
Frequent Contributor

Are you using the correct version of the Finesse javascript library? Are you able to answer the call using the Cisco provided CallControl gadget?

Highlighted
Frequent Contributor

Also, did you initialize client services and the User object? See the SampleGadget_Final.js init function.

View solution in original post