events_call.proto 4.85 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
syntax = "proto3";

package gpnetd;

option go_package = "./gpnetdpb";
option java_outer_classname = "EventsCallProto";
option java_package = "com.gpnetd";

import "enums.proto";

//
//** CALL EVENTS
//
message EventIncomingCall {
  uint32 channel_handle = 1;
  bytes dst_uri = 2;
  bytes src_uri = 3;
}

message EventCallDisconnected {
  uint32 channel_handle = 1;
  CallCauseEnum cause = 2;
}

message EventCallAnswered {
  uint32 channel_handle = 1;
}

message EventCallAccepted {
  uint32 channel_handle = 1;
}

message EventCallAlerting {
  uint32 channel_handle = 1;
}

message EventCallDialing {
  uint32 channel_handle = 1;
}

message EventCallProceeding {
  uint32 channel_handle = 1;
}

message EventCallDropped {
  uint32 channel_handle = 1;
  CallCauseEnum cause = 2;
}

message EventCallEarlyMedia {
  uint32 channel_handle = 1;
}

message EventCallEarlyMediaCompleted {
  uint32 channel_handle = 1;
}

message EventCallDestChanged {
  uint32 channel_handle = 1;
}

message EventCallInfoUpdated {
  uint32 channel_handle = 1;
}

message EventCallConnected {
  uint32 channel_handle = 1;
  uint32 reason = 2;
}

message EventCallHeld {
  uint32 channel_handle = 1;
  CallCombinedHoldStateEnum combined_hold_state = 2;
  EventOriginationEnum origination = 3;
}

message EventCallHoldRejected {
  uint32 channel_handle = 1;
  CallCauseEnum cause = 2;
}

message EventCallHoldRequested {
  uint32 channel_handle = 1;
  CallHoldModeEnum mode = 2;
}

message EventCallResumed {
  uint32 channel_handle = 1;
  CallCombinedHoldStateEnum combined_hold_state = 2;
  EventOriginationEnum origination = 3;
}

message EventCallResumeRejected {
  uint32 channel_handle = 1;
  CallCauseEnum cause = 2;
}

message EventCallResumeRequested {
  uint32 channel_handle = 1;
}

message EventCallProvisionalForwarded {
  uint32 channel_handle = 1;
}

message EventCallProvisionalQueued {
  uint32 channel_handle = 1;
}

message EventCallTaskFailed {
  uint32 channel_handle = 1;
  string error_text = 2;
}

message EventCallAnalysisAborted {
  uint32 channel_handle = 1;
}

message EventCallAnalysisDetectedAnsweringMachine {
  uint32 channel_handle = 1;
  uint32 reason = 2;
}

message EventCallAnalysisDetectedAnsweringMachineEnd {
  uint32 channel_handle = 1;
  uint32 end_type = 2;
}

message EventCallAnalysisDetectedLivePerson {
  uint32 channel_handle = 1;
}

message EventCallAnalysisDetectedModemFax {
  uint32 channel_handle = 1;
}

message EventCallAnalysisDetectedSilence {
  uint32 channel_handle = 1;
}

message EventCallAnalysisDetectedSITMessage {
  uint32 channel_handle = 1;
  uint32 message_id = 2;
  uint32 message_number = 3;
}

message EventCallAnalysisDetectedUnknown {
  uint32 channel_handle = 1;
}

message EventCallIncomingMessage {
  uint32 channel_handle = 1;
  uint32 message_handle = 2;
}

message EventCallIncomingRedirect {
  uint32 channel_handle = 1;
}

message EventCallMessageSent {
  uint32 channel_handle = 1;
  uint32 message_handle = 2;
}

message EventCallMessageCorrelatorID {
  uint32 channel_handle = 1;
  uint32 correlator_id = 2;
}

message EventCallRedirectRejected {
  uint32 channel_handle = 1;
}

//---------- END OF CALL EVENTS ------------//

message EventTypeCall {
  uint32 call_handle = 1;
  oneof call_event {
    EventCallAccepted accepted = 2;
    EventCallAnswered answered = 3;
    EventCallConnected connected = 4;
    EventCallDestChanged dest_changed = 5;
    EventCallDisconnected disconnected = 6;
    EventCallDropped dropped = 7;
    EventCallInfoUpdated info_updated = 8;
    EventCallAlerting alerting = 9;
    EventCallProceeding proceeding = 10;
    EventCallDialing dialing = 11;
    EventIncomingCall incoming = 12;
    EventCallHeld held = 13;
    EventCallHoldRejected hold_rejected = 14;
    EventCallHoldRequested hold_requested = 15;
    EventCallResumed resumed = 16;
    EventCallResumeRejected resume_rejected = 17;
    EventCallResumeRequested resume_requested = 18;
    EventCallEarlyMedia early_media = 19;
    EventCallEarlyMediaCompleted early_media_completed = 20;
    EventCallAnalysisAborted analysis_aborted = 21;
    EventCallAnalysisDetectedAnsweringMachine detected_am = 22;
    EventCallAnalysisDetectedAnsweringMachineEnd detected_am_end = 23;
    EventCallAnalysisDetectedLivePerson detected_live_person = 24;
    EventCallAnalysisDetectedModemFax detected_modem_fax = 25;
    EventCallAnalysisDetectedSilence detected_silence = 26;
    EventCallAnalysisDetectedSITMessage detected_sit_message = 27;
    EventCallAnalysisDetectedUnknown detected_unknown = 28;
    EventCallProvisionalForwarded provisional_forwarded = 29;
    EventCallProvisionalQueued provisional_queued = 30;
    EventCallIncomingMessage incoming_msg = 31;
    EventCallMessageSent msg_sent = 32;
    EventCallMessageCorrelatorID msg_correlator_id = 33;
    EventCallIncomingRedirect incoming_redirect = 34;
    EventCallRedirectRejected redirect_rejected = 35;
    EventCallTaskFailed task_failed = 36;
  }
}