private void DumpCall(string status, ICall pCall)
{
Debug.WriteLine(
String.Format(
"----------------------\r\nCall: {0}\r\n"+
"Conference: {1}\r\n"+
"Status: {2}\r\n" +
"PartnerDisplayName: {3} ({4})\r\n" +
"Subject: {5}\r\n" +
"Type: {6}\r\n" +
"Failure Reason: {7}\r\n" +
"+++++++++++++++++++++++\r\n",
pCall.Id,
pCall.ConferenceId,
status,
pCall.PartnerDisplayName,
pCall.PartnerHandle,
pCall.Subject,
pCall.Type,
pCall.FailureReason));
if (pCall.Participants != null)
{
foreach (IParticipant participant in pCall.Participants)
{
Debug.WriteLine("Participant: " + participant.DisplayName);
}
}
if (pCall.ConferenceId != 0)
{
foreach (IConference conference in _skype.Conferences)
{
if (conference.Id == pCall.ConferenceId)
{
foreach (ICall call in conference.ActiveCalls)
{
Debug.WriteLine("Participant: " + call.PartnerDisplayName);
}
}
}
}
}