> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/call-apis/making-calls/example-code/outbound-to-sip-device.md).

# 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 %}
