{"id":2392,"date":"2021-10-13T10:23:17","date_gmt":"2021-10-13T10:23:17","guid":{"rendered":"https:\/\/modern-workplace.uk\/?p=2392"},"modified":"2021-12-02T11:21:55","modified_gmt":"2021-12-02T11:21:55","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","status":"publish","type":"post","link":"https:\/\/modern-workplace.uk\/?p=2392","title":{"rendered":"Microsoft Teams &#8211; Direct Routing: Error &#8220;Filter failed to return unique result&#8221; (duplicated phone number &#8211; duplicated DDI or duplicated DID)"},"content":{"rendered":"\n<p class=\"has-large-font-size\">When enabling a user to Microsoft Teams Direct Routing (let&#8217;s say with a phone number &#8211; DDI &#8220;+44zzzzzzzzzz&#8221;) you could have the following error:<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-large-font-size\">Filter failed to return unique result, &#8220;[SipAddress : sip:yyyyy@xxxx.com] [LineURI :<br>tel:+44zzzzzzzzzz] [PrivateLine : tel:+44zzzzzzzzzz] &#8220;<br>+ CategoryInfo : InvalidOperation: (Set-CsUser:String) [Set-CsUser], InvalidOperationException<br>+ FullyQualifiedErrorId : ProcessRecord,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet<br>+ PSComputerName : api.interfaces.records.teams.microsoft.com<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/DuplicatedDDIError.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"845\" height=\"157\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/DuplicatedDDIError.jpg\" alt=\"\" class=\"wp-image-2394\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/DuplicatedDDIError.jpg 845w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/DuplicatedDDIError-300x56.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/DuplicatedDDIError-768x143.jpg 768w\" sizes=\"auto, (max-width: 845px) 100vw, 845px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\">The error is usually due to the phone number (DDI) being already assigned to another user.<br>To identify who is the user with the DDI assigned you can use the script below<\/p>\n\n\n\n<p class=\"has-vivid-purple-color has-text-color has-large-font-size\">Get-CsOnlineUser -Filter {LineUri -eq &#8220;tel:+44zzzzzzzzzz&#8221;}| select firstname,lastname,UserPrincipalName,LineURI,tenantdialplan<\/p>\n\n\n\n<p class=\"has-large-font-size\">You will have a result similar to the one below. Remove the DDI from the wrong user to fix the issue<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/get-filer-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"183\" src=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/get-filer-1.jpg\" alt=\"\" class=\"wp-image-2399\" srcset=\"https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/get-filer-1.jpg 859w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/get-filer-1-300x64.jpg 300w, https:\/\/modern-workplace.uk\/wp-content\/uploads\/2021\/10\/get-filer-1-768x164.jpg 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-large-font-size\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When enabling a user to Microsoft Teams Direct Routing (let&#8217;s say with a phone number &#8211; DDI &#8220;+44zzzzzzzzzz&#8221;) you could have the following error<br \/>\nFilter failed to return unique result, &#8220;[SipAddress : sip:yyyyy@xxxx.com] [LineURI :<br \/>tel:+44zzzzzzzzzz] [PrivateLine : tel:+44zzzzzzzzzz] &#8220;InvalidOperation: (Set-CsUser:String) [Set-CsUser], InvalidOperationException<br \/>+ FullyQualifiedErrorId : ProcessRecord,Microsoft.Rtc.Management.AD.Cmdlets.SetOcsUserCmdlet<br \/>\n+ PSComputerName : api.interfaces.records.teams.microsoft.com<br \/>\nThe error is usually due to the phone number (DDI) being already assigned to another user.<br \/>\nTo identify who is the user with the DDI assigned you can use the script below<\/p>\n","protected":false},"author":1,"featured_media":2394,"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,753,752,757],"tags":[777,762,759,751,77,755],"class_list":["post-2392","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-765","category-microsoft365","category-microsoft-teams","category-office-365","tag-directrouting","tag-microsoftteams","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\/2392","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=2392"}],"version-history":[{"count":4,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2392\/revisions"}],"predecessor-version":[{"id":2486,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/posts\/2392\/revisions\/2486"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=\/wp\/v2\/media\/2394"}],"wp:attachment":[{"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/modern-workplace.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}