The Outbound API uses HTTP or HTTPS with a GET or POST request.
The GET/POST request has to be sent to:
http://<brm>:<port>/api/v1/bvr/outbound
or
https://<brm>:<port>/api/v1/bvr/outbound
Where <brm> is the address of the BRM machine and <port> is the HTTP or HTTPS port configured in BRM here: HTTP API Configuration Options.
When using a GET request the attributes are passed as part of the URI. This takes the form of:
http://<brm>:<port>/api/v1/bvr/outbound?action=<action>&to=<to>&apiKey=<apiKey>&callerId=<callerId>&<name>=<value>&headers:<header_name>=<header_value>&hints:<hint_name>=<hint_value>
When using a POST request the content must contain a specific set of JSON as described here JSON Request Format.
A From header can be supplied as one of the SIP header/value pairs. If supplied this must be a fully formed SIP header, for example sip:user@mymachine.
The Outbound API supports either:
The second option allows finer control of the outbound call, including use of the Call Progress Detection functionality: Call Progress Detection
The application to invoke or start is identified in the JSON by the use of a unique key. These keys have to be defined, prior to using the API, and assigned to an application using BAM as described here: BAM Command Line Utility HTTP API Keys Panel
Outbound calls can also be controlled using an allow/deny list to specificall allow or deny certain phone numbers in the platform. All phone numbers are allowed by default.
For further details see here: BAM Command Line Utility Outbound Allow/Deny List Panel