Agent screen

VICIdial: "Campaign not active, please try again"

By TrustanePublished Read from VICIdial svn r4031, r4037, r4038

As VICIdial prints it

Campaign not active, please try again

Where it appears. On the campaign login form of the agent screen, in bold above the User Login field.

To the point

The user and password were right and the user's group may use the campaign, but no campaign with that ID has Active set to Y. Switch the campaign on, or correct the campaign ID the login was sent with.

What it means

The campaign login runs its tests in a fixed order. First the user and the password. Then the Allowed Campaigns of the user's group. Then a count: the campaigns with this ID whose Active is Y. When the count is zero, the login form comes back with this message above it.

So the message carries two facts. The user is in order, and the campaign is either switched off or not on the system under that ID.

Causes

  1. Active is N on the campaign. VICIdial's help for the field says that when a campaign is inactive, no one can log into it.
  2. No campaign has that ID. The count is by ID. A deleted campaign and a mistyped ID get the same message as a campaign that is switched off.
  3. The ID did not come from the list. The Campaign list on the login form holds active campaigns only, so an agent cannot pick an inactive one there. The ID reaches the test another way: the agent screen also takes the campaign from the address it was opened with, as a saved link or a bookmark can carry it.
  4. The campaign changed after the form loaded. A list drawn while the campaign was active still offers it once the campaign is switched off or deleted.

Checks

  1. Campaigns > the campaign. Active is on both the Basic View and the Detail View.
  2. If the campaign is not in the Campaigns list at all, the ID is wrong. Look at the address the agent opens: a campaign passed in it is used as given.
  3. Have the agent reload the login page and choose the campaign from the list. A campaign that is off will not be in it.

Fix

  • When agents should be working that campaign, set Active to Y and submit. The test is made again at each login.
  • When the campaign is meant to stay off, tell the agents which campaign to use, and take the old ID out of any saved link.
  • When the ID was deleted or renamed, change the links to the ID that exists.

Saving a campaign with Active at N does not remove the agents already logged in to it. The campaign screen has a separate link for that, LOG ALL AGENTS OUT OF THIS CAMPAIGN.

On a Trustane server

In the console, a campaign's calling checks end with a plain sentence when the campaign is inactive and not dialing.

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 1831-1840: the user and password tested first
  2. VICIdial svn r4037, www/agc/vicidial.php, lines 3017-3033: the Allowed Campaigns test that comes second
  3. VICIdial svn r4037, www/agc/vicidial.php, lines 3063-3070: the count of campaigns with this ID and Active set to Y
  4. VICIdial svn r4037, www/agc/vicidial.php, lines 4322-4327: this message, printed when that count is zero
  5. VICIdial svn r4037, www/agc/vicidial.php, line 1373: the Campaign list of the login form reads active campaigns only
  6. VICIdial svn r4037, www/agc/vicidial.php, lines 797-798: the campaign taken from the request the page was opened with
  7. VICIdial svn r4031, www/vicidial/admin.php, line 29170: Active on the campaign Detail View
  8. VICIdial svn r4031, www/vicidial/admin.php, line 32909: Active on the campaign Basic View
  9. VICIdial svn r4031, www/vicidial/admin.php, line 19360: the campaign save: one update of the campaign, no live agent removed
  10. VICIdial svn r4031, www/vicidial/admin.php, line 32659: the LOG ALL AGENTS OUT OF THIS CAMPAIGN link
  11. VICIdial svn r4038, www/vicidial/help_documentation.txt, line 128: the help for the campaign Active field
  12. Trustane console: the calling checks say when a campaign is inactive

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.