Page 1 of 1

Modify GChrome Card Color - Calls in queue

PostPosted: Thu Jan 17, 2019 6:14 am
by vicinew
Hi all,
i'm using VICIDial VERSION: 2.14-580a BUILD: 161205-1650. In the agent screen, when some calls in queue are waiting, appears the advice "Calls in queu". In the same time I need to modify the color of GChrome Card. Is it possible?
Thx

Re: Modify GChrome Card Color - Calls in queue

PostPosted: Thu Jan 17, 2019 6:17 pm
by williamconley
Of course it's possible, but is that a value in PHP or javascript, or an object in your browser or the DOM? I'm going to just go with "the DOM" for now ...

Every second the agent screen sends a request for information to the server using AJAX. It gets a response and that response will contain the "calls in queue" value (likely all the time, but perhaps only if there are actually calls in queue). With the response, javascript updates values visible to the agent.

You'll need to decide how to jump into that AJAX response process and add another value to change when calls in queue is altered.