我们正在开发一个应用程序,每当我们从应用程序拨号时,我们都能够成功连接到其他人,直到呼叫者没有解除和断开或忽略呼叫我们如何找到呼叫状态是否断开,连接,忽略。我们已经尝试过
对话状态改变
void Conversation_StateChanged(object sender, ConversationStateChangedEventArgs e)
{
if (_Conversation.State == ConversationState.Terminated)
{
MessageBox.Show("Terminated....");
}
}
audiovideo 模态状态已更改
void _AVModality_ModalityStateChanged(object sender, ModalityStateChangedEventArgs e)
{
switch (e.NewState)
{
case ModalityState.Connected:
MessageBox.Show("Connected.");
break;
case ModalityState.Connecting:
MessageBox.Show("Connecting.");
break;
case ModalityState.ConnectingToCaller:
MessageBox.Show("ConnectingToCaller.");
break;
case ModalityState.Disconnected:
MessageBox.Show("Disconnected.");
break;
case ModalityState.Invalid:
MessageBox.Show("Invalid.");
break;
case ModalityState.Notified:
MessageBox.Show("Notified.");
break;
case ModalityState.Suspended:
MessageBox.Show("Suspended.");
break;
}
}
当我们使用模态状态更改事件时,我们能够获得“正在连接”并已连接,但是当呼叫被忽略或断开连接时,这些不会触发,并且在会话状态更改时也是如此。我们能够在 ucma 应用程序中找到通话状态,但无法找到拨出通话状态。任何建议都非常感谢。