# Outbound to SIP Device

### Making a call to a SIP client <a href="#making_a_call_to_a_span_class_sps_text_non_sps_link_data_orig_text_teleapi_data_parm_text_applicati" id="making_a_call_to_a_span_class_sps_text_non_sps_link_data_orig_text_teleapi_data_parm_text_applicati"></a>

You must first create a SIP client in the portal under Connectivity/ SIP Accounts. In the example below, the client created is called Alice. When you make the call, the SIP phone on which Alice is registered will ring and the sample XML will be played.

{% tabs %}
{% tab title="Curl" %}

```php
curl -X POST https://v1.api19.com/call/2012-04-24/Accounts/ACCOUNT_SID/Calls.json  \
   -d 'From=16175551212' \
   -d 'To=client:alice' \
   -d 'Url=https://example.api19.com/sample.php' \
   -u 'API_Token:API_Token'
```

{% endtab %}
{% endtabs %}

> &#x20; **You can add a custom SIP header by passing X-Custom-Header2=423 in the POST variables.**
>
> **In curl simply add: -d 'X-Custom-Header2=432' \\**

A client can be created in the Clients section of the callapi.

Example Responses is a menu option under&#x20;

{% hint style="info" %}
You'll need both keys: CallAPI SID and API Token
{% endhint %}


---

# 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://apidocs.api19.com/call-apis/making-calls/example-code/outbound-to-sip-device.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.
