diff options
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index 533bce2..be1bd4f 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -183,16 +183,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
183 | m_log.ErrorFormat("[FreeSwitchVoice]: plugin initialization failed: {0} {1}", e.Message, e.StackTrace); | 183 | m_log.ErrorFormat("[FreeSwitchVoice]: plugin initialization failed: {0} {1}", e.Message, e.StackTrace); |
184 | return; | 184 | return; |
185 | } | 185 | } |
186 | |||
187 | // THIS IS WRONG need to remove later | ||
188 | |||
189 | try | ||
190 | { | ||
191 | ServicePointManager.ServerCertificateValidationCallback += CustomCertificateValidation; | ||
192 | } | ||
193 | catch (NotImplementedException) | ||
194 | { | ||
195 | } | ||
196 | } | 186 | } |
197 | 187 | ||
198 | public void PostInitialise() | 188 | public void PostInitialise() |
@@ -529,6 +519,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
529 | forwardreq.Method = method; | 519 | forwardreq.Method = method; |
530 | forwardreq.ContentType = contenttype; | 520 | forwardreq.ContentType = contenttype; |
531 | forwardreq.KeepAlive = false; | 521 | forwardreq.KeepAlive = false; |
522 | forwardreq.ServerCertificateValidationCallback = CustomCertificateValidation; | ||
532 | 523 | ||
533 | if (method == "POST") | 524 | if (method == "POST") |
534 | { | 525 | { |