Skip to main content

Local_call

Sent when one extension calls another extension inside the PBX. The call never goes outside, it is entirely internal.

Sample body

scenario: Local_call
{
"pbx_num": "8501234567",
"customer_num": "101",
"unique_id": "sip3-1767225800.10003",
"internal_num": "100",
"scenario": "Local_call",
"timestamp": "1767225800000"
}
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","customer_num":"101","unique_id":"sip3-1767225800.10003","internal_num":"100","scenario":"Local_call","timestamp":"1767225800000"}'

Fields

FieldTypeDescription
scenariostringAlways Local_call.
pbx_numstringYour PBX number.
unique_idstringUnique identifier of the call.
internal_numstringThe calling extension.
customer_numstringThe called extension.
timestampstringEvent time (ms, Unix epoch).
Here customer_num is not a subscriber number

In the other scenarios this field carries a mobile or landline number, but on an internal call it is the extension number of the other side (101 in the sample). Check the scenario field first so that the code matching numbers to customer records does not run a pointless lookup in this scenario.