aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs
diff options
context:
space:
mode:
authorTeravus Ovares2009-04-22 06:07:39 +0000
committerTeravus Ovares2009-04-22 06:07:39 +0000
commitc397f05be74487d18eb2e60d52dadffc496aa19e (patch)
tree5cddd1cc17eb006a41bfec39b0f55c596ec402cc /OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs
parentChange the default for FreeSwitch Voice to disable. Most people don't have (diff)
downloadopensim-SC_OLD-c397f05be74487d18eb2e60d52dadffc496aa19e.zip
opensim-SC_OLD-c397f05be74487d18eb2e60d52dadffc496aa19e.tar.gz
opensim-SC_OLD-c397f05be74487d18eb2e60d52dadffc496aa19e.tar.bz2
opensim-SC_OLD-c397f05be74487d18eb2e60d52dadffc496aa19e.tar.xz
* Some tweaks to the FreeSwitchModule to allow a well known hostname and avoid a double // in a path which causes account verification to fail
* The change shouldn't affect anyone who has it working currently and makes it a ton easier for everyone else to get it working. * Handle a case when there's no Event-Calling-Function but it's obviously a REGISTER method
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs
index 4113976..24f114d 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs
@@ -69,7 +69,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
69 } 69 }
70 70
71 string eventCallingFunction = (string) request["Event-Calling-Function"]; 71 string eventCallingFunction = (string) request["Event-Calling-Function"];
72 72 if (eventCallingFunction == null)
73 {
74 eventCallingFunction = "sofia_reg_parse_auth";
75 }
76
77 if (eventCallingFunction.Length == 0)
78 {
79 eventCallingFunction = "sofia_reg_parse_auth";
80 }
73 81
74 if (eventCallingFunction=="sofia_reg_parse_auth") 82 if (eventCallingFunction=="sofia_reg_parse_auth")
75 { 83 {
@@ -110,12 +118,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
110 //response = HandleLoadNetworkLists(request); 118 //response = HandleLoadNetworkLists(request);
111 response["int_response_code"]=404; 119 response["int_response_code"]=404;
112 response["keepalive"] = false; 120 response["keepalive"] = false;
121 response["content_type"] = "text/xml";
122 response["str_response_string"] = "";
113 } 123 }
114 else 124 else
115 { 125 {
116 m_log.ErrorFormat("[FreeSwitchVoice] HandleDirectoryRequest unknown Event-Calling-Function {0}",eventCallingFunction); 126 m_log.ErrorFormat("[FreeSwitchVoice] HandleDirectoryRequest unknown Event-Calling-Function {0}",eventCallingFunction);
117 response["int_response_code"]=404; 127 response["int_response_code"]=404;
118 response["keepalive"] = false; 128 response["keepalive"] = false;
129 response["content_type"] = "text/xml";
130 response["str_response_string"] = "";
119 } 131 }
120 132
121 133