Page 1 of 1

Two customer on the phone

PostPosted: Fri Aug 15, 2014 9:57 am
by phil_discount
Hello guys!

i've got a little problem.
I make a little change in vicidial.php function all_refresh()
i check every 30 seconds (if agent is waiting for a call) if there is a personal callback, that works fine!

the problem is, sometimes the agent gets two calls.
perhaps the status pause comes to late and he gets a normal outbound call?

does anybody has a good idea what the problem can be?

Code: Select all
function all_refresh()
.....
.....
                            if (privat_timer == '30' && VICIDiaL_closer_blended == '1' && VDRP_stage == 'READY' && MD_channel_look==0 && VD_live_customer_call==0 && VD_live_customer_call==0 && open_dispo_screen==0 && AgentDispoing==0)
                            {
                                //set agent to pause
                                AutoDial_ReSume_PauSe('VDADpause');
                                showDiv('CallBacKsLisTBox');
                                CalLBacKsLisTCheck();
                                hideDiv('NeWManuaLDiaLBox');
                                window.setTimeout("new_callback_call("+array_value[1]+","+array_value[2]+")",1000);
                                delete xmlhttp;
                                return false;
                            }

Re: Two customer on the phone

PostPosted: Sat Aug 16, 2014 6:36 am
by mflorell
The problem is that what you are trying to do is a lot more complex of a problem than a small single code segment will solve. I can think of many places where new code would have to be added to accomplish what you want, and it would probably take several days of debugging just to make sure you caught all of the potential conflicts involved.

Re: Two customer on the phone

PostPosted: Sun Aug 17, 2014 12:54 pm
by phil_discount
perhaps i should check after autodial_resume_pause(VDADpause) if the agents is really in pause mode or if he gets a call while the function is executed?

Re: Two customer on the phone

PostPosted: Sun Aug 17, 2014 8:36 pm
by mflorell
That would certainly be a good thing to check for.