> For the complete documentation index, see [llms.txt](https://docs.itgrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.itgrix.com/setup/itgrix-setup-bitrix24-asterisk/test-calls.md).

# Call tests

## 1. The outgoing call to unknown number with answer

Make outgoing call from you desk phone or sip-phone to external phone number, answer, talk for 6-10 seconds and hang up.

Note that external number must not be specified in user profile as his phone otherwise the call will be considered as internal and lead will not be created.<br>

**Result:**

1\. The pop-up window in Bitrix24 appeared at the beginning of the call.

2\. The lead was created with the user who made the call as responsible.

3\. The activity was created. It was titled “Outgoing call”, it has “succeed” status, and user who made the call is responsible.

4\. You can listen to the call record in activity.

{% embed url="<https://youtu.be/hLpQYWHS08c>" %}

## 2. The incoming answered call from known number

Make an incoming call from a known number (there is contact in CRM with this number) to your internal number, answer and talk for 6-10 seconds, then hang up.<br>

**Result:**

1\. If you have configured [automatic transfer to responsible manager](https://app.gitbook.com/@itgrix/s/itgrix-database/~/drafts/-M-tQu1WEZiWv1IAxY6a/for-admins-1/automatic-call-transfer-to-responsible-manager), then the call will be transferred to the manager, who is responsible for this contact.

2\. The pop-up window appeared with contact’s information during the call.

3\. The activity was created. It was titled “Incoming call”, has “succeed” status, and user answered this call is responsible.

4\. You can listen to the call record in activity.

{% embed url="<https://youtu.be/kG117WEsaUQ>" %}

## 3. The outgoing answered call to known phone number by click

Make an outgoing call from internal number to external phone number by clicking on the number in contact card. An “Originate” request will be sent to Asterisk. Then your phone will be ringing. Answer and then external number will be calling. Talk for 6-10 seconds and hang up.

**Result:**

1\. The pop-up window appeared with contact’s information during the call.

2\. The activity was created. It was titled “Outgoing call”, has “succeed” status, and user made this call is responsible.

3\. You can listen to conversation recording in activity.

![Click to Call](/files/-M2cHVRIiofmt9xDwSNq)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.itgrix.com/setup/itgrix-setup-bitrix24-asterisk/test-calls.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
