Outbound to SIP Device

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.

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'

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

You'll need both keys: CallAPI SID and API Token

Last updated