API למפתחים

התראות Webhook על שיחות, חיוג בלחיצה, סטטוס שלוחה, דוחות CDR ותור שיחה חוזרת.

כל ה-API של המרכזיה במקום אחד. לכל שירות נדרש רישיון פעיל; פרטי ההתחברות והפרמטרים הסופיים נמסרים בעת הפעלת הרישיון. לבקשת רישיון.

התיעוד הטכני כתוב באנגלית, כמו שמפתחים עובדים איתו. רשימת כל שדות ה-Webhook, לפי סוג אירוע ועם חיפוש: Webhook API.

Call event webhooks

Incoming call alert

Fired on an incoming call to an inbound route, a ringing extension, an announcement, or an extension available on a queue or ring group. Sent as JSON (POST/GET) or XML.

ParameterDescription
callerCaller number
targetDialed number
extRinging extension
callidUnique call ID
https://webhook.url/incomingCall?callid={callid}&ext={extension_num}&caller={caller_num}&target={target}

End call event

Sent for every incoming and outgoing call when it ends.

https://webhook.url/end_call?caller=XXXX&target=XXXX&time=XXXX&duration=XX&ivruniqueid=XXXX&type=XXXX&status=XXXX&targetextension=XXXX&callerextension=XXXX&did=X&queueid=XXXX&queuename=XXX&record=XXXX&dialtime=XXXX&domain=XXXX&domain_name=XXXX
ParameterDescription
callerCaller number
targetDialed number
timeTime of the call
durationOverall call time
ivruniqueidIVR unique ID
typeIncoming / Outgoing
statusANSWER, NO ANSWER, BUSY, CONGESTION
targetextensionAnswering extension
callerextensionCaller extension
didDirect Inward Dialing number
queueidQueue or ring group unique ID
queuenameQueue or ring group name
recordCall recording file name
dialtimeBillable call time
domainPBX server address
domain_nameOrganization name

Recording link

The recording file name from the end call event must be encoded with your license code to produce a direct play/download link. Without it the recording cannot be played without manual verification against the PBX. The code is provided on license activation.

Click2Call

Dial at the push of a button by sending a GET/POST request. The system first dials the extension or internal service (dial1), and once it answers dials the destination (dial2), unless Reverse is set. To record a Click2Call call, SetCID must be set in the request.

https://voip.globalex.co.il/API/dialup.php?user=XXXX&pass=XXXX&org=XXXX&dial1=XXXX&dial2=XXXX&Response=yes&SetCID=XXXX
ParameterRequiredDescription
userYesUsername
passYesPassword
orgYesOrganization
dial1YesExtension / first number to dial
dial2YesDestination, E.164 format
ResponseNoRequest a response (yes)
RFormatNoResponse format: text (default), html, xml, json
SetCIDNoCaller ID to present, digits only. Required for recording.
ReverseNoReverse the dial order (dial2 first)
TimeoutNoSeconds to wait for an answer, 1–300. Default 20.

Extension status and hangup

Returns the current extension status (free, busy, ringing, unavailable) and, during an active call, the channel, the bridged channel's unique ID, the call's unique ID and the recording file if available. With operation=hangup it hangs up the running call. The unique ID can be used to pull the recording or a call report.

https://voip.globalex.co.il/API/dialup.php?user=XXXX&pass=XXXX&org=XXXX&exten=XXXX
ParameterRequiredDescription
userYesUsername
passYesPassword
orgYesOrganization
extenYesInternal extension number
ResponseNoRequest a response (yes)
RFormatNoResponse format: text (default), html, xml, json
operationNohangup to end the running call

CDR and billing reports

POST https://panel.bluebe.net/api/cdr.php · Response: JSON. Get CDR and billing reports for your organization (or all organizations, for an admin), or the calls of a specific number between two dates.

ParameterRequiredDescription
org_tokenYesYour organization token
call_statusNoFilter by call status
did_numberNoIncoming calls to this DID
call_durationNoTotal duration, with > < = (e.g. >10)
call_sourceNoSource number (integers only)
call_destinationNoDestination number (integers only)
call_uniqueIdNoReturn only this call
call_priceNoCall price, with > < =
call_countryNoDestination country
call_typeNoLandline, mobile, international, etc.
orgNoOrganization name; empty returns all organizations (admin only)
start_date / end_dateNoReport period

Add numbers to the callback queue

https://panel.bluebe.net/api/PBXpostOut.php · Adds or updates numbers for automatic callback when an agent logs in to the queue. Requires a valid license.

ParameterRequiredDescription
org_tokenYesYour organization token
actionYesAddCB
CBsourceNoSource number of the requested service
CBnumYesPhone number to call
CBQdestYesQueue to connect CBnum to when agents are available
maxCBdialNoMaximum dial attempts to CBnum