summaryrefslogtreecommitdiff
path: root/indra/newview/llvoiceclient.cpp
diff options
context:
space:
mode:
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);
}