Przejdź do treści

Dialog Close

Zdarzenie informujące o zakończeniu połaczenia.

Webhook Configuration Example

"subscriptions": {
    "dialog_close": {
        "active": true
    }
}
"subscriptions": {
    "dialog_close": {
        "active": true,
        "filter": {
            "dialog_type": ["EXTERNAL"]
        }
    }
}
"subscriptions": {
    "dialog_close": {
        "active": true,
        "include": {
            "variables": ["xyz"]
        }
    }
}

Body

{
    "end_cause": "<STRING>",
    "hangup_cause": "<STRING>",
    "dialog_uuid": "<STRING>",
    "event_name": "<STRING>",
    "event_time": "<STRING>",
    "dialog_type": "<STRING>",
    "caller_contact_address": "<STRING>",
    "callee_contact_address": "<STRING>",
    "event_type": "<STRING>",
    "acw_enabled": "<BOOLEAN>",
    "initial_application_info": "<OBJECT>",
    "start_time": "<STRING>",
    "serve_time": "<STRING>",
    "hangup_time": "<STRING>",
    "variables": "<OBJECT>",
    "presentation_number": <STRING>,
    "was_screenshare": <BOOLEAN>,
    "private_call": <BOOLEAN>
}

Parameters

Parametr Rodzaj Przykład Opis
event_name <STRING> dialog_close nazwa wydarzenia
dialog_uuid <STRING> 6cc1716d-9053-4c5a-887c-90462468dfe3 identyfikator połączenia (dialogu)
event_time <STRING> 2018-09-01 00:00:01 data wykonania zdarzenia w UTC w formacie YYYY-MM-DD HH:mm:ss
caller_contact_address <STRING> 48123123123 Numer dzwoniącego
callee_contact_address <STRING> 48123123123 Numer wybierany
dialog_type <STRING> EXTERNAL Rodzaj dialogu (type)
acw_enabled <BOOLEAN> true ACW po dialogu
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
crm_id <STRING> 5f2d216ef03d640e9102c508 Identyfikator CRM
contact_id <STRING> 5f2d216ef03d9865 Identyfikator Kontaktu CRM
end_cause <STRING> HANGUP Przyczyna zakończenia, dostępne wartości:
  • HANGUP
  • NO_ANSWER
  • DIALOG_LEFT
  • USER_BUSY
  • CALL_FAILED
  • USER_NOT_REGISTERED
  • LEG_NOT_CREATED
  • LEG_CREATION_TIMEOUT_REACHED
  • CALL_REJECTED
  • NO_USER_RESPONSE
  • ORIGINATOR_CANCEL
  • SESSION_DISCONNECTED
  • UNAUTHORIZED
  • JOIN_FAILED
  • USER_NOT_AVAILABLE
  • QUEUE_ABANDONED
  • ROUTING_NOT_FOUND
  • RACE_LOST
  • MACHINE_DETECTED
  • HOLD_FAILED
  • UNHOLD_FAILED
  • REDIRECT
  • BLIND_TRANSFER
  • KICK
  • MEDIA_CHANGE
  • SESSION_DISCONNECTED_TIMEOUT
  • RESERVATION_ERROR
  • PICKED_OFF
  • ATTENDED_TRANSFER
  • NO_MEDIA
  • SCREENSHARE_ERROR
  • OWNER_DIALOG_CLOSED
  • NO_CONFERENCE_PORTS_AVAILABLE
  • REMOTE_CLOSE
  • REDIRECT_LIMIT_EXCEEDED
  • OUT_OF_SCHEDULE
  • VALIDATE_ERROR
  • TRANSFER_ERROR
  • CONFERENCE_ERROR
  • FS_ERROR
  • FATAL_ERROR
  • HOTDESK_ERROR
  • MEDIA_CHANGE_ERROR
  • LINK_SWITCH_ERROR
  • FAC_ERROR
  • UNSPECIFIED
hangup_cause <STRING> NORMAL_CLEARING Przyczyna zakończenia Q.850, dostępne wartości:
  • NORMAL_CLEARING
  • UNSPECIFIED
  • UNALLOCATED_NUMBER
  • NO_ROUTE_TRANSIT_NET
  • NO_ROUTE_DESTINATION
  • CHANNEL_UNACCEPTABLE
  • CALL_AWARDED_DELIVERED
  • USER_BUSY
  • NO_USER_RESPONSE
  • NO_ANSWER
  • SUBSCRIBER_ABSENT
  • CALL_REJECTED
  • NUMBER_CHANGED
  • REDIRECTION_TO_NEW_DESTINATION
  • EXCHANGE_ROUTING_ERROR
  • DESTINATION_OUT_OF_ORDER
  • INVALID_NUMBER_FORMAT
  • FACILITY_REJECTED
  • RESPONSE_TO_STATUS_ENQUIRY
  • NORMAL_UNSPECIFIED
  • NORMAL_CIRCUIT_CONGESTION
  • NETWORK_OUT_OF_ORDER
  • SWITCH_CONGESTION
  • ACCESS_INFO_DISCARDED
  • PRE_EMPTED
  • OUTGOING_CALL_BARRED
  • INCOMING_CALL_BARRED
  • BEARERCAPABILITY_NOTAUTH
  • NORMAL_TEMPORARY_FAILURE
  • REQUESTED_CHAN_UNAVAIL
  • FACILITY_NOT_SUBSCRIBED
  • BEARERCAPABILITY_NOTAVAIL
  • SERVICE_UNAVAILABLE
  • BEARERCAPABILITY_NOTIMPL
  • CHAN_NOT_IMPLEMENTED
  • FACILITY_NOT_IMPLEMENTED
  • SERVICE_NOT_IMPLEMENTED
  • INVALID_CALL_REFERENCE
  • INCOMPATIBLE_DESTINATION
  • INVALID_MSG_UNSPECIFIED
  • MANDATORY_IE_MISSING
  • MESSAGE_TYPE_NONEXIST
  • WRONG_MESSAGE
  • IE_NONEXIST
  • INVALID_IE_CONTENTS
  • WRONG_CALL_STATE
  • RECOVERY_ON_TIMER_EXPIRE
  • MANDATORY_IE_LENGTH_ERROR
  • PROTOCOL_ERROR
  • INTERWORKING
  • ORIGINATOR_CANCEL
  • CRASH
  • SYSTEM_SHUTDOWN
  • LOSE_RACE
  • MANAGER_REQUEST
  • BLIND_TRANSFER
  • ATTENDED_TRANSFER
  • ALLOTTED_TIMEOUT
  • USER_CHALLENGE
  • MEDIA_TIMEOUT
  • PICKED_OFF
  • USER_NOT_REGISTERED
  • PROGRESS_TIMEOUT
  • GATEWAY_DOWN
start_time <STRING> 2018-09-01 00:00:01 data rozpoczęcia połączenia w UTC w formacie YYYY-MM-DD HH:mm:ss
serve_time <STRING> 2018-09-01 00:00:01 data zestawienia połączenia z konsultantem w UTC w formacie YYYY-MM-DD HH:mm:ss
hangup_time <STRING> 2018-09-01 00:00:01 data zakończenia połączenia w UTC w formacie YYYY-MM-DD HH:mm:ss
presentation_number <STRING> 48xxxxxxxxx5 Numer do prezentacji
was_screenshare <BOOLEAN> true Czy podczas rozmowy była prezentacja ekranu
private_call <BOOLEAN> true Ukrycie prezentacji numeru (CLIR)

Example

{
    "end_cause": "HANGUP",
    "hangup_cause": "NORMAL_CLEARING",
    "dialog_uuid": "6cc1716d-9053-4c5a-887c-90462468dfe3",
    "event_name": "dialog_close",
    "event_time": "2018-09-11 12:00:00",
    "dialog_type": "EXTERNAL",
    "caller_contact_address": "48123XXX789",
    "callee_contact_address": "48987XXX321",
    "event_type": "user_dialog",
    "acw_enabled": true,
    "initial_application_info": {
        "type": "WEB_USER_CALL",
        "side": "USER",
        "data": {
            "caller_number": "48123XXX789",
            "caller_contact_address": "testowy",
            "callee_contact_address": "48987XXX321"
        }
    },
    "variables": {
        "xyz": "abc"
    },
    "start_time": "2018-09-11 11:59:03",
    "serve_time": "2018-09-11 11:59:20",
    "hangup_time": "2018-09-11 12:00:00",
    "presentation_number": "48223XXXX00",
    "was_screenshare": false,
    "private_call": false
}