> For the complete documentation index, see [llms.txt](https://anunzi-ai.gitbook.io/anunzi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anunzi-ai.gitbook.io/anunzi-docs/api-widgets/trabajar-con-la-api-de-llamadas/calls/make-sip-trunk-call.md).

# Llamada vía SIP

**POST**\
`https://api.anunzi.net/v2/agent/make_call_sip_outbound`

Initiates a real-time phone call through the AI assistant using SIP (Session Initiation Protocol). This method is intended for VoIP-based integrations, allowing direct calls through SIP trunking instead of traditional phone networks.

***

#### Body Parameters

| Parameter          | Type             | Required | Description                                                                 |
| ------------------ | ---------------- | -------- | --------------------------------------------------------------------------- |
| `model_id`         | string           | Yes      | The Model-ID, which can be obtained from your Anunzi Agent Page.            |
| `to_phone_number`  | string           | Yes      | The SIP-enabled phone number or VoIP endpoint that the assistant will call. |
| `name`             | string           | Yes      | Name of the person being called.                                            |
| `custom_variables` | array of objects | No       | Key-value pairs of custom variables dynamically injected into the prompt.   |
| `lead_email`       | string           | No       | Optional email of the lead for appointment booking.                         |
| `lead_timezone`    | string           | No       | Optional time zone of the lead for appointment booking.                     |
| `team_id`          | string           | No       | The ID of the team, which can be copied from the team details section.      |

***

#### Example Request (cURL)

```bash
curl --request POST \
     --url https://api.anunzi.net/v2/agent/make_call_sip_outbound \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer API_KEY' \
     --data '
{
  "model_id": "123131531x1561561",
  "to_phone_number": "+123456123",
  "name": "David"
}
'
```

***

#### Example Response (200 OK)

```json
{
  "status": "success",
  "response": {
    "answer": "ok",
    "call_id": "1691579123700x31589864853004400"
  }
}
```

***

#### Status Codes

| Code | Description                                 |
| ---- | ------------------------------------------- |
| 200  | SIP call initiated successfully.            |
| 400  | Bad Request. Invalid or missing parameters. |
