diff options
author | Sean Dague | 2009-06-19 12:21:33 +0000 |
---|---|---|
committer | Sean Dague | 2009-06-19 12:21:33 +0000 |
commit | dfd4e78fc0d8ea9210563d4d374e3459436b5c39 (patch) | |
tree | 76e9ba1139e562d5e4ffb848d513bd9bf3f3988b /OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |
parent | From: Chris Yeoh <yeohc@au1.ibm.com> (diff) | |
download | opensim-SC_OLD-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.zip opensim-SC_OLD-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.tar.gz opensim-SC_OLD-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.tar.bz2 opensim-SC_OLD-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.tar.xz |
From: Rob Smart <SMARTROB@uk.ibm.com>
Makes an avatars personal voice indicator work with Freeswitch (though not other avatars indicators)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index ce68522..469ac2f 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -790,22 +790,20 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
790 | landName, land.LocalID, landUUID); | 790 | landName, land.LocalID, landUUID); |
791 | } | 791 | } |
792 | System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); | 792 | System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); |
793 | channelUri = String.Format("sip:confctl-{0}@{1}", "x" + Convert.ToBase64String(encoding.GetBytes(landUUID)), m_freeSwitchRealm); | ||
794 | 793 | ||
795 | //channelUri="sip:confctl-3001@9.20.151.43"; | 794 | // slvoice handles the sip address differently if it begins with confctl, hiding it from the user in the friends list. however it also disables |
796 | //channelUri="sip:opensimconf-3001@9.20.151.43"; | 795 | // the personal speech indicators as well unless some siren14-3d codec magic happens. we dont have siren143d so we'll settle for the personal speech indicator. |
796 | channelUri = String.Format("sip:conf-{0}@{1}", "x" + Convert.ToBase64String(encoding.GetBytes(landUUID)), m_freeSwitchRealm); | ||
797 | |||
797 | 798 | ||
798 | return channelUri; | 799 | return channelUri; |
799 | } | 800 | } |
800 | 801 | ||
801 | private static bool CustomCertificateValidation(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error) | 802 | private static bool CustomCertificateValidation(object sender, X509Certificate cert, X509Chain chain, SslPolicyErrors error) |
802 | { | 803 | { |
803 | //if (cert.Subject == "E=root@lindenlab.com, CN=*.vaak.lindenlab.com, O=\"Linden Lab, Inc.\", L=San Francisco, S=California, C=US") | 804 | |
804 | //{ | ||
805 | return true; | 805 | return true; |
806 | //} | 806 | |
807 | |||
808 | //return false; | ||
809 | } | 807 | } |
810 | } | 808 | } |
811 | public class MonoCert : ICertificatePolicy | 809 | public class MonoCert : ICertificatePolicy |