Forum Discussion

_R1c0_99's avatar
_R1c0_99
Copper Contributor
Feb 18, 2022

New-CSTeamsUnassignedNumberTreatment Not Working - You are not setup to use this calling feature

Hi all,

 

We are off-boarding users and when we remove their licences and their phone number associated with their account, I would like a way to forward that number back into a AA or CQ.

 

When I tried to achieve this via the new CMDLETS in PS I am getting the error You are not setup to use this calling feature. 

 

I have a virtual licence added to the AA that is expecting to receive the call and my PS Script is below:-

 


PS C:\WINDOWS\system32> $RAObjectId = (Get-CsOnlineApplicationInstance -Identity Email address removed).ObjectId
PS C:\WINDOWS\system32> New-CsTeamsUnassignedNumberTreatment -Identity MainAA -Pattern "^([\+]4410000000$)" -TargetType ResourceAccount -Target $RAObjectId -TreatmentPriority 2

 

Anyone else have any issues with this or can provide any guidance ? 

 

5 Replies

    • _R1c0_99's avatar
      _R1c0_99
      Copper Contributor
      Hi,

      Yes I have run the correct commands as per message. The issue occurs when you phone the number that is unassigned it does not forward to the AA or CQ I specified and just plays
      a message that 'I am not setup to use this calling feature' I have assigned the Virtual Licence to the AA and CQ's. Are there any other prereqs that could be missing ?

      PS C:\WINDOWS\system32> $RAObjectId = (Get-CsOnlineApplicationInstance -Identity Email address removed).ObjectId
      PS C:\WINDOWS\system32> New-CsTeamsUnassignedNumberTreatment -Identity MainAA -Pattern "^([\+]4410000000$)" -TargetType ResourceAccount -Target $RAObjectId -TreatmentPriority 2

      • gazza80's avatar
        gazza80
        Copper Contributor
        I have exactly the same issue, did you ever resolve this?