Multiple API

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Multiple API

Postby ed123 » Sun Nov 17, 2019 10:50 pm

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
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm

Re: Multiple API

Postby williamconley » Tue Nov 26, 2019 4:01 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Multiple API

Postby ed123 » Tue Nov 26, 2019 11:04 pm

Hi, thanks for the info.. will do that.
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 82 guests