Skip to main content

Campaign Scheduling

An Active campaign dials only inside its schedule: between its start and end dates, on the enabled weekdays, during the enabled hours, all read in the campaign's own timezone. Outside the window the campaign keeps its Running status but places no calls.

Purpose​

Use the Schedule tab of the campaign form to keep calls inside legal and polite calling hours for the people you call.

Prerequisites​

  • A campaign in Draft or Paused status (Running campaigns cannot be edited). See Campaign Manager.

Set the schedule​

Who can do this: Owner and PBX Admin.

  1. Open Auto Dialer → Campaign Manager. Pause the campaign if it is Running.
  2. Click Edit on the campaign (or Create Campaign for a new one) and select the Schedule tab.
  3. Choose the Timezone.
  4. Set the Start Date and End Date.
  5. In Active Hours, click time slots to turn them on (green) or off ("Click on time slots to toggle active hours. Green = Active, Empty = Inactive.").
  6. Click Update Campaign (or Create Campaign).

Result: the toast "Campaign updated successfully" (or "Campaign created successfully") appears. The detail page shows the Timezone, Date Range and Active Days. The dialer worker applies the new window from its next poll.

Schedule tab weekly grid with Monday to Friday 09:00 to 17:00 highlighted

Fields​

FieldLimits and defaultMeaning
TimezoneRequired. The form lists common zones grouped by region (Americas, Europe, Asia, Africa, Australia, Pacific, UTC); the API accepts any IANA name such as America/New_York. Default: UTCAll dates and hours are read in this zone
Start DateRequired. Default: today. Today or later when you create; any date when you editFirst calendar day dialing is allowed
End DateRequired. Default: 30 days from today. On or after the start dateLast calendar day dialing is allowed (inclusive)
Active HoursOne-hour slots, per weekday. New campaigns start with Monday to Friday, 09:00 to 17:00When dialing is allowed each day

Set the timezone of the people you are calling, not your own. A campaign in America/New_York with 09:00 to 17:00 dials 09:00 to 17:00 New York time wherever OPBX runs.

How the window is checked​

Every time the dialer worker polls (every 10 seconds by default), OPBX returns only campaigns that pass all of these checks, evaluated at the current time in the campaign's timezone:

  1. The status is Active.
  2. Today's date is on or after the start date and on or before the end date.
  3. Today's weekday is enabled.
  4. The current time falls inside one of today's hour ranges. The end of a range is included up to that minute (a range ending at 17:00 still allows calls at 17:00).

The dialer worker has no schedule logic of its own. When the window closes, no new calls start; calls already in progress continue until they end.

Example​

Campaign: America/New_York, 1 to 31 October 2026, Monday to Friday 09:00 to 17:00.

Local time (New York)Dials?Why
Monday 12 October, 08:30NoBefore 09:00
Monday 12 October, 10:15YesInside the window
Saturday 17 October, 11:00NoSaturday not enabled
Monday 2 November, 10:00NoAfter the end date

Auto-start​

The Auto-start option (Advanced tab, Enabled or Disabled) lets OPBX start a Draft campaign by itself. Every minute the scheduler looks for Draft campaigns with auto-start on and an assigned list that is In Use (or Ready), and starts each one whose window is open. While the option is on, the campaign's detail page shows an Auto-start badge next to the status.

To use it: set Auto-start to Enabled on the Advanced tab, save, then assign a Ready list. Leave the campaign in Draft.

Auto-start uses the older schedule fields
  • Assigning a list through Distribution Lists leaves the campaign in Draft (the list becomes In Use), so auto-start can pick it up.
  • The auto-start check reads the older single daily window (the first enabled range's start and end hour, and the enabled weekdays), not every range in the grid. It starts a campaign from the start hour up to, but not including, the end hour. The end date itself is a valid day.
  • An auto-started campaign is dialed by the dialer worker, exactly like one you start by hand. There is no second dialing path.

Treat auto-start as a convenience for simple Monday-to-Friday style windows, and verify on the Real Time Monitor that the campaign behaves as expected.

Dial timeout and time limit​

These are on the Advanced tab but affect timing:

FieldLimits and defaultMeaning
Dial Timeout (sec)1 to 300. Default: 60How long the callee's phone rings before the attempt counts as not answered
Time Limit (sec)30 to 14400. Default: 600 (also when the field is left empty)Longest a connected call may last

Each call is also sent with a 5-minute start deadline: if Cloudonix cannot start it within 5 minutes, it is dropped rather than placed late.

Common errors​

Message (summary)What it meansWhat to do
The start date must be a date after or equal to todayCreating with a past start datePick today or later
The end date must be a date after or equal to start dateDates reversedFix the range
The timezone must be a valid timezoneUnknown zone name (API)Use an IANA name
Campaign is Running but nothing is dialedOutside the window, or no pending numbersCheck the timezone, dates and hours; see the monitor