# "Call cannot be connected" error with Auto-Attendants and Queues

Within Microsoft teams you have the ability to forward calls outbound to an external number using an Auto-Attendant or a Queue, however many people encounter an error message being played similar to the below:

> "Your call cannot be connected, please try again later"

This error is caused by the fact that Teams does not know where to route the outbound calls as the Auto-Attendant or Queue users are not assigned to the appropriate Call Routing policy within Microsoft teams.

For Auto-Attendants and Queues to dial an external number (outside of Teams) you need to ensure it meets the below requirements.

* Has a **"Microsoft 365 Phone System - Virtual User"** licence assigned to it (this is a free licence provided by your licencing provider or through Microsoft directly)
* Has a real public DID assigned to the resource account
* Is granted access to the appropriate call routing policy

To add the Auto-Attendant and Queue to the appropriate call routing policy simply run the below command and then wait for 15\~60 minutes while the settings propagate.

```
Grant-CsOnlineVoiceRoutingPolicy -Identity '<service_account_full_email>' -PolicyName '<dr_policy>'
```

**\<service\_account\_full\_email>** = This is the email the system generates when creating the service/resource account in Teams.\
\&#xNAN;**\<dr\_policy>** = The name of your Teams Direct Routing policy, if setup using our guide this would be "Australia"

\
**Additional Reading:**\
[Auto Attendant Setup](https://docs.microsoft.com/en-us/microsoftteams/create-a-phone-system-auto-attendant)\
[Call Queue Setup](https://docs.microsoft.com/en-us/microsoftteams/create-a-phone-system-call-queue)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kb.hostednetwork.com.au/support/services/voice-over-ip-voip/general/trunks-for-microsoft-teams/call-cannot-be-connected-error-with-auto-attendants-and-queues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
