From 7ec58ee04789a8cc819d1151529d843045651bc8 Mon Sep 17 00:00:00 2001 From: Bjoseph Wombat Date: Mon, 11 May 2015 04:49:12 +0100 Subject: Added application identifier and testing a bug for for group and P2P calling --- indra/newview/llvoicevivox.cpp | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 6ac8d84771..5e92d3f340 100755 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -60,6 +60,7 @@ #include "lltrans.h" #include "llviewerwindow.h" #include "llviewercamera.h" +#include "llversioninfo.h" #include "llviewernetwork.h" #include "llnotificationsutil.h" @@ -506,7 +507,8 @@ void LLVivoxVoiceClient::connectorCreate() << ".log" << "" << loglevel << "" << "" - << "" //Name can cause problems per vivox. + << "" << LLVersionInfo::getChannel().c_str() << " " << LLVersionInfo::getVersion().c_str() << "" + //<< "" //Name can cause problems per vivox. << "12" << "\n\n\n"; @@ -1761,21 +1763,31 @@ void LLVivoxVoiceClient::sessionCreateSendMessage(sessionState *session, bool st LL_DEBUGS("Voice") << "With voice font: " << session->mVoiceFontID << " (" << font_index << ")" << LL_ENDL; session->mCreateInProgress = true; - if(startAudio) + if (startAudio) { session->mMediaConnectInProgress = true; } std::ostringstream stream; - stream - << "mSIPURI << "\" action=\"Session.Create.1\">" - << "" << mAccountHandle << "" - << "" << session->mSIPURI << ""; + + if (!session->mGroupHandle.empty()) { + // reuse the current session group + stream + << "mSIPURI << "\" action=\"SessionGroup.AddSession.1\">" + << "" << session->mGroupHandle << ""; + } + else { + stream + << "mSIPURI << "\" action=\"Session.Create.1\">" + << "" << mAccountHandle << ""; + } + + stream << "" << session->mSIPURI << ""; static const std::string allowed_chars = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" - "0123456789" - "-._~"; + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + "0123456789" + "-._~"; if(!session->mHash.empty()) { @@ -2523,6 +2535,7 @@ void LLVivoxVoiceClient::sendPositionalUpdate(void) stream << ""; + stream << "1"; //do not generate responses for update requests stream << "\n\n\n"; } @@ -3072,11 +3085,12 @@ void LLVivoxVoiceClient::reapSession(sessionState *session) { if(session) { - if(!session->mHandle.empty()) +/* if(!session->mHandle.empty()) { LL_DEBUGS("Voice") << "NOT deleting session " << session->mSIPURI << " (non-null session handle)" << LL_ENDL; } - else if(session->mCreateInProgress) + else*/ + if(session->mCreateInProgress) { LL_DEBUGS("Voice") << "NOT deleting session " << session->mSIPURI << " (create in progress)" << LL_ENDL; } -- cgit v1.2.3