Skip to main content

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

FieldTypeDescription
scenariostringAlways Answer.
pbx_numstringYour PBX number.
unique_idstringUnique identifier of the call.
internal_numstringThe extension that answered the call.
incoming_numberstringYour number that was dialed.
customer_numstringSubscriber number on the other side.
holdtimestringWait time until the call was answered, in seconds.
timestampstringEvent 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.