{"id":831,"date":"2023-03-09T16:54:30","date_gmt":"2023-03-09T13:54:30","guid":{"rendered":"https:\/\/docs.unibell.ru\/?page_id=831"},"modified":"2025-02-07T08:02:16","modified_gmt":"2025-02-07T05:02:16","slug":"%d0%bf%d0%b5%d1%80%d0%b5%d0%b0%d0%b4%d1%80%d0%b5%d1%81%d0%b0%d1%86%d0%b8%d1%8f","status":"publish","type":"page","link":"https:\/\/docs.cpaas.mittoapi.net\/?page_id=831","title":{"rendered":"Redirection"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-1.png\"><img decoding=\"async\" width=\"107\" height=\"81\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-1.png\" alt=\"\" class=\"wp-image-2609\"\/><\/a><\/figure>\n\n\n\n<p>The &#8216;Redirection&#8217; block transfers the call to another phone number.<\/p>\n\n\n\n<p>The block properties contain two types of settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-2.png\"><img decoding=\"async\" width=\"266\" height=\"333\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-2.png\" alt=\"\" class=\"wp-image-2610\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-2.png 266w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-2-240x300.png 240w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/a><\/figure>\n\n\n\n<p>The settings block \u201cB-number setting method\u201d is used to specify the phone number to which the call will be forwarded.<\/p>\n\n\n\n<p>Depending on the logic of your script, you can enter the required phone number in the \u201cPhone\u201d line, or set it through any variable in the \u201cVariable\u201d column.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-3.png\"><img decoding=\"async\" width=\"263\" height=\"314\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-3.png\" alt=\"\" class=\"wp-image-2611\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-3.png 263w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-3-251x300.png 251w\" sizes=\"(max-width: 263px) 100vw, 263px\" \/><\/a><\/figure>\n\n\n\n<p>The settings section \u201cA-number setting method\u201d must be configured in cases where it is required that the system, when forwarding a call, transmit the phone number of the subscriber itself, and not the system one.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-4.png\"><img decoding=\"async\" width=\"259\" height=\"324\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-4.png\" alt=\"\" class=\"wp-image-2612\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-4.png 259w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-4-240x300.png 240w\" sizes=\"(max-width: 259px) 100vw, 259px\" \/><\/a><\/figure>\n\n\n\n<p>Two system variables are provided for this purpose:\u00a0<strong>sourceAddr<\/strong>\u00a0(for incoming scripts) and\u00a0<strong>destAddr<\/strong>\u00a0(for outgoing scripts). Depending on whether your script is incoming or outgoing, add one of these variables to it, and then select it from the drop-down list in the \u201cVariable\u201d tab in the settings block \u201cA-number setting method\u201d.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-5.png\"><img decoding=\"async\" width=\"538\" height=\"332\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-5.png\" alt=\"\" class=\"wp-image-2613\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-5.png 538w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/02\/redirection-5-300x185.png 300w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/a><\/figure>\n\n\n\n<p>If for the purposes of your work it is enough to transfer the system phone number as an A-number, then the settings block \u201cA-number setting method\u201d can be omitted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8216;Redirection&#8217; block transfers the call to another phone number. The block properties contain two types of settings. The settings block \u201cB-number setting method\u201d is used to specify the phone number to which the call will be forwarded. Depending on the logic of your script, you can enter the required phone number in the \u201cPhone\u201d <a href=\"https:\/\/docs.cpaas.mittoapi.net\/?page_id=831\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Redirection<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":862,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"tpl\/scenario-personal.php","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/831"}],"collection":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=831"}],"version-history":[{"count":8,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/831\/revisions"}],"predecessor-version":[{"id":4153,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/831\/revisions\/4153"}],"up":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/862"}],"wp:attachment":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}