Calling policy
This policy defines the parameters and the priority of a call.
Policy levels
Multiple policy levels are implemented in JAICP: voice calling campaign level, number level, and callback level.
Calls will be made in the ascending order of the priority according to the calling campaign policy:
- Level of the voice calling campaign with calling conditions and possible limitations for a bot.
- Level of the number added to the voice calling campaign via the Calls API.
- Scheduled call from a
$dialer.redial()script. Parameters previously set for the number are overridden when callback is being scheduled.
If no callback parameters are specified, higher level parameters are applied. If some parameters are not specified, the missing ones are inherited from higher level settings. Therefore, if custom parameters are not specified for a number, the call will be made according to the voice calling campaign parameters.
How a policy affects calling priority
Calls are made in the following order:
- Numbers with custom parameters.
- Numbers without parameters.
Among the numbers with customs parameters, calls are made to the numbers where calling intervals expire first.
Suppose it is 18:00 now and we have a list of numbers to call:
- Number A with the following calling interval:
{localTimeFrom: "17:00", localTimeTo: "21:00"} - Number B with the following calling interval:
{localTimeFrom: "18:00", localTimeTo: "18:30"} - Number C with the
localTimeFrom: "17:00"parameter, no end time is set for the calling campaign - Number D with the
localTimeFrom: "16:00"parameter, no end time is set for the calling campaign
The calls will be made in the following order:
- Number В, as the calling interval expires in 30 minutes.
- Number A, as the calling interval expires in 3 hours. For numbers С and D, no end time is specified for the campaign.
- Number D, as its call waiting time (
localTimeFromparameter) exceeds the time for number С. - Number С.
How the timezone is determined for a number
If you enabled the Use subscribers local time option when you created the voice calling campaign, the timezone for the number will be determined as follows (in descending order of priority):
- The
GMT_ZONEparameter for the number. Defined when you add the phone number list or add the number via the Calls API. - Phone number country code.
- The timezone of the JAICP platform.
If the Use subscribers local time option was not selected in the voice calling campaign settings, the timezone of the campaign’s creator will be used.