summaryrefslogtreecommitdiff
path: root/indra/newview/llvoiceclient.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-03-03 22:34:35 -0800
committerRoxie Linden <roxie@lindenlab.com>2024-03-03 22:34:35 -0800
commitb17c668d1257ba66e6a0bf84d0ad4c0da785ad64 (patch)
treea8397faed31a0a90322f178726be04cf2e2521aa /indra/newview/llvoiceclient.cpp
parent2117f8c4ba4565eef33f139a8c38b81f3c79648f (diff)
fix webrtc logic bugs and such
Diffstat (limited to 'indra/newview/llvoiceclient.cpp')
-rw-r--r--indra/newview/llvoiceclient.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index 3df94d8ba0..087c93a3f5 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -513,7 +513,12 @@ LLVoiceP2PIncomingCallInterfacePtr LLVoiceClient::getIncomingCallInterface(const
// outgoing calls
LLVoiceP2POutgoingCallInterface *LLVoiceClient::getOutgoingCallInterface(const LLSD& voiceChannelInfo)
{
- LLVoiceModuleInterface *module = getVoiceModule(voiceChannelInfo["voice_server_type"].asString());
+ std::string voiceServerType = gSavedSettings.getString("VoiceServerType");
+ if (voiceChannelInfo.has("voice_server_type"))
+ {
+ voiceServerType = voiceChannelInfo["voice_server_type"].asString();
+ }
+ LLVoiceModuleInterface *module = getVoiceModule(voiceServerType);
return dynamic_cast<LLVoiceP2POutgoingCallInterface *>(module);
}