{"id":5028,"date":"2023-05-04T08:27:01","date_gmt":"2023-05-04T06:27:01","guid":{"rendered":"https:\/\/www.msb365.blog\/?p=5028"},"modified":"2023-05-04T08:27:01","modified_gmt":"2023-05-04T06:27:01","slug":"part-7-enable-a-user-for-voice-and-voicemail-services-with-direct-routing","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=5028","title":{"rendered":"Part 7 &#8211; Enable a user for voice and voicemail services with Direct Routing"},"content":{"rendered":"<p>After you have assigned the correct licenses, the next step is to configure the user&#8217;s online phone settings. You&#8217;ll perform these steps using Teams PowerShell module.<\/p>\n<p>To establish a remote PowerShell session with Teams, you first need to install the Teams PowerShell module.<\/p>\n<p>&nbsp;<\/p>\n<p>After you install the module, you can establish a remote session with the following cmdlet:<\/p>\n<pre>Connect-MicrosoftTeams<\/pre>\n<p>You will typically enable Teams Phone functionality and assign a number available to you from your voice provider. As you enable Teams Phone for a user, voicemail will be automatically enabled at the same time.<\/p>\n<p>To enable a user for Teams Phone functionality and assign a Microsoft Calling Plan phone number, use the following cmdlet:<\/p>\n<pre>Set-CsPhoneNumberAssignment -Identity \"&lt;User name&gt;\" -PhoneNumber \"&lt;phone number&gt;\" -PhoneNumberType CallingPlan<\/pre>\n<p>Supports E.164 format like +12065551234 and non-E.164 format like 12065551234. The phone number can&#8217;t have &#8220;tel:&#8221; prefixed.<\/p>\n<p>Direct Routing numbers with extensions using the formats +1206555000;ext=1234 or 1206555000;ext=1234 are supported, but such phone numbers can&#8217;t be assigned to a resource account.<\/p>\n<p>The example below shows how to assign Direct Routing number with a unique extension to the user:<\/p>\n<pre>Set-CsPhoneNumberAssignment -Identity \"spencer.low@contoso.com\" -PhoneNumber \"+14255551234;ext=1001\" -PhoneNumberType DirectRouting<\/pre>\n<p>The following cmdlet shows how to assign the same number with a different extension to another user:<\/p>\n<pre>Set-CsPhoneNumberAssignment -Identity \"stacy.quinn@contoso.com\" -PhoneNumber \"+14255551234;ext=1002\" -PhoneNumberType DirectRouting<\/pre>\n<p>If a user or resource account has a phone number set in Active Directory on-premises and synched into Microsoft 365, you can&#8217;t use Set-CsPhoneNumberAssignment to set the phone number. You will have to clear the phone number from the on-premises Active Directory and let that change sync into Microsoft 365 first. Then enable the user for enterprise voice services and voicemail using the following cmdlet:<\/p>\n<pre>Set-CsPhoneNumberAssignment -Identity \"&lt;User name&gt;\" -EnterpriseVoiceEnabled $true<\/pre>\n<p>Assign a voice routing policy<br \/>\nAfter configuring a phone number for the user and enabling the user for voicemail, you will then assign a voice routing policy to the user. This policy allows the user to dial out and receive calls by associating them with specific Direct Routing configuration:<\/p>\n<pre>Grant-CsOnlineVoiceRoutingPolicy -Identity \"&lt;User name&gt;\" -PolicyName \"No Restrictions\u201d\r\n\r\n\r\n<\/pre>\n<blockquote><p><a href=\"https:\/\/www.msb365.blog\/?p=5021\">Click here to return to the overview<\/a><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>After you have assigned the correct licenses, the next step is to configure the user&#8217;s online phone settings. You&#8217;ll perform these steps using Teams PowerShell module. To establish a remote PowerShell session with Teams, you first need to install the Teams PowerShell module. &nbsp; After you install the module, you can establish a remote session [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5061,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-5028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ms-teams"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/5028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5028"}],"version-history":[{"count":2,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/5028\/revisions"}],"predecessor-version":[{"id":5050,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/5028\/revisions\/5050"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/media\/5061"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}