cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
685
Views
0
Helpful
2
Replies

Finesse 10 requestAction ANSWER fails

atanasmatev
Level 1
Level 1

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

dlender
Level 6
Level 6

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

dlender
Level 6
Level 6

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

dlender
Level 6
Level 6

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