* More VivoxModule debugging.
parent
199984cbea
commit
c20a4032e2
|
@ -932,24 +932,39 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
|
||||||
// skip if not a channel
|
// skip if not a channel
|
||||||
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.type", i, out type) ||
|
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.type", i, out type) ||
|
||||||
(type != "channel" && type != "positional_M"))
|
(type != "channel" && type != "positional_M"))
|
||||||
|
{
|
||||||
|
m_log.Debug("[VivoxVoice] Skipping Channel " + i + " as it's not a channel.");
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// skip if not the name we are looking for
|
// skip if not the name we are looking for
|
||||||
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.name", i, out name) ||
|
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.name", i, out name) ||
|
||||||
name != channelName)
|
name != channelName)
|
||||||
|
{
|
||||||
|
m_log.Debug("[VivoxVoice] Skipping Channel " + i + " as it has no name.");
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// skip if parent does not match
|
// skip if parent does not match
|
||||||
if (channelParent != null && !XmlFind(resp, "response.level0.channel-search.channels.channels.level4.parent", i, out parent))
|
if (channelParent != null && !XmlFind(resp, "response.level0.channel-search.channels.channels.level4.parent", i, out parent))
|
||||||
|
{
|
||||||
|
m_log.Debug("[VivoxVoice] Skipping Channel " + i + "/" + name + " as it's parent doesnt match");
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// skip if no channel id available
|
// skip if no channel id available
|
||||||
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.id", i, out id))
|
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.id", i, out id))
|
||||||
|
{
|
||||||
|
m_log.Debug("[VivoxVoice] Skipping Channel " + i + "/" + name + " as it has no channel ID");
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// skip if no channel uri available
|
// skip if no channel uri available
|
||||||
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.uri", i, out uri))
|
if (!XmlFind(resp, "response.level0.channel-search.channels.channels.level4.uri", i, out uri))
|
||||||
|
{
|
||||||
|
m_log.Debug("[VivoxVoice] Skipping Channel " + i + "/" + name + " as it has no channel URI");
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
channelId = id;
|
channelId = id;
|
||||||
channelUri = uri;
|
channelUri = uri;
|
||||||
|
@ -961,7 +976,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
|
||||||
channelId = String.Empty;
|
channelId = String.Empty;
|
||||||
channelUri = String.Empty;
|
channelUri = String.Empty;
|
||||||
|
|
||||||
m_log.Debug("[VivoxVoice] Could not find channel in XMLRESP: " + resp);
|
XmlDocument tmpDoc = new XmlDocument();
|
||||||
|
tmpDoc.AppendChild(resp);
|
||||||
|
|
||||||
|
m_log.Debug("[VivoxVoice] Could not find channel in XMLRESP: " + tmpDoc.InnerText);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue