Initiate an outgoing phone call that will be tracked by the AVANSER call tracking service. The process is as follows:
- The person making the call will be called on the from.
- Once this person answers, the call will be connected to the to.
The possible values for the callerId parameter are outlined below:
| Option | Description |
|---|---|
| auto | Use the default Caller ID that is configured for the user's AVANSER account. |
| hidden | Hide the Caller ID (private call). |
| (phone number) | A phone number to use for the Caller ID, in AVANSER format, or local or international format. |
| Error Code | Error Type | Error Message |
|---|---|---|
| -1009 | INVALID-FROM-NUMBER | Invalid caller number |
| -1010 | INVALID-TO-NUMBER | Invalid called number |
| -1011 | INVALID-CALLERID | Invalid CallerID |
| -1013 | FROM-NUMBER-NOTALLOWED | Caller number denied by configuration |
| -1012 | TO-NUMBER-NOTALLOWED | Called number denied by configuration |
| -1014 | MAKE-CALL-FAILED | Unable to queue your call |
FROM-NUMBER-NOTALLOWED and TO-NUMBER-NOTALLOWED are returned if the logged in user doesn't have access to make calls to/from the given phone number. See the Dialer Access section in the User Information documentation.
MAKE-CALL-FAILED is a generic error returned if the call cannot be initialised for an unspecified reason.
- Avanser Productionhttps://p3.avanser.com/app/dial
- AVANSER Mock Serverhttps://avanser.redocly.app/_mock/user-api/references/dial
curl -i -X POST \
'https://p3.avanser.com/app/dial?from=%2B61-0212345678&to=0212345678&callerId=auto&record=0&label=string&token=YOUR_API_KEY_HERE'Outgoing call request result.
The time that the API response left the server, represented as the number of seconds since the UNIX epoch.
The number of seconds that it took to process the API request.
Boolean indicating whether there was an error returned by the API request.
{ "timestamp": 1508908351, "exection": 0.000072510957717896, "error": false, "data": { "from": "+61-0412345678", "to": "+61-0298765432", "callerId": "+61-0412345678", "recording": "no", "label": "" } }