Agent API Pause Not Working?

Discussions about development of VICIDIAL and astGUIclient

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

Agent API Pause Not Working?

Postby developerdan » Tue Feb 22, 2022 8:41 am

Hi Chaps,
This might be a long one (sorry).

I recently upgraded a client to svn version 3558 from a very old version (2962).
(This is on centos 7 and php7 installed with the remi repos).

Vicidial works 100% fine but the agent API seems to not be allowing us to pause calls.

This is an issue I reported back in 2018 and we had a make-shift fix suggested that seemed to work on that version.
( this thread : http://www.eflo.net/VICIDIALforum/viewtopic.php?t=38565.)

With that fix applied the API pause works but there is a side effect; after the first api pause, the next call that goes to the native dispo screen will default the pause tick box to ticked.

This is a minor issue in the grand scheme but when agents are normally taking 2-3 seconds a call and now they take ~10 seconds the time adds up over an 8 hour shift.

So im hoping someone might have a better fix for us than the previous one for the new version as we would like the agent api pause to work as intended if possible.

I currently have a test server setup so any tests, trials etc are possible.

Any help is greatly appreciated.
developerdan
 
Posts: 37
Joined: Thu Apr 18, 2013 3:53 am

Re: Agent API Pause Not Working?

Postby developerdan » Thu Feb 24, 2022 10:11 am

I think I found a fix. Possibly this is something you might want to include in future versions?

Here is where the fix goes :

Code: Select all
                                                    if (APIPausE.length > 4)
                                                        {
                                                        var temp_APIPausE_message='';
                                                        var APIPausE_array = APIPausE.split("!");
                                                        if (APIPausE_ID == APIPausE_array[1])
                                                                {
                                                                temp_APIPausE_message='ALREADY-RECEIVED';
                                                                //alert("PAUSE ALREADY RECEIVED");
                                                                if(VDRP_stage=='READY')document.vicidial_form.DispoSelectStop.checked=false;
                                                                else document.vicidial_form.DispoSelectStop.checked=true;
                                                                }
                                                        else
                                                                {
                                                                APIPausE_ID = APIPausE_array[1];
                                                                if (APIPausE_array[0]=='PAUSE')


Its these two lines :
Code: Select all
if(VDRP_stage=='READY')document.vicidial_form.DispoSelectStop.checked=false;
else document.vicidial_form.DispoSelectStop.checked=true;


There might need to be something here to handle manual dial / callbacks though we havent noticed any issues in testing so far.
So far at least this has made the pause from API reliable and removed the side effect of the pause tickbox being ticked when it shouldnt be on the next call.
developerdan
 
Posts: 37
Joined: Thu Apr 18, 2013 3:53 am

Re: Agent API Pause Not Working?

Postby mflorell » Thu Feb 24, 2022 5:43 pm

Please post a "diff -u" patch file against the latest svn/trunk revision to the Issue Tracker for this if possible.
mflorell
Site Admin
 
Posts: 18010
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Development

Who is online

Users browsing this forum: No registered users and 7 guests

cron