summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2024-04-20 00:26:39 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-04-20 00:26:39 -0700
commit1a1af1ce2989d384c5dabf4dce9bc150a69b02c1 (patch)
tree7be237f1ea34350319732431737e87ebb1127552 /indra/newview/llimview.cpp
parent784dae7e6a085577df91845466c910b2bcbf7d81 (diff)
Adjust logic for determine what voice server type to use.
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index b590c462fa..efa8bd2109 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -424,17 +424,6 @@ void startConferenceCoro(std::string url,
postData["method"] = "start conference";
postData["session-id"] = tempSessionId;
postData["params"] = agents;
- LLSD altParams;
- std::string voice_server_type = gSavedSettings.getString("VoiceServerType");
- if (voice_server_type.empty())
- {
- // default to the server type associated with the region we're on.
- LLVoiceVersionInfo versionInfo = LLVoiceClient::getInstance()->getVersion();
- voice_server_type = versionInfo.internalVoiceServerType;
- }
- altParams["voice_server_type"] = voice_server_type;
- postData["alt_params"] = altParams;
-
LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);
LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];
@@ -473,17 +462,6 @@ void startP2PVoiceCoro(std::string url, LLUUID sessionID, LLUUID creatorId, LLUU
postData["method"] = "start p2p voice";
postData["session-id"] = sessionID;
postData["params"] = otherParticipantId;
- LLSD altParams;
- std::string voice_server_type = gSavedSettings.getString("VoiceServerType");
- if (voice_server_type.empty())
- {
- // default to the server type associated with the region we're on.
- LLVoiceVersionInfo versionInfo = LLVoiceClient::getInstance()->getVersion();
- voice_server_type = versionInfo.internalVoiceServerType;
- }
- altParams["voice_server_type"] = voice_server_type;
- postData["alt_params"] = altParams;
-
LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);
LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];
@@ -2133,7 +2111,7 @@ bool LLIMModel::sendStartSession(
//we also need to wait for reply from the server in case of ad-hoc chat (we'll get new session id)
return true;
}
- else if ((dialog == IM_SESSION_P2P_INVITE) || (dialog == IM_NOTHING_SPECIAL))
+ else if (p2p_as_adhoc_call && ((dialog == IM_SESSION_P2P_INVITE) || (dialog == IM_NOTHING_SPECIAL)))
{
LLViewerRegion *region = gAgent.getRegion();
if (region)