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
| Field | Type | Description |
|---|---|---|
scenario | string | Always Local_call. |
pbx_num | string | Your PBX number. |
unique_id | string | Unique identifier of the call. |
internal_num | string | The calling extension. |
customer_num | string | The called extension. |
timestamp | string | Event time (ms, Unix epoch). |
Here
customer_num is not a subscriber numberIn 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.