嗨,我尝试踢电话会议的参与者时遇到问题。 我有一个只有3个参与者的呼叫,即“呼叫者”,“座席”和“主管” 当“主管”决定仅与“主叫方”继续通话时,我们将使用此代码将“代理”踢出通话。
{
//kick participant
var participant = ParticipantResource.Update(
endConferenceOnExit: false,
pathConferenceSid: conferenceID,
pathCallSid: participantID
);
//ensure supervisor is not muted
var supervisor = ParticipantResource.Update(
pathConferenceSid: conferenceID,
pathCallSid: supervisorID,
muted: false,
endConferenceOnExit: true
);
//set call status to complete for worker
var call = CallResource.Update(
status: CallResource.UpdateStatusEnum.Completed,
pathSid: participantID
);
return supervisor.Status.ToString();
}```
Someone can help me with this?
And then all the call it is terminated, we expected that the "caller" and the "supervisor" continue the call.