{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/telephony/call_policy/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"60632530-b0cb-57fa-a4db-2bb940b754bb","excerpt":"Calling policy?> This policy defines the parameters and the priority of a call. Policy levels Multiple policy levels are implemented in JAICP: voice calling…","html":"<h1>Calling policy</h1>\n<hr>\n<p class='warn'>This policy defines the parameters and the priority of a call.</p>\n</br>\n<h3>Policy levels</h3>\n<p>Multiple policy levels are implemented in JAICP: voice calling campaign level, number level, and callback level.</p>\n<p>Calls will be made in the ascending order of the priority according to the calling campaign policy:</p>\n<ul>\n<li><a href=\"/1.10.3/docs/en/telephony/call_tasks\">Level of the voice calling campaign with calling conditions and possible limitations for a bot</a>.</li>\n<li><a href=\"/1.10.3/docs/en/telephony/calls_api\">Level of the number added to the voice calling campaign via the Calls API</a>.</li>\n<li><a href=\"/1.10.3/docs/en/telephony/script_voice_bot#Scheduling-a-call-from-a-script\">Scheduled call from a <code class=\"language-text\">$dialer.redial()</code> script</a>. Parameters previously set for the number are overridden when callback is being scheduled.</li>\n</ul>\n<p class='tip'>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.</p>\n</br>\n<h3>How a policy affects calling priority</h3>\n<p>Calls are made in the following order:</p>\n<ol>\n<li>Numbers with custom parameters.</li>\n<li>Numbers without parameters.</li>\n</ol>\n<p class='warn'>Among the numbers with customs parameters, calls are made to the numbers where calling intervals expire first.</p>\n<p>Suppose it is 18:00 now and we have a list of numbers to call:</p>\n<ul>\n<li>Number <em>A</em> with the following calling interval: <code class=\"language-text\">{localTimeFrom: \"17:00\", localTimeTo: \"21:00\"}</code></li>\n<li>Number <em>B</em> with the following calling interval: <code class=\"language-text\">{localTimeFrom: \"18:00\", localTimeTo: \"18:30\"}</code></li>\n<li>Number <em>C</em> with the <code class=\"language-text\">localTimeFrom: \"17:00\"</code> parameter, no end time is set for the calling campaign</li>\n<li>Number <em>D</em> with the <code class=\"language-text\">localTimeFrom: \"16:00\"</code> parameter, no end time is set for the calling campaign</li>\n</ul>\n<p>The calls will be made in the following order:</p>\n<ol>\n<li>Number <em>В</em>, as the calling interval expires in 30 minutes.</li>\n<li>Number <em>A</em>, as the calling interval expires in 3 hours. For numbers <em>С</em> and <em>D</em>, no end time is specified for the campaign.</li>\n<li>Number <em>D</em>, as its call waiting time (<code class=\"language-text\">localTimeFrom</code> parameter) exceeds the time for number <em>С</em>.</li>\n<li>Number <em>С</em>.</li>\n</ol>\n</br>\n<h3>How the timezone is determined for a number</h3>\n<p>If you enabled the <em>Use subscribers local time</em> option when you created the voice calling campaign, the timezone for the number will be determined as follows (in descending order of priority):</p>\n<ol>\n<li>The <code class=\"language-text\">GMT_ZONE</code> parameter for the number. Defined when you <a href=\"/1.10.3/docs/en/telephony/lists_of_numbers\">add the phone number list</a> or <a href=\"/1.10.3/docs/en/telephony/calls_api\">add the number via the Calls API</a>.</li>\n<li><a href=\"https://en.wikipedia.org/wiki/List_of_mobile_telephone_prefixes_by_country\" target=\"_blank\" rel=\"noopener noreferrer\">Phone number country code</a>.</li>\n<li>The timezone of the JAICP platform.</li>\n</ol>\n<p>If the <em>Use subscribers local time</em> option was not selected in the voice calling campaign settings, the timezone of the campaign’s creator will be used.</p>","frontmatter":{"title":"","description":null},"headings":[{"value":"Calling policy"}]}},"pageContext":{"slug":"/docs/en/telephony/call_policy/","previous":{"fields":{"slug":"/docs/en/telephony/call_routing/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/telephony/call_detail/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}