Answer
Sent when the call is answered, that is when the conversation actually begins. You can start your talk time measurement from this moment.
Sample body
scenario: Answer
{
"pbx_num": "8501234567",
"unique_id": "sip1-1767225600.10001",
"internal_num": "100",
"incoming_number": "8501234567",
"scenario": "Answer",
"customer_num": "05551112233",
"holdtime": "16",
"timestamp": "1767225616000"
}
Send this body to your own address
The sample body above is sent to the address below as a POST request. The request goes from your browser, so the response cannot be read if the receiving endpoint sends no CORS header; the request itself still arrives. Use the cURL equivalent to try it from the server side.
cURL equivalent:
curl -X POST 'https://your-address.example/webhook' \
-H 'Content-Type: application/json' \
-d '{"pbx_num":"8501234567","unique_id":"sip1-1767225600.10001","internal_num":"100","incoming_number":"8501234567","scenario":"Answer","customer_num":"05551112233","holdtime":"16","timestamp":"1767225616000"}'
Fields
| Field | Type | Description |
|---|---|---|
scenario | string | Always Answer. |
pbx_num | string | Your PBX number. |
unique_id | string | Unique identifier of the call. |
internal_num | string | The extension that answered the call. |
incoming_number | string | Your number that was dialed. |
customer_num | string | Subscriber number on the other side. |
holdtime | string | Wait time until the call was answered, in seconds. |
timestamp | string | Event time (ms, Unix epoch). |
Telling an answered call apart
The simplest way to know whether a call was answered is to check whether this
event arrived: if no Answer event ever came for a given unique_id, the call
was not answered.