Globalex Webhook API

Public Reference

Primary Syntax

{ "caller": "{{calleridnum}}", "extension": "{{extension}}", "direction": "{{direction}}", "duration": "{{duration}}" }

Alternative Syntax

{ "callId": "{call.uniqueid}", "phone": "{call.calleridnum}", "apiKey": "{client.apiKey}", "org": "{call.org_name}" }

CDR Full Example

{ "event": "call_ended", "caller": "{{calleridnum}}", "endtime": "{{endtime}}", "result": "{{disposition}}", "ivr_selection": "{{ivr_digit}}", "callback_caller": "{{callback_caller_number}}", "callback_number": "{{callback_number}}", "recording": "{{recording_url}}" }

XML Example

<call> <caller>{{caller_number}}</caller> <dialed>{{did_number}}</dialed> <extension>{{answeringExtension}}</extension> <queue>{{queueName}}</queue> <status>{{disposition}}</status> <recording>{{recording_play_url}}</recording> </call>
Pick a trigger event from the sidebar to start building its payload — the fields available differ per event.
Showing all 63 fields
0 fields selected
Field Name Description Example Value Available In
{{digit}}
Completed DTMF digit; on CDR this is the latest accumulated main-IVR selection5Cdr, DTMF
{{dtmf_application}}
Dialplan application active when the digit was received · not on every callReadDTMF
{{dtmf_context}}
Dialplan context active when the digit was received · not on every callclient.voip-ivr-171DTMF
{{dtmf_scope}}
Purpose classification for this digit · not on every callivr_menuDTMF
{{input_compNum}}
What the caller typed, collected as compNum · not on every call3500Cdr, Hangup, IVRInput
{{ivr_input_1}}
First input collected on the call · not on every call3500Cdr, Hangup, IVRInput
{{ivr_input_1_name}}
Name of the first collected input · not on every callcompNumCdr, Hangup, IVRInput
{{ivr_input_2}}
Second input collected on the call · not on every call43434547Cdr, Hangup, IVRInput
{{ivr_input_2_name}}
Name of the second collected input · not on every callempNumCdr, Hangup, IVRInput
{{ivr_input_3}}
Third input collected on the call · not on every call—Cdr, Hangup, IVRInput
{{ivr_input_count}}
How many inputs were collected on the call · not on every call2Cdr, Hangup, IVRInput
{{ivr_input_last}}
Most recent collected input on the call · not on every call43434547Cdr, Hangup, IVRInput
{{ivr_input_last_name}}
Name of the most recent collected input · not on every callempNumCdr, Hangup, IVRInput
{{ivr_input_name}}
Input variable used by Read(), when applicable · not on every call · also: dtmf_input_variablephone_numIVRInput
{{ivr_input_value}}
Value the caller finished typing at a Read() prompt · not on every call43434547IVRInput
{{ivr_inputs_json}}
All collected inputs as JSON · not on every call{"compNum":"3500","empNum":"43434547"}Cdr, Hangup, IVRInput
{{ivr_inputs_text}}
All collected inputs as text · not on every callcompNum=3500;empNum=43434547Cdr, Hangup, IVRInput
{{call_id}}
Same id on every leg of the call. Use it to match ring, answer and end of call1763328773.117048Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{channel}}
AMI channel nameSIP/201_globalex.co.il-0000d856Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{destinationchannel}}
Channel of the answering party · not on every callSIP/201_globalex.co.ilCdr
{{uniqueid}}
Unique call ID1763328773.117048Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{caller_number}}
Caller phone number · also: calleridnum, src, source0521234567Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{callerid1}}
Caller id of the first bridged channel · not on every call0521234567Answer
{{callerid2}}
Caller id of the second bridged channel · not on every call201Answer
{{calleridname}}
Caller name (if sent by trunk) · not on every callJohn DoeCdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF
{{connectedlinename}}
Connected party name · not on every callExtension 201Begin, Ring, Ringing, Answer, Hangup
{{connectedlinenum}}
Connected party number · not on every call201Newchannel, Begin, Ring, Ringing, Answer, Hangup
{{destination}}
Destination number (CDR field) · also: dst, dest_numberSIP/201_globalex.co.ilCdr, Begin, Ring, Ringing, Answer, Hangup
{{destinationcontext}}
Dialplan context the call ended in, so the routing pathfrom-internalCdr
{{extension}}
Extension (raw from AMI) · not on every call · also: exten036760602Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{did_number}}
DID number (inbound) · not on every call · also: did, DID_number031234567Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{call_direction_numeric}}
Call direction numeric (1=inbound 2=outbound 3=internal) · not on every call1Cdr
{{cause}}
Hangup cause code (AMI numeric)16Hangup
{{cause_text}}
Hangup cause description · not on every callNormal ClearingHangup
{{cause-txt}}
Hangup cause in wordsNormal ClearingHangup
{{dialstatus}}
ANSWER, NOANSWER, BUSY or CONGESTION · not on every call—Begin
{{direction}}
Call direction · also: call_directioninboundCdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF
{{disposition}}
Call resultANSWERED/NO ANSWER/BUSY/FAILEDCdr
{{fromout}}
Inbound from outside (1=yes) · not on every call1 = מחוץ, ריק = פנימיCdr
{{toout}}
Outbound to outside (1=yes) · not on every call1 = לחוץ, ריק = פנימיCdr
{{answer_time}}
When the call was answered · not on every call2025-11-19 08:52:40Answer
{{answertime}}
Answer time (datetime) · not on every call2025-11-16 23:32:53Cdr
{{begin}}
Start of the digit pressYesDTMF
{{duration}}
Total call duration (seconds)201Cdr
{{end}}
End of the digit pressNoDTMF
{{endtime}}
Call end time (datetime)2025-11-16 23:36:14Cdr
{{starttime}}
Call start time (datetime)2025-11-16 23:32:53Cdr
{{starttime_unix}}
Call start time (Unix timestamp) · not on every call1747058343Cdr
{{talk_time}}
Billable seconds (after answer) · also: billableseconds, billsec201Cdr
{{timestamp}}
When the event was processed, server time2025-11-19 08:52:34Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{announcementName}}
Auto-announcement name · not on every callWelcome AnnouncementCdr, Hangup, IVRInput
{{applicationNumber}}
Application / queue number · not on every call801Cdr, Ring, Answer
{{applicationType}}
Application type (Queue / RingGroup / IVR / Voicemail) · not on every callQueueCdr
{{ivrName}}
IVR name · not on every callMain IVRCdr, IVRInput
{{ivrNumber}}
IVR number · not on every call600Cdr
{{queueName}}
Queue name · not on every call · also: queue, Queue801Cdr, Begin, Ring, Ringing, Answer, Hangup, DTMF
{{ringGroupName}}
Ring group name · not on every call · also: ringgroup, RingGroup701Cdr, Begin, Ring, Ringing, Answer, Hangup
{{scenario}}
Routing scenario (Dial / Queue / RingGroup / IVR) · not on every callQueueCdr
{{voicemailBox}}
Voicemail box · not on every call201Cdr
{{callback_caller_number}}
Original caller number that requested the callback · not on every call0541234567Cdr
{{callback_number}}
Requested callback destination number · not on every call · also: callback_requested_number0551234567Cdr
{{callback_queue}}
Callback queue captured from the dialplan, when available · not on every call710Cdr
{{callback_requested}}
Whether the completed call entered the callback-request flow · not on every calltrueCdr
{{recording_available}}
Recording available (true / false) · not on every calltrueCdr
{{recording_download_url}}
Recording download URL · not on every callhttps://voip1.globalex.co.il/API/download-file.php?fileid=...Cdr
{{recording_filename}}
Recording filename · not on every callIN201-20251119-085234-1763328773.117048.wavCdr
{{recording_play_url}}
Recording URL (stream/playback) · not on every call · also: recording_urlhttps://voip1.globalex.co.il/API/play.php?fileid=...Cdr
{{userfield}}
CDR user field — raw recording path · not on every callIN201-20251119-085234-1763328773.117048Cdr
{{callerid}}
Displayed Caller ID for outbound calls"Company" <0501234567>Cdr
{{outbound_callerid}}
Outbound Caller ID (from Hangup / NewCallerid event) · not on every call0501234567Cdr
{{outboundCallerId}}
Caller id shown on the outbound leg · not on every call0501234567Answer
{{client_id}}
Client ID (numeric)5Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{ipaddr}}
IP the call came from, when the PBX reports it · not on every call46.31.97.50Cdr
{{org_name}}
Organization domain name · also: organization, domainglobalex.co.ilCdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{server_address}}
Server hostname · also: ServerAddress, ServerAdressvoip1.globalex.co.ilCdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{server_id}}
Server ID (1–12) · also: serverId2Cdr, Newchannel, Begin, Ring, Ringing, Answer, Hangup, DTMF, IVRInput
{{trunk_name}}
Trunk the call came in on or went out through · not on every callGLX1Newchannel, Ring, Answer, Hangup, DTMF, IVRInput
{{accountcode}}
Account code · not on every call—Cdr, Newchannel, Hangup
{{amaflags}}
Asterisk billing flagDOCUMENTATIONCdr
{{answeringExtension}}
Extension that actually answered the call · not on every call · also: answered_extension, answering_extension201Cdr, Answer, Hangup
{{bridgestate}}
Link or Unlink · not on every callLinkAnswer
{{bridgetype}}
Bridge type · not on every callcoreAnswer
{{callType}}
inbound, outbound, internal, inbound-sim or outbound-sim · not on every callinbound-trunkNewchannel
{{channel1}}
First channel of the bridge · not on every callSIP/019land-2-0000d856Answer
{{channel2}}
Second channel of the bridge · not on every callSIP/201_globalex.co.il-0000d857Answer
{{channelstate}}
Asterisk numeric channel state4Newchannel, Ring, Ringing, Answer
{{channelstatedesc}}
Channel state in words: Ring, Ringing, UpRingNewchannel, Ring, Ringing, Answer
{{class}}
Music on hold class · not on every calldefaultDTMF
{{context}}
Asterisk contextfrom-internalCdr, Newchannel, Begin, Ring, Answer, Hangup, DTMF
{{dcontext}}
Destination context (CDR destinationcontext) · not on every callglobalex.co.il-ext-queuesCdr
{{destuniqueid}}
Uniqueid of the leg being dialled · not on every call1763328773.117049Begin
{{dialstring}}
What Asterisk dialled · not on every callSIP/201_globalex.co.ilBegin, Ring, Ringing
{{lastapp}}
Last Asterisk application · not on every callDialCdr
{{lastapplication}}
Last application (CDR direct field)DialCdr
{{lastdata}}
Last application data / argumentsSIP/201_globalex.co.il,300,Cdr
{{subevent}}
Begin or EndBeginBegin
{{transfertype}}
Blind or attended · not on every callBlindDTMF
{{uniqueid1}}
Uniqueid of the first bridged channel · not on every call1763328773.117048Answer
{{uniqueid2}}
Uniqueid of the second bridged channel · not on every call1763328773.117049Answer
{{call_leg_type}}
Leg type (sip / local_1 / local_2) · not on every callsipCdr, Hangup
{{call_origin}}
Call origin (webcall / callback / direct) · not on every callwebcallCdr, Hangup
{{is_webcall}}
WebCall flag (1=yes, 0=no) · not on every call0Cdr, Hangup
{{webcall_user}}
WebCall username (from accountcode) · not on every callwebdial1Cdr
Sample Payload — All Triggers
Add a fixed field: