Built: 2026-10-23 11:54:17
Call-detail notifications include channel_name when the source event contains an Asterisk channel name. The value identifies the exact channel leg which produced the notification.
Start call (usually for incoming call, the call has came from provider to PBX and starts to route).
caller_type - caller type (internal, originate, external)
caller_num - caller number
caller_userid - caller agent user ID
dialed_num - dialed number
target_num - target number (same as dialed number, deprecated)
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
caller_userid - agent ID (only for caller_type internal)
http://server/start_call?caller_type=internal&caller_num=591166223&caller_userid=linuxbox&dialed_num=591166200&target_num=591166200&call_id=1541078811.98&cel_id=28254912
Originated call from API.
caller_type - caller type (originate)
caller_num - caller number
dialed_num - dialed number
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
http://server/originate_call?caller_type=originate&caller_num=223&dialed_num=591166200&call_id=1541078811.98&cel_id=28254912
Call has entered the queue.
caller_num - caller number
dialed_num - dialed number
queue_name - name of the queue
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
custom_call_id - custom call identifier
custom_data - custom JSON data
http://server/queue_in?caller_num=591166223&dialed_num=591166200&queue_name=helpdesk&call_id=1541078811.98&cel_id=28254912&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
Call has left the queue.
queue_name - name of the queue
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
custom_call_id - custom call identifier
custom_data - custom JSON data
http://server/queue_out?queue_name=helpdesk&call_id=1541078811.98&cel_id=28254912&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
Start of the call ringtone on internal line.
caller_num - caller number
caller_exten - caller extension
caller_name - caller name
dialed_num - dialed number (only for caller_type external, dialer)
dialed_exten - dialed extension
line_num - number of dialed line
line_name - name of dialed line
line_userid - dialed agent user ID
custom_call_id - custom call identifier
custom_data - custom JSON data
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
caller_type - caller type (external, originate, dialer)
queue_name - queue name (only for caller_type external)
direction - direction of call (internal, incoming, outgoing)
http://server/start_int_dial?caller_num=591166223&caller_exten=102&caller_name=karel&dialed_num=591166200&dialed_exten=101&line_num=101&line_name=martin&line_userid=linuxbox&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}&call_id=1541078811.98&cel_id=28254912&queue_name=helpdesk&caller_type=external&queue_name=helpdesk&direction=internal
Start of the call ringtone on external line.
caller_num - caller number
caller_exten - caller extension
caller_name - caller name
dialed_num - dialed number
dialed_exten - dialed extension
line_num - number of calling line
line_name - name of calling line
line_userid - user ID of calling agent
custom_call_id - custom call identifier
custom_data - custom JSON data
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
direction - direction of call (internal, incoming, outgoing)
http://server/start_ext_dial?caller_num=591166223&caller_exten=102&caller_name=karel&dialed_num=591166200&dialed_exten=101&line_num=102&line_name=karel&line_userid=linuxbox&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}&call_id=1541078811.98&cel_id=28254912&direction=internal
The call has been picked up by internal line.
caller_num - caller number
caller_exten - caller extension
caller_name - caller name
dialed_num - dialed number
dialed_exten - dialed extension
line_num - number of answering line
line_name - name of answering line
line_userid - user ID of answering agent
custom_call_id - custom call identifier
custom_data - custom JSON data
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
caller_type - caller type (external, originate, dialer, internal)
direction - direction of call (internal, incoming, outgoing)
http://server/answered_internal?caller_num=591166223&caller_exten=102&caller_name=karel&dialed_num=591166200&dialed_exten=101&line_num=101&line_name=martin&line_userid=linuxbox&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}&call_id=1541078811.98&cel_id=28254912&caller_type=external&direction=internal
The call has been picked up by remote side.
caller_num - caller number
caller_exten - caller extension
dialed_num - dialed number
dialed_exten - dialed extension
line_num - number of calling line
line_userid - user ID of answering agent
custom_call_id - custom call identifier
custom_data - custom JSON data
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
direction - direction of call (internal, incoming, outgoing)
http://server/answered_external?caller_num=591166223&caller_exten=102&caller_name=karel&dialed_num=591166200&dialed_exten=101&line_num=102&line_name=karel&line_userid=linuxbox&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}&call_id=1541078811.98&cel_id=28254912&direction=internal
Internal hang-up of the call.
line_num - number of hanged line
line_userid - user ID of agent on hanged line
custom_call_id - custom call identifier
custom_data - custom JSON data
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
hangup_cause - asterisk hangup cause code
hangup_status - text alternative of hangup cause code
http://server/hangup_internal?line_num=101&line_userid=linuxbox&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}&call_id=1541078811.98&cel_id=28254912&hangup_cause=16&hangup_status=NORMAL
External hang-up of the call.
ext_num - external number hung up
custom_call_id - custom call identifier
custom_data - custom JSON data
call_id - unique call ID
cel_id - unique event ID
channel_name - Asterisk channel which produced the notification
hangup_cause - asterisk hangup cause code
hangup_status - text alternative of hangup cause code
http://server/hangup_external?ext_num=591166200&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}&call_id=1541078811.98&cel_id=282549128&hangup_cause=16&hangup_status=NORMAL
End of the call.
call_id - unique call ID
cel_id - unique event ID
custom_call_id - custom call identifier
custom_data - custom JSON data
http://server/call_end?call_id=1541078811.98&cel_id=28254912&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
Agent has been logged in.
userid - agent user ID
exten - agent extension
http://server/pbx_agent_login?userid=linuxbox&exten=121
Agent has been logged out.
userid - agent user ID
reason - logout reason
http://server/pbx_agent_logout?userid=linuxbox&reason=pause
Agent has changed his state.
userid - agent user ID
state_name - name of changed state
http://server/pbx_agent_set_state?userid=linuxbox&state_name=pause
Call wiretapping started.
call_id - unique call ID
spying_exten - number initiated the wiretapping
spying_target_exten - wiretapped number
spying_userid - agent user ID initiated the wiretapping
spying_target_userid - wiretapped agent user ID
spy_type - spy type (spy, bargein, whisper)
custom_call_id - custom call identifier
custom_data - custom JSON data
channel_name - Asterisk channel which produced the notification
http://server/call_spy_start?call_id=1541078811.98&spying_exten=101&spying_target_exten=102&spying_userid=linuxbox&spying_target_userid=sales_agent1&spy_type=spy&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
End of call wiretapping.
call_id - unique call ID
spying_exten - number initiated the wiretapping
spying_target_exten - wiretapped number
spying_userid - agent user ID initiated the wiretapping
spying_target_userid - wiretapped agent user ID
spy_type - spy type (spy, bargein, whisper)
custom_call_id - custom call identifier
custom_data - custom JSON data
channel_name - Asterisk channel which produced the notification
http://server/call_spy_end?call_id=1541078811.98&spying_exten=101&spying_target_exten=102&spying_userid=linuxbox&spying_target_userid=sales_agent1&spy_type=spy&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
Exten paused due unaswered call in queue
call_id - unique call ID
exten - called number
reason - unanswered queue call (unanswered_queue_call)
channel_name - Asterisk channel which produced the notification
http://server/exten_paused?call_id=1541078811.98&exten=101&reason=unanswered_queue_call
Start of call recording
call_id - unique call ID
custom_call_id - custom call identifier
custom_data - custom JSON data
channel_name - Asterisk channel which produced the notification
http://server/call_recording_start?call_id=1541078811.98&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
Recording file has been saved
recording_id - recording ID
calling_number - caller number
calling_name - caller name
called_number - called number
called_name - called name
dialed_number - dialed number
dialed_name - dialed name
direction - call direction
time_from - call recording start timestamp
time_to - call recording end timestamp
path - file path
call_id - call ID
custom_call_id - custom call identifier
custom_data - custom JSON data
file_name - file name
file_size - file size in bytes
duration - recording duration
http://server/call_recording_file_created?call_id=1541078811.98&file_name=20250704_081524_incoming_14_214_777093799_00m01s_081525.mp3&...
Call recording transcription has been updated
call_id - unique call ID
http://server/call_recording_transcription_updated?call_id=1541078811.98
Stop of call recording
call_id - unique call ID
custom_call_id - custom call identifier
custom_data - custom JSON data
channel_name - Asterisk channel which produced the notification
http://server/call_recording_stop?call_id=1541078811.98&custom_call_id=Wua4kaib&custom_data={"company": "LinuxBox.cz s.r.o."}
Relations between calls from individual PBXs
call_id - unique identifier for the call
cel_id - unique event ID
data - array of related calls data, each including a pbx_name and a call_id of related call
custom_call_id - custom call identifier
custom_data - custom JSON data
channel_name - Asterisk channel which produced the notification
POST "http://server/related_calls_data" \
-H "Content-Type: application/json" \
-d '{
"call_id": "1541947970.835",
"cel_id" : "28254912",
"data": [
{"call_id": "1541078811.98", "pbx_name": "pbxtest1"},
{"call_id": "1554307894.124", "pbx_name": "pbxtest2"}
]
}'