{"id":2402,"date":"2021-10-21T13:55:25","date_gmt":"2021-10-21T13:55:25","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2402"},"modified":"2021-10-21T14:23:47","modified_gmt":"2021-10-21T14:23:47","slug":"teams-virtual-sbc-closing-azure-network-ports-warnings-for-azureloadbalancer-and-virtualnetwork-2-2-2-2-3-2-3-2-2-2-2-2-2","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2402","title":{"rendered":"An Option for Voice Migration  to Microsoft Teams &#8211; Direct Routing: Alternative Routing on the AudioCodes SBC"},"content":{"rendered":"\n<p class=\"has-large-font-size\">I found the <strong><em>Alternative Routing<\/em><\/strong> feature on the AudioCodes SBC really useful to accelerate the migration from a legacy PBX to Teams (with Direct Routing) in some scenarios.<\/p>\n\n\n\n<p class=\"has-large-font-size\">Typically we have a legacy PBX that has to live side-by-side with Teams Direct Routing for a period of time.<\/p>\n\n\n\n<p class=\"has-large-font-size\">Let&#8217;s say that the DDI numbers ranges in the legacy PBX change often and are not easy to define or that the DDIs are being migrated to Teams not in groups. <\/p>\n\n\n\n<p class=\"has-large-font-size\">In both the above situations, a large number of routing rules could be required to define where a telephone number is located (for a example, if it is in the legacy PBX or if it is a PSTN number).<\/p>\n\n\n\n<p class=\"has-vivid-purple-color has-text-color has-large-font-size\">A possible solution is using <strong>Alternative Routing<\/strong>. <\/p>\n\n\n\n<p class=\"has-large-font-size\">What you will have is the main route (called &#8220;<strong><em>Route Row<\/em><\/strong>&#8220;) and one or more <strong>Alternative Routes<\/strong> that will be used in case the first route returns an error (like &#8220;404 &#8211; not found&#8221;).<\/p>\n\n\n\n<p class=\"has-large-font-size\">The whole process of trying a route, failing and moving to the next one usually does not add a perceptible delay and is transparent to the user.<\/p>\n\n\n\n<p class=\"has-large-font-size\">Let&#8217;s quickly depict an example scenario: <\/p>\n\n\n\n<ul class=\"has-large-font-size wp-block-list\"><li>The legacy system is a CUCM (IP Group &#8220;<strong>CUCM<\/strong>&#8220;) with the Teams Direct Routing trunk connected to the IP Group &#8220;<strong>Teams<\/strong>&#8220;<\/li><li>Every time we make a phone call to a DDI we want to check if it located on the CUCM. If not, we want to route the call to the PSTN<br><\/li><\/ul>\n\n\n\n<p class=\"has-black-color has-text-color has-large-font-size\">The first step is to define two routes in IP-To-IP Routing (<span class=\"has-inline-color has-vivid-green-cyan-color\"><strong>SETUP -&gt; SIGNALING &amp; MEDIA -&gt; SBC -&gt; ROUTING -&gt; IP-to-IP ROUTING<\/strong><\/span>)<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-large-font-size\">The first one must be the main route (in our case, the one that goes to the CUCM). The second route will be the one that goes to the PSTN.<\/p>\n\n\n\n<p class=\"has-large-font-size\">Note: <span class=\"has-inline-color has-luminous-vivid-amber-color\"><strong><em>it is mandatory that the main Route (Route Row) and the alternative route(s) are in order in the routing list. Main Route must be immediately followed by the Alternative Route.<\/em><\/strong><\/span><\/p>\n\n\n\n<p class=\"has-large-font-size\">I have the main one (<strong>Teams_to_CUCM<\/strong>) as index number 3 and the alternative (<strong>FromTeamsToPSTN<\/strong>) as index number 4 (shown in the screenshot below<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/AltRouting01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"155\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/AltRouting01.jpg\" alt=\"\" class=\"wp-image-2403\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/AltRouting01.jpg 934w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/AltRouting01-300x50.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/AltRouting01-768x127.jpg 768w\" sizes=\"auto, (max-width: 934px) 100vw, 934px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">The first route must have the <strong><span class=\"has-inline-color has-vivid-red-color\">Alternative Route Option<\/span>s <\/strong>value set to <strong><span class=\"has-inline-color has-vivid-red-color\">Route Row<\/span><\/strong> (it is the default setting). See the screenshot below<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"168\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2-1024x168.jpg\" alt=\"\" class=\"wp-image-2406\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2-1024x168.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2-300x49.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2-768x126.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2-1536x252.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112753-2.jpg 1634w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">The second route could be set to <strong><span class=\"has-inline-color has-vivid-red-color\">Alternative Route Ignore Inputs<\/span> <\/strong>or to <strong><span class=\"has-inline-color has-vivid-red-color\">Alternative Route Consider Inputs<\/span><\/strong>. Both the options set this route as an alternative to the previous one but the second option (Consider Inputs) looks at the actual SIP message before taking a routing decision.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"176\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1-1024x176.jpg\" alt=\"\" class=\"wp-image-2419\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1-1024x176.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1-300x52.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1-768x132.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1-1536x264.jpg 1536w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112815-1.jpg 1629w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">What we need to do now is to define <strong><span class=\"has-inline-color has-vivid-red-color\">SBC Alternative Routing Reasons<\/span> <\/strong>(up to five different call release reasons. <\/p>\n\n\n\n<p class=\"has-large-font-size\">If a call is released as a result of one of these reasons the device attempts to locate an alternative route.<\/p>\n\n\n\n<p class=\"has-large-font-size\">I have a new <span class=\"has-inline-color has-vivid-red-color\">Al<strong>ternative Reason Set<\/strong> (<strong>CUCM_Fail<\/strong>) <\/span>containing three different options (SIP <strong>404<\/strong>, <strong>408 <\/strong>and <strong>480<\/strong>)<\/p>\n\n\n\n<p class=\"has-large-font-size\"> (<span class=\"has-inline-color has-vivid-green-cyan-color\"><strong>SETUP -&gt; SIGNALING &amp; MEDIA -&gt; SBC -&gt; ROUTING -&gt; ALTERNATIVE REASONS SET<\/strong><\/span>) <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112859.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"320\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112859-1024x320.jpg\" alt=\"\" class=\"wp-image-2408\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112859-1024x320.jpg 1024w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112859-300x94.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112859-768x240.jpg 768w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112859.jpg 1441w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">Now, the last step is to<strong><span class=\"has-inline-color has-vivid-red-color\"> set the Alternative Routing Reason Set in the IP Group<\/span><\/strong> of the main route (in my scenario CUCM)<\/p>\n\n\n\n<p class=\"has-large-font-size\">  (<span class=\"has-inline-color has-vivid-green-cyan-color\"><strong>SETUP -&gt; SIGNALING &amp; MEDIA -&gt; SBC -&gt; CORE ENTITIES -&gt; IP GROUPS<\/strong><\/span>)  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112951-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"555\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112951-1.jpg\" alt=\"\" class=\"wp-image-2411\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112951-1.jpg 924w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112951-1-300x180.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/Screenshot-2021-10-21-112951-1-768x461.jpg 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">Next call outgoing from Teams will be connected to the CUCM and  then, eventually, to the PSTN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are planning a voice migration to Teams and the number of voice routing rules required is really high, you can use Alternative Routing in AudioCodes SBCs as an option to have a simpler configuration<\/p>\n","protected":false},"author":1,"featured_media":2412,"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":[765,779,753,752,757],"tags":[777,762,763,759,751,77,755,778],"class_list":["post-2402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-765","category-audiocodes","category-microsoft365","category-microsoft-teams","category-office-365","tag-directrouting","tag-microsoftteams","tag-audiocodes-2","tag-microsoft-365","tag-microsoft-teams","tag-office-365","tag-teams","tag-voice-migration"],"_links":{"self":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2402","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=2402"}],"version-history":[{"count":8,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2402\/revisions"}],"predecessor-version":[{"id":2421,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2402\/revisions\/2421"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2412"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}