{"id":3564,"date":"2024-06-07T13:52:59","date_gmt":"2024-06-07T10:52:59","guid":{"rendered":"https:\/\/docs.cpaas.mittoapi.net\/?page_id=3564"},"modified":"2025-02-07T13:49:11","modified_gmt":"2025-02-07T10:49:11","slug":"filters","status":"publish","type":"page","link":"https:\/\/docs.cpaas.mittoapi.net\/?page_id=3564","title":{"rendered":"Filters"},"content":{"rendered":"\n<p>The creation of new or modification of existing filters is performed in the &#171;Filters&#187; section of the administrator&#8217;s personal account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters0.png\"><img decoding=\"async\" width=\"281\" height=\"404\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters0.png\" alt=\"\" class=\"wp-image-3565\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters0.png 281w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters0-209x300.png 209w\" sizes=\"(max-width: 281px) 100vw, 281px\" \/><\/a><\/figure>\n\n\n\n<p>A list of all created filters is available, and you can also add new ones:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters1.png\"><img decoding=\"async\" width=\"1024\" height=\"225\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters1-1024x225.png\" alt=\"\" class=\"wp-image-3566\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters1-1024x225.png 1024w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters1-300x66.png 300w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters1.png 1585w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Required to fill in \u2014 Name:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters2.png\"><img decoding=\"async\" width=\"1024\" height=\"217\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters2-1024x217.png\" alt=\"\" class=\"wp-image-3567\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters2-1024x217.png 1024w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters2-300x63.png 300w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters2.png 1584w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>It is assumed that filters are created as sets of filtering rules, but it is also true that a filter as a created entity may not contain any rules. The application of such a filter to the service means for the system a complete ban on skipping any client traffic.<\/p>\n\n\n\n<p>Adding one or more <strong>Filter rules<\/strong> to the filter will mean that the system will only allow traffic whose characteristics correspond to the established rules.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters3.png\"><img decoding=\"async\" width=\"1024\" height=\"265\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters3-1024x265.png\" alt=\"\" class=\"wp-image-3568\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters3-1024x265.png 1024w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters3-300x78.png 300w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters3.png 1582w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>When adding a new rule to the filter, the <strong>Filter type<\/strong> and <strong>Settings<\/strong> are specified.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters4.png\"><img decoding=\"async\" width=\"1024\" height=\"279\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters4-1024x279.png\" alt=\"\" class=\"wp-image-3569\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters4-1024x279.png 1024w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters4-300x82.png 300w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters4.png 1583w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>The system supports the following types of filters:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Filter type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>SOURCE_MODIFIER_FILTER_TYPE<\/td><td>modifies the Source data, improving its quality and the format of the phone number<\/td><\/tr><tr><td>DEST_MODIFIER_FILTER_TYPE<\/td><td>modifies the destination data (Dest) to meet the specified requirements of the phone number format<\/td><\/tr><tr><td>SOURCE_ALLOW_TEMPLATE_FILTER_TYPE<\/td><td>allows calls from sources matching the specified phone number pattern<\/td><\/tr><tr><td>DEST_ALLOW_TEMPLATE_FILTER_TYPE<\/td><td>allows calls to numbers that match the specified pattern<\/td><\/tr><tr><td>SOURCE_ALLOW_ZONE_FILTER_TYPE<\/td><td>allows calls from sources belonging to a certain zone<\/td><\/tr><tr><td>DEST_ALLOW_ZONE_FILTER_TYPE<\/td><td>allows calls to numbers belonging to a certain area<\/td><\/tr><tr><td>SOURCE_MODIFIER_BY_POOL_FILTER_TYPE<\/td><td>cyclically modifies the Source data from the specified pool<\/td><\/tr><tr><td>SOURCE_MODIFIER_BY_POOL_BY_ZONE_FILTER_TYPE<\/td><td>cyclically changes the source data from the pool depending on the zone of the B-number, optimizing the routing of calls by zones<\/td><\/tr><tr><td>DEST_BLOCK_ZONE_FILTER_TYPE<\/td><td>blocks calls to numbers in the specified area<\/td><\/tr><tr><td>INCOMING_BLOCK_FILTER_TYPE<\/td><td>blocks all incoming calls<\/td><\/tr><tr><td>OUTGOING_BLOCK_FILTER_TYPE<\/td><td>blocks all outgoing calls<\/td><\/tr><tr><td>SOURCE_MODIFIER_SOURCE_BY_POOL_FILTER_TYPE<\/td><td>randomly changes a specific source number to a number from a given pool<\/td><\/tr><tr><td>DETECT_SMS_SOURCE_ADDR_ID<\/td><td>defines the ID of the allowed source address (SourceAddr) for SMS<\/td><\/tr><tr><td>DETECT_SERVICE_SMS_TEMPLATE_TYPE_ID<\/td><td>defines the SMS category based on the template<\/td><\/tr><tr><td>BLOCK_NOT_DETECTED_SMS_SOURCE_ADDR<\/td><td>blocks SMS messages from undefined source addresses (Source Addr)<\/td><\/tr><tr><td>BLOCK_NOT_DETECTED_SMS_TEMPLATE_ID<\/td><td>blocks SMS messages from undefined categories<\/td><\/tr><tr><td>FACEBOOK_FILTER_TYPE<\/td><td>receives and replaces the text of the SMS with a digital code, if the code is not found, blocks the SMS. This allows you to integrate with Facebook systems for message verification<\/td><\/tr><tr><td>WHATSAPP_FILTER_TYPE<\/td><td>similar to the previous one, but applied to WhatsApp messages, providing verification and blocking of unwanted messages<\/td><\/tr><tr><td>SOURCE_MODIFIER_BY_ZONE_FILTER_TYPE<\/td><td>changes the Source data depending on the zone<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>After completing the creation and configuration of the new filter, link it to the services.<\/p>\n\n\n\n<p>To add the created filter, click on &#171;+ Add&#187;.<\/p>\n\n\n\n<p> Then select the one you need from the pop-up list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters5.png\"><img decoding=\"async\" width=\"1024\" height=\"212\" src=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters5-1024x212.png\" alt=\"\" class=\"wp-image-3570\" srcset=\"https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters5-1024x212.png 1024w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters5-300x62.png 300w, https:\/\/docs.cpaas.mittoapi.net\/wp-content\/uploads\/2024\/06\/filters5.png 1584w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The creation of new or modification of existing filters is performed in the &#171;Filters&#187; section of the administrator&#8217;s personal account. A list of all created filters is available, and you can also add new ones: Required to fill in \u2014 Name: It is assumed that filters are created as sets of filtering rules, but it <a href=\"https:\/\/docs.cpaas.mittoapi.net\/?page_id=3564\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Filters<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"tpl\/administration-content.php","meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/3564"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3564"}],"version-history":[{"count":4,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/3564\/revisions"}],"predecessor-version":[{"id":4215,"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=\/wp\/v2\/pages\/3564\/revisions\/4215"}],"wp:attachment":[{"href":"https:\/\/docs.cpaas.mittoapi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}