Agent screen

VICIdial: "This phone number is at the 24-hour call count limit:"

By TrustanePublished Read from VICIdial svn r4031, r4037, r4038

As VICIdial prints it

This phone number is at the 24-hour call count limit:

Where it appears. In an alert box on the agent screen, written by the page itself.

To the point

The 24-Hour Called Count Limit is switched on for the system and the campaign, and the calls logged for this number, or this lead, over the past day have reached the campaign's limit. The dial was stopped before it left the server.

What it means

This limit has two switches. Enable 24-Hour Called Count Limits in System Settings turns the feature on for the system. Until it is 1, the campaign Detail page does not even show the campaign's four fields for it. Those fields are 24-Hour Called Count Limit Method, Scope, Limit and Override.

Every call VICIdial places adds a row to the vicidial_lead_24hour_calls table with the lead, its list, the time, the number, the phone code and the state. Manual dials are written as MANUAL and dialer calls as AUTO.

On a manual dial, the server looks up the state and country of the number's area code in the phone codes table. Then it counts rows newer than one day:

  • Method PHONE_NUMBER counts rows with the same number and phone code.
  • Method LEAD counts rows with the same lead ID.
  • Scope CAMPAIGN_LISTS keeps only rows whose list belongs to this campaign. SYSTEM_WIDE keeps them all.

The limit is the campaign's 24-Hour Called Count Limit, unless an Override container sets another figure for the number's state. The dial is refused when the count is above zero and at or above that limit.

On a refusal the server marks the lead's called_since_last_reset as D, puts the agent's user on the lead, removes this agent's QUEUE entry for the lead from the hopper and answers NUMBER OVER 24-HOUR CALL LIMIT, TRY AGAIN. The agent screen looks for 24-HOUR CALL LIMIT in that answer and shows this alert.

VICIdial's help for the limit says there is no manual dial override for it.

Causes

  1. The number was already called that many times in the past 24 hours, by agents, by the dialer or both.
  2. The limit was left at 0. The help gives 0 as the default. With a method chosen and the limit at 0, any number or lead with even one call logged in the past day is refused.
  3. Scope is SYSTEM_WIDE, so calls from other campaigns count too.
  4. An Override container lowers the limit for the state of this number's area code.
  5. Method PHONE_NUMBER counts calls to the number from every lead that shares it.

Checks

  1. Campaigns > (campaign) > Detail > 24-Hour Called Count Limit Method. Read Method, Scope, the limit itself and Override, in that order.
  2. Admin > System Settings > Enable 24-Hour Called Count Limits. If it is 0, the campaign fields are hidden and no count is made.
  3. Admin > Settings Containers, the container named in Override. The Override label on the campaign page links to it. Each state line holds a country, a state and the limit for that state.

Fix

  • Wait until the oldest logged call to the number is more than a day old. With a limit of 1 and a call at 11:01, the help says the next call can go out after 11:01 the next day.
  • Raise the limit, or set Method to DISABLED, if the campaign should allow more calls in a day.
  • Use Scope CAMPAIGN_LISTS to count only calls from this campaign's lists.
  • Correct or remove the state line in the Override container that is lower than you meant.

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 12977-12982: this alert, when the answer contains 24-HOUR CALL LIMIT
  2. VICIdial svn r4037, www/agc/vicidial.php, line 12908: the 24-HOUR CALL LIMIT pattern the agent screen tests the answer against
  3. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 1258-1288: Enable 24-Hour Called Count Limits read from system settings
  4. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 4563-4581: the campaign's method, scope, limit and override read for the dial
  5. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 4672-4694: the state and country of the area code looked up, then the check run on a manual dial
  6. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 5499-5500: each manual dial logged as MANUAL in the 24-hour calls table
  7. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 23910-23939: the count: PHONE_NUMBER or LEAD, rows from the last day, CAMPAIGN_LISTS narrowing to the campaign's lists
  8. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 23950-24063: the Override container replacing the limit for a state
  9. VICIdial svn r4037, www/agc/vdc_db_query.php, lines 24065-24090: the refusal: count above zero and at the limit, the lead marked D, the hopper entry removed, the answer
  10. VICIdial svn r4037, bin/AST_VDauto_dial.pl, lines 2399-2400: each dialer call logged as AUTO in the 24-hour calls table
  11. VICIdial svn r4037, extras/MySQL_AST_CREATE_tables.sql, lines 4804-4815: the 24-hour calls table: lead, list, time, number, phone code, state, call type
  12. VICIdial svn r4031, www/vicidial/admin.php, line 29112: the Detail tab of a campaign
  13. VICIdial svn r4031, www/vicidial/admin.php, lines 29641-29686: Method, Scope, Limit and Override, shown only when the system setting is on, the Override label linking to its container
  14. VICIdial svn r4031, www/vicidial/admin.php, line 47514: Enable 24-Hour Called Count Limits in System Settings
  15. VICIdial svn r4038, www/vicidial/admin_header.php, lines 2672-2673: System Settings in the Admin menu
  16. VICIdial svn r4038, www/vicidial/admin_header.php, lines 2755-2757: Settings Containers in the Admin menu
  17. VICIdial svn r4038, www/vicidial/help_documentation.txt, lines 164-167: the help for Method, Limit, Scope and Override, the default of 0 and no manual dial override
  18. VICIdial svn r4038, www/vicidial/help_documentation.txt, line 1218: the help for Enable 24-Hour Called Count Limits

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.