Page 1 of 1

Multiple API

PostPosted: Sun Nov 17, 2019 10:50 pm
by ed123
Hi, I tried to use external_pause to pause the agent and execute pause_code api after it. the first one work and a pause code page appeared for code selection but when the second api execute it pop-up"ERROR: pause_code error - agent is not paused" Please let me know where i miss..

VERSION: 2.14-695a
BUILD: 181116-1133
© 2018 ViciDial Group

Re: Multiple API

PostPosted: Tue Nov 26, 2019 4:01 pm
by williamconley
Your pause code must not initiate until after the "pause" completes its task. In javascript, this means awaiting the response from the AJAX request and executing AFTER the return in the return function. If you just send one after the other, it'll always fail.

Re: Multiple API

PostPosted: Tue Nov 26, 2019 11:04 pm
by ed123
Hi, thanks for the info.. will do that.