aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar
diff options
context:
space:
mode:
authorSean Dague2009-06-19 12:21:33 +0000
committerSean Dague2009-06-19 12:21:33 +0000
commitdfd4e78fc0d8ea9210563d4d374e3459436b5c39 (patch)
tree76e9ba1139e562d5e4ffb848d513bd9bf3f3988b /OpenSim/Region/OptionalModules/Avatar
parentFrom: Chris Yeoh <yeohc@au1.ibm.com> (diff)
downloadopensim-SC-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.zip
opensim-SC-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.tar.gz
opensim-SC-dfd4e78fc0d8ea9210563d4d374e3459436b5c39.tar.bz2
opensim-SC-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/FreeSwitchDialplan.cs7
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs14
2 files changed, 13 insertions, 8 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs
index 89071cd..ad2b7e4 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs
@@ -70,6 +70,13 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
70 <action application=""conference"" data=""$1-${domain_name}@default""/> 70 <action application=""conference"" data=""$1-${domain_name}@default""/>
71 </condition> 71 </condition>
72 </extension> 72 </extension>
73
74 <extension name=""opensim_conf"">
75 <condition field=""destination_number"" expression=""^conf-(.*)$"">
76 <action application=""answer""/>
77 <action application=""conference"" data=""$1-${domain_name}@default""/>
78 </condition>
79 </extension>
73 80
74 <extension name=""avatar""> 81 <extension name=""avatar"">
75 <condition field=""destination_number"" expression=""^(x.*)$""> 82 <condition field=""destination_number"" expression=""^(x.*)$"">
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