Skip to content

Commit 7fb1f58

Browse files
authored
Merge pull request #14 from tcncloud/adjust_transfer_oneof
oneof adjust
2 parents d100c4c + 729248b commit 7fb1f58

File tree

1 file changed

+26
-12
lines changed

1 file changed

+26
-12
lines changed

tcnapi/exile/gate/v2/entities.proto

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,22 +169,36 @@ message ExileTransferInstance {
169169
int64 pending_duration_microseconds = 26;
170170

171171
message Source {
172-
string partner_agent_id = 1;
173-
int64 call_sid = 2;
174-
string call_type = 3;
175-
int64 conversation_id = 4;
176-
int64 session_sid = 5;
177-
string user_id = 6;
172+
SourceCall call = 1;
173+
message SourceCall {
174+
string partner_agent_id = 1;
175+
string user_id = 2;
176+
string call_type = 3;
177+
int64 conversation_id = 4;
178+
string session_id = 5;
179+
}
178180
}
179181
message Destination {
180-
string partner_agent_id = 1;
181-
int64 call_sid = 2;
182-
string call_type = 3;
183-
int64 conversation_id = 4;
184-
string phone_number = 5;
185-
int64 session_sid = 6;
182+
oneof entity {
183+
DestinationCall call = 1;
184+
DestinationAgent agent = 2;
185+
DestinationPhoneNumber phone = 3;
186+
}
186187
map<string, bool> skills = 7;
187188
}
189+
message DestinationCall {
190+
int64 call_sid = 1;
191+
string call_type = 2;
192+
int64 conversation_id = 3;
193+
}
194+
message DestinationAgent {
195+
int64 session_sid = 1;
196+
string partner_agent_id = 2;
197+
string user_id = 3;
198+
}
199+
message DestinationPhoneNumber {
200+
string phone_number = 1;
201+
}
188202
enum TransferType {
189203
TRANSFER_TYPE_UNSPECIFIED = 0;
190204
WARM_AGENT = 1;

0 commit comments

Comments
 (0)