aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDirectory.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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