{"id":2081,"date":"2020-12-15T19:13:06","date_gmt":"2020-12-15T19:13:06","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2081"},"modified":"2021-10-21T13:56:38","modified_gmt":"2021-10-21T13:56:38","slug":"teams-manage-unassigned-phone-numbers-with-an-audiocodes-sbc","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2081","title":{"rendered":"Teams &#8211; Manage Unassigned Phone Numbers (with an Audiocodes SBC)"},"content":{"rendered":"\n<p class=\"has-normal-font-size\"><strong>Unassigned numbers management <\/strong>is essentially the capability of redirecting <strong>calls to a number in a company DDIs range but not assigned to any user <\/strong>to a switchboard\/voicemail\/automatic answer.<\/p>\n\n\n\n<p>At the moment there are at least three different Uservoice posts requiring to have in Teams management for the above similar to the one we had in Skype for Business on-premises.<\/p>\n\n\n\n<p>Whilst we wait for this feature to be released, the easiest way to manage unassigned numbers it to work on the <strong>SBC <\/strong>(in my scenario, <strong>AudioCodes<\/strong>)<\/p>\n\n\n\n<p>My objective: <strong>redirect all the calls from the PSTN to an unassigned number to a switchboard<\/strong><\/p>\n\n\n\n<p>My scenario: <strong>Direct routing already configured and working. All the calls from the PSTN are sent to Teams<\/strong><\/p>\n\n\n\n<p><em>Note:  I took the base idea from this post on Reddit (if the original author wants to be quoted here, more than happy to do that) <\/em><a href=\"https:\/\/www.reddit.com\/r\/MicrosoftTeams\/comments\/h7u9tx\/teams_direct_routing_and_unassigned_numbers\/\">https:\/\/www.reddit.com\/r\/MicrosoftTeams\/comments\/h7u9tx\/teams_direct_routing_and_unassigned_numbers\/<\/a> <\/p>\n\n\n\n<p>So, every time the SBC will try to forward a call to Teams and the number is not assigned, we will have SIP response <em><strong>404 Not Found<\/strong><\/em><\/p>\n\n\n\n<p>First step: <strong><em>add 404 to the Alternative Reasons Set<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">Signaling &amp; Media -&gt; SBC -&gt; Routing -&gt; Alternative Reasons Set<\/span><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"349\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00-1024x349.jpg\" alt=\"\" class=\"wp-image-2083\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00-1024x349.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00-300x102.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00-768x262.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00-1536x524.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set_00.jpg 2008w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Alternative Reasons Set<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Add-404.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"778\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Add-404.jpg\" alt=\"\" class=\"wp-image-2084\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Add-404.jpg 1018w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Add-404-300x229.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Add-404-768x587.jpg 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/a><figcaption>Adding 404<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set-1-1024x469.jpg\" alt=\"\" class=\"wp-image-2085\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set-1-1024x469.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set-1-300x137.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set-1-768x352.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Alternative_Reason_Set-1.jpg 1483w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>404 added to the Alternative Reasons Rules<\/figcaption><\/figure>\n\n\n\n<p>Second Step: <strong><em>Create an IP Group that duplicates the existing Teams Direct Routing IP Group (I used the same Proxy Set, IP Profile and Media Realm of the existing Teams IP Group)<\/em><\/strong>. <strong>I will call is &#8220;<span class=\"has-inline-color has-vivid-purple-color\">Unassigned-Numbers<\/span>&#8220;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">Signaling &amp; Media -&gt; Core Entities -&gt; IP Groups<\/span><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/ADD_IP_Group-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"282\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/ADD_IP_Group-1.jpg\" alt=\"\" class=\"wp-image-2095\"\/><\/a><figcaption>Add IP Group<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"492\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group-1024x492.jpg\" alt=\"\" class=\"wp-image-2086\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group-1024x492.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group-300x144.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group-768x369.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group-1536x738.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-Group.jpg 1720w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Unassigned-Numbers IP Group<\/figcaption><\/figure>\n\n\n\n<p>Third Step: <strong><em>Add a route (in IP-to-IP routing) after the one going to Teams. This one will use the &#8216;Alternative Route Ignore Inputs&#8217; and have, as a destination the &#8220;Unassigned-Numbers&#8221; IP Group<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">Signaling &amp; Media -&gt; SBC -&gt; Routing -&gt; IP-to-IP Routing<\/span><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-to_IP-Routing-3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"163\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/IP-to_IP-Routing-3.jpg\" alt=\"\" class=\"wp-image-2097\"\/><\/a><figcaption>IP-to-IP Routing<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/NEWIP_to_IP_Routing.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/NEWIP_to_IP_Routing-1024x550.jpg\" alt=\"\" class=\"wp-image-2090\" width=\"580\" height=\"311\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/NEWIP_to_IP_Routing-1024x550.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/NEWIP_to_IP_Routing-300x161.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/NEWIP_to_IP_Routing-768x412.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/NEWIP_to_IP_Routing.jpg 1444w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/a><figcaption>Additional IP-to-IP Route<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/All_IP_Routes_01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"296\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/All_IP_Routes_01-1024x296.jpg\" alt=\"\" class=\"wp-image-2102\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/All_IP_Routes_01-1024x296.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/All_IP_Routes_01-300x87.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/All_IP_Routes_01-768x222.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/All_IP_Routes_01.jpg 1492w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Route added after the one to Teams Direct Routing<\/figcaption><\/figure>\n\n\n\n<p>Fourth Step: <strong><em>define and Outbound Manipulation pointing to the &#8220;Unassigned-Numbers&#8221; IP Group  that re-writes the destination URI, replacing the original called number with the number of the switchboard<\/em><\/strong> <strong><em>(I have called it &#8220;<span class=\"has-inline-color has-vivid-purple-color\">Unassigned-Numbers-Manipulation<\/span>&#8220;)<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\">Signaling &amp; Media -&gt; SBC -&gt; Manipulation -&gt; Outbound Manipulation<\/span><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"496\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01-1024x496.jpg\" alt=\"\" class=\"wp-image-2093\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01-1024x496.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01-300x145.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01-768x372.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01-1536x744.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Outbound_Manipulation_01.jpg 1722w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Changing the callee number to the switchboard one<\/figcaption><\/figure>\n\n\n\n<p>What we have to do now, is just testing. You will see the call go to the Teams Direct Routing IP Group and then go to the Unassigned-Numbers IP Group<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Test.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"911\" height=\"290\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Test.jpg\" alt=\"\" class=\"wp-image-2094\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Test.jpg 911w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Test-300x95.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2020\/12\/Test-768x244.jpg 768w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><\/a><figcaption>Callee number manipulated<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unassigned numbers management is essentially the capability of redirecting calls to a number in a company DDIs range but not assigned to any user to a switchboard\/voicemail\/automatic answer. At the moment there are at least three different Uservoice posts requiring to have in Teams management for the above similar to the one we had in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2098,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","twitterCardType":"","cardImageID":0,"cardImage":"","cardTitle":"","cardDesc":"","cardImageAlt":"","cardPlayer":"","cardPlayerWidth":0,"cardPlayerHeight":0,"cardPlayerStream":"","cardPlayerCodec":"","footnotes":""},"categories":[758,779,753,752,757],"tags":[761,762,763,759,751,77,755],"class_list":["post-2081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-758","category-audiocodes","category-microsoft365","category-microsoft-teams","category-office-365","tag-audiocodes","tag-microsoftteams","tag-audiocodes-2","tag-microsoft-365","tag-microsoft-teams","tag-office-365","tag-teams"],"_links":{"self":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2081"}],"version-history":[{"count":4,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2081\/revisions"}],"predecessor-version":[{"id":2103,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2081\/revisions\/2103"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2098"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}