Dialog Create
Zdarzenie informujące o tym, że powstało w systemie nowe połączenie.
Webhook Configuration Example
"subscriptions": {
"dialog_create": {
"active": true
}
}
"subscriptions": {
"dialog_create": {
"active": true,
"filter": {
"dialog_type": ["EXTERNAL"]
}
}
}
Body
{
"event_type": "<STRING>",
"event_name": "<STRING>",
"event_time": "<STRING>",
"direction": "<STRING>",
"business_direction": "<STRING>",
"state": "<STRING>",
"dialog_type": "<STRING>",
"dialog_uuid": "<STRING>",
"media": "<LIST<STRING>>",
"self_target": "<STRING>",
"self_name": "<STRING>",
"peer_target": "<STRING>",
"peer_name": "<STRING>",
"peer_type": "<STRING>",
"peer_project_name": "<STRING>",
"peer_username": "<STRING>",
"peer_firstname": "<STRING>",
"peer_surname": "<STRING>",
"from_display_name": "<STRING>",
"from_display_target": "<STRING>",
"to_display_name": "<STRING>",
"to_display_target": "<STRING>",
"initial_link_type": "<STRING>",
"caller_contact_address": "<STRING>",
"callee_contact_address": "<STRING>",
"project": "<OBJECT>",
"anonymous": "<OBJECT>",
"initial_application_info": "<OBJECT>",
"variables": "<OBJECT>",
"presentation_number": <STRING>,
"private_call": <BOOLEAN>,
"sip_send_variables": "<OBJECT>",
"sip_read_variables": "<OBJECT>",
}
Parameters
Parametr | Rodzaj | Przykład | Opis |
---|---|---|---|
dialog_type | <STRING> |
CONSULTANT | typ dialogu |
dialog_uuid | <STRING> |
62c4e8ae-32ea-4bfb-ab79-c819b854879f | identyfikator połączenia (dialogu) |
business_direction | <STRING> |
INBOUND | kierunek połączenia względem systemu |
event_name | <STRING> |
dialog_create | nazwa wydarzenia |
event_time | <STRING> |
2018-09-01 00:00:01 | czas rozpoczęcia dialogu |
event_type | <STRING> |
user_dialog | typ wydarzenia |
Initial_link_type | <STRING> |
Line | typ linku jaki został użyty w czasie rozmowy. |
media | <LIST<STRING>> |
audio | typy mediów jakie zostały użyte w czasie rozmowy |
tenant_user | <OBJECT> |
{"firstname": "Jan", "surname": "Kowalski", "id": 3} | Użytkownik |
project | <OBJECT> |
{"name": "X", "id": 1} | Projekt |
state | <STRING> |
ringing | stan danego połączenia. |
caller_contact_address | <STRING> |
48123123123 | Numer dzwoniącego |
callee_contact_address | <STRING> |
48123123123 | Numer wybierany |
initial_application_info | <OBJECT> |
{"type": "WEB_USER_CALL", "side": "USER", "data": {"caller_number": "48123XXX789", "caller_contact_address": "testowy", "callee_contact_address": "48987XXX321"}} | Obiekt DialogApplicationInfo |
variables | <OBJECT> |
{"xyz": "abc"} | Parametry sesji ustawione na dialogu |
presentation_number | <STRING> |
48xxxxxxxxx5 | Numer do prezentacji |
private_call | <BOOLEAN> |
True | Ukrycie prezentacji numeru (CLIR) |
sip_send_variables | <OBJECT> |
{"X-ConpeekCall": "XYZ-123"} | Zmienne SIP z przedrostkiem X- które są przekazane do operatora w INVITE |
sip_read_variables | <OBJECT> |
{"X-ExternalCallId": "ABC-123-XYZ"} | Zmienne SIP z przedrostkiem X- które są przekazane od operatora w INVITE |
Example
{
"event_type": "user_dialog",
"event_name": "dialog_create",
"event_time": "2019-10-17 16:51:06",
"direction": "OUTBOUND",
"business_direction": "INBOUND",
"state": "ringing",
"dialog_type": "EXTERNAL",
"dialog_uuid": "b7f92baa-8e8b-4e8d-b7fa-234a096c0dd7",
"media": [
"audio"
],
"caller_contact_address": "48123456789",
"callee_contact_address": "48987654321",
"initial_link_type": "CONTACT_EXTERNAL_LINK",
"project": null,
"initial_application_info": {
"type": "WEB_USER_CALL",
"side": "USER",
"data": {
"caller_number": "48123XXX789",
"caller_contact_address": "testowy",
"callee_contact_address": "48987XXX321"
}
},
"variables": {
"xyz": "abc"
},
"presentation_number": "48223XXXX00",
"private_call": false
}