Agent screen

VICIdial: "Your session has been paused"

By TrustanePublished Read from VICIdial svn r4031, r4037, r4038

As VICIdial prints it

Your session has been paused

Where it appears. In an alert box on the agent screen, while the agent is active and waiting for calls. The screen then switches itself to paused.

To the point

The agent screen believed the agent was active and waiting for calls, while the agent's row on the server said PAUSED. After more than ten checks in a row with that mismatch, the screen shows the alert and pauses itself to match the server.

What it means

Every check the agent screen makes comes back with the status stored in the agent's row of the live agents table. The screen compares that status with its own idea of what the agent is doing.

When the row says PAUSED and the screen is waiting for calls, the screen adds one to a counter. Any check that finds something else sets the counter back to zero. Once the counter is above ten, the alert appears, the screen runs its own Pause action and the counter starts over.

By default the screen checks once a second, so the two sides have disagreed for about eleven seconds. A phone with Fast Refresh turned on checks at its Fast Refresh Rate instead, and the wait before the alert changes with it.

The alert does not name who wrote PAUSED into the row. It only reports that the server and the screen stopped agreeing, and it settles the matter in favor of the server.

Causes

  1. The dialer paused the agent for lag. On each pass, the auto-dial process looks on its own server for agents who are not paused and whose row has gone 30 seconds without an update. It sets each of them to PAUSED and marks their agent log entry LAGGED. When that agent's browser reaches the server again, it still believes it is waiting, and the mismatch starts.
  2. A Resume click never reached the database. The screen flips to active the moment the agent clicks Resume, before the server has answered. The request it sends is what changes the row to READY or CLOSER. The screen reads the reply only for the next agent log ID and never confirms the row changed. If that request is lost, the row stays PAUSED while the screen waits for calls.

Checks

  1. Reports > Admin Utilities > Agent LAGGED Report. Look for the agent at the minute of the alert. An entry there points to cause 1. The Admin Utilities link appears at the bottom of the Reports page, and only for level 9 users allowed that page.
  2. Admin > Phones > the agent's phone. Read Fast Refresh and Fast Refresh Rate. Together they set how often the screen checks, and so how long a mismatch lasts before the alert.
  3. Ask the agent what happened just before. An alert roughly ten seconds after clicking Resume, with no LAGGED entry, fits cause 2. A gap during which the screen sent nothing, followed by a LAGGED entry, fits cause 1.

Fix

  • After the alert the agent is paused on both sides. Clicking the paused button resumes the agent, and calls can arrive again.
  • For pauses logged as LAGGED, fix whatever kept the browser from reaching the server. The LAGGED page walks through it.
  • For a lost Resume, look at the path from the agent's computer to the web server. The Resume request and the regular checks are both sent to that one server, so a flaky path hurts both.
  • Leave Fast Refresh off unless you need it. VICIdial's help warns that a lower rate can add load to the system.

Sources

Every statement above about VICIdial was read from its own source code at the revision given. An installed server can run another revision: compare before you rely on a line number.

  1. VICIdial svn r4037, www/agc/vicidial.php, lines 8504-8517: this alert: PAUSED on the server while the screen waits, counted past ten, then the screen pauses itself
  2. VICIdial svn r4037, www/agc/conf_exten_check.php, lines 435-440: the status read from the agent's row of the live agents table on each check
  3. VICIdial svn r4037, www/agc/conf_exten_check.php, line 1609: the status sent back to the agent screen in the check reply
  4. VICIdial svn r4037, www/agc/vicidial.php, lines 6362-6365: one check a second, or the phone's Fast Refresh Rate when Fast Refresh is on
  5. VICIdial svn r4037, www/agc/vicidial.php, lines 4730-4731: Fast Refresh and Fast Refresh Rate read from the phone record
  6. VICIdial svn r4037, www/agc/vicidial.php, lines 14175-14191: Resume sets the screen to waiting before any reply comes back
  7. VICIdial svn r4037, www/agc/vicidial.php, lines 14278-14302: the pause or resume request, and its reply read only for the next agent log ID
  8. VICIdial svn r4037, www/agc/vicidial.php, lines 7034-7035: the paused button that resumes the agent, and the active button that pauses
  9. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 18720-18766: the server side of pause and resume: the status written to the agent's row
  10. VICIdial svn r4037, bin/AST_VDauto_dial.pl, lines 3645-3683: agents not paused whose row is older than the cutoff, their log entry marked LAGGED
  11. VICIdial svn r4037, bin/AST_VDauto_dial.pl, line 3718: those agents set to PAUSED
  12. VICIdial svn r4037, bin/AST_VDauto_dial.pl, lines 5399-5408: the cutoff: 30 seconds before now
  13. VICIdial svn r4031, www/vicidial/admin.php, lines 52913-52916: the Admin Utilities link at the bottom of the Reports page and who sees it
  14. VICIdial svn r4031, www/vicidial/admin.php, line 53982: Agent LAGGED Report on the Admin Utilities page
  15. VICIdial svn r4031, www/vicidial/admin.php, lines 43728-43729: Fast Refresh and Fast Refresh Rate on the phone page
  16. VICIdial svn r4038, www/vicidial/admin_header.php, line 2663: Phones in the Admin menu
  17. VICIdial svn r4038, www/vicidial/help_documentation.txt, lines 1029-1030: the help for Fast Refresh and Fast Refresh Rate, and the load warning

All VICIdial error messages

VICIdial is a registered trademark of Matthew L. Florell. Trustane is an independent host, not affiliated with or endorsed by the VICIdial Group.