# External Phone Number Transfers from Auto Attendant or Queue

**Category:** Teams Troubleshooting
**URL:** https://www.simtex.com.au/support/kb/teams-troubleshooting/external-phone-number-transfers-from-auto-attendant-or-queue
**Published:** 2022-05-18

To make this work, the resource user attached to the AA or Queue must have the following applied:

###### How to configure call forward to an external PSTN phone number from a call queue or auto attendant (AA).

To make this work, the resource user attached to the AA or Queue *must* have the following applied:

- Virtual Phone System User License (if not done yet) [more Info](https://docs.microsoft.com/en-us/microsoftteams/teams-add-on-licensing/virtual-user)

- Online Voice Routing Policy

- Phone number

We’ve found applying a Voice Routing Policy to a resource user can take a number of hours, so please be patient.

```
# !!! Change the three values below as required !!!
$user = "q-or-aa-resource-account@domain.tld"
$userovrp = "MyCloudVoIP-VRP-WA"
$usernumber = "+61899999999"
 
Grant-CsOnlineVoiceRoutingPolicy -Identity $user -PolicyName $userovrp
Set-CsPhoneNumberAssignment -Identity $user -PhoneNumber $usernumber -PhoneNumberType DirectRouting
Get-CsOnlineUser $user | select UserPrincipalName,OnlineVoiceRoutingPolicy,OnPremLineURI
 
<#Please note:
Applying the actual changes in MS backend can take quite some time until it is ready (a number of hours)
#>
```

When setting up the external number in your AA or Call Queue, please enter the phone number in +e164 format, ie +61899999999

## Related

- Article: https://www.simtex.com.au/support/kb/teams-troubleshooting/external-phone-number-transfers-from-auto-attendant-or-queue
- Category: https://www.simtex.com.au/support/kb/teams-troubleshooting
- Knowledge Base: https://www.simtex.com.au/support/kb
- Full AI reference: https://www.simtex.com.au/llms-full.txt
