diff options
author | Jeff Ames | 2009-07-23 15:32:11 +0000 |
---|---|---|
committer | Jeff Ames | 2009-07-23 15:32:11 +0000 |
commit | a133e83f3ab38ad7abf0b3c591421d3eac418c0c (patch) | |
tree | 0c0de3d37510a54d8668402d310fc0cf7e8c255d /OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs | |
parent | Minor: rename libsl to libomv in Contributors.txt. (diff) | |
download | opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.zip opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.gz opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.bz2 opensim-SC-a133e83f3ab38ad7abf0b3c591421d3eac418c0c.tar.xz |
Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs index d34b6f1..bb3dca5 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs | |||
@@ -36,7 +36,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
36 | public class FreeSwitchDialplan | 36 | public class FreeSwitchDialplan |
37 | { | 37 | { |
38 | private static readonly ILog m_log = | 38 | private static readonly ILog m_log = |
39 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 39 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
40 | 40 | ||
41 | 41 | ||
42 | public Hashtable HandleDialplanRequest(string Context, string Realm, Hashtable request) | 42 | public Hashtable HandleDialplanRequest(string Context, string Realm, Hashtable request) |
@@ -54,50 +54,50 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
54 | response["content_type"] = "text/xml"; | 54 | response["content_type"] = "text/xml"; |
55 | response["keepalive"] = false; | 55 | response["keepalive"] = false; |
56 | response["int_response_code"] = 200; | 56 | response["int_response_code"] = 200; |
57 | if ( Context != requestcontext ) | 57 | if (Context != requestcontext) |
58 | { | 58 | { |
59 | m_log.Debug("[FreeSwitchDirectory] returning empty as it's for another context"); | 59 | m_log.Debug("[FreeSwitchDirectory] returning empty as it's for another context"); |
60 | response["str_response_string"] = ""; | 60 | response["str_response_string"] = ""; |
61 | } else { | 61 | } else { |
62 | response["str_response_string"] = String.Format(@"<?xml version=""1.0"" encoding=""utf-8""?> | 62 | response["str_response_string"] = String.Format(@"<?xml version=""1.0"" encoding=""utf-8""?> |
63 | <document type=""freeswitch/xml""> | 63 | <document type=""freeswitch/xml""> |
64 | <section name=""dialplan""> | 64 | <section name=""dialplan""> |
65 | <context name=""{0}"">" + | 65 | <context name=""{0}"">" + |
66 | 66 | ||
67 | /* <!-- dial via SIP uri --> | 67 | /* <!-- dial via SIP uri --> |
68 | <extension name=""sip_uri""> | 68 | <extension name=""sip_uri""> |
69 | <condition field=""destination_number"" expression=""^sip:(.*)$""> | 69 | <condition field=""destination_number"" expression=""^sip:(.*)$""> |
70 | <action application=""bridge"" data=""sofia/${use_profile}/$1""/> | 70 | <action application=""bridge"" data=""sofia/${use_profile}/$1""/> |
71 | <!--<action application=""bridge"" data=""$1""/>--> | 71 | <!--<action application=""bridge"" data=""$1""/>--> |
72 | </condition> | 72 | </condition> |
73 | </extension>*/ | 73 | </extension>*/ |
74 | 74 | ||
75 | @"<extension name=""opensim_conferences""> | 75 | @"<extension name=""opensim_conferences""> |
76 | <condition field=""destination_number"" expression=""^confctl-(.*)$""> | 76 | <condition field=""destination_number"" expression=""^confctl-(.*)$""> |
77 | <action application=""answer""/> | 77 | <action application=""answer""/> |
78 | <action application=""conference"" data=""$1-{1}@grid""/> | 78 | <action application=""conference"" data=""$1-{1}@grid""/> |
79 | </condition> | 79 | </condition> |
80 | </extension> | 80 | </extension> |
81 | 81 | ||
82 | <extension name=""opensim_conf""> | 82 | <extension name=""opensim_conf""> |
83 | <condition field=""destination_number"" expression=""^conf-(.*)$""> | 83 | <condition field=""destination_number"" expression=""^conf-(.*)$""> |
84 | <action application=""answer""/> | 84 | <action application=""answer""/> |
85 | <action application=""conference"" data=""$1-${domain_name}@default""/> | 85 | <action application=""conference"" data=""$1-${domain_name}@default""/> |
86 | </condition> | 86 | </condition> |
87 | </extension> | 87 | </extension> |
88 | 88 | ||
89 | <extension name=""avatar""> | 89 | <extension name=""avatar""> |
90 | <condition field=""destination_number"" expression=""^(x.*)$""> | 90 | <condition field=""destination_number"" expression=""^(x.*)$""> |
91 | <action application=""bridge"" data=""user/$1""/> | 91 | <action application=""bridge"" data=""user/$1""/> |
92 | </condition> | 92 | </condition> |
93 | </extension> | 93 | </extension> |
94 | 94 | ||
95 | </context> | 95 | </context> |
96 | </section> | 96 | </section> |
97 | </document>", Context, Realm); | 97 | </document>", Context, Realm); |
98 | } | 98 | } |
99 | 99 | ||
100 | return response; | 100 | return response; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||