diff options
author | Jeff Ames | 2009-04-22 00:48:56 +0000 |
---|---|---|
committer | Jeff Ames | 2009-04-22 00:48:56 +0000 |
commit | 6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f (patch) | |
tree | 55509d75eca81eb3b463984a1981c3a4d4fcce54 /OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs | |
parent | Thank you kindly, MCortez, for a patch that: (diff) | |
download | opensim-SC-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.zip opensim-SC-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.tar.gz opensim-SC-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.tar.bz2 opensim-SC-6aa5d3904d71c4be21e5991d9ba82dff3c1cf51f.tar.xz |
Add copyright headers. Formatting cleanup.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs index 2a2b4a3..d8fce67 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchDialplan.cs | |||
@@ -43,7 +43,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
43 | 43 | ||
44 | Hashtable response = new Hashtable(); | 44 | Hashtable response = new Hashtable(); |
45 | 45 | ||
46 | foreach(DictionaryEntry item in request) | 46 | foreach (DictionaryEntry item in request) |
47 | { | 47 | { |
48 | m_log.InfoFormat("[FreeSwitchDirectory] requestBody item {0} {1}",item.Key, item.Value); | 48 | m_log.InfoFormat("[FreeSwitchDirectory] requestBody item {0} {1}",item.Key, item.Value); |
49 | } | 49 | } |
@@ -52,37 +52,37 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
52 | response["keepalive"] = false; | 52 | response["keepalive"] = false; |
53 | response["int_response_code"]=200; | 53 | response["int_response_code"]=200; |
54 | response["str_response_string"] = @"<?xml version=""1.0"" encoding=""utf-8""?> | 54 | response["str_response_string"] = @"<?xml version=""1.0"" encoding=""utf-8""?> |
55 | <document type=""freeswitch/xml""> | 55 | <document type=""freeswitch/xml""> |
56 | <section name=""dialplan""> | 56 | <section name=""dialplan""> |
57 | <context name=""default""> | 57 | <context name=""default""> |
58 | 58 | ||
59 | <!-- dial via SIP uri --> | 59 | <!-- dial via SIP uri --> |
60 | <extension name=""sip_uri""> | 60 | <extension name=""sip_uri""> |
61 | <condition field=""destination_number"" expression=""^sip:(.*)$""> | 61 | <condition field=""destination_number"" expression=""^sip:(.*)$""> |
62 | <action application=""bridge"" data=""sofia/${use_profile}/$1""/> | 62 | <action application=""bridge"" data=""sofia/${use_profile}/$1""/> |
63 | <!--<action application=""bridge"" data=""$1""/>--> | 63 | <!--<action application=""bridge"" data=""$1""/>--> |
64 | </condition> | 64 | </condition> |
65 | </extension> | 65 | </extension> |
66 | 66 | ||
67 | <extension name=""opensim_conferences""> | 67 | <extension name=""opensim_conferences""> |
68 | <condition field=""destination_number"" expression=""^confctl-(.*)$""> | 68 | <condition field=""destination_number"" expression=""^confctl-(.*)$""> |
69 | <action application=""answer""/> | 69 | <action application=""answer""/> |
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 | 73 | ||
74 | <extension name=""avatar""> | 74 | <extension name=""avatar""> |
75 | <condition field=""destination_number"" expression=""^(x.*)$""> | 75 | <condition field=""destination_number"" expression=""^(x.*)$""> |
76 | <action application=""bridge"" data=""user/$1""/> | 76 | <action application=""bridge"" data=""user/$1""/> |
77 | </condition> | 77 | </condition> |
78 | </extension> | 78 | </extension> |
79 | 79 | ||
80 | </context> | 80 | </context> |
81 | </section> | 81 | </section> |
82 | </document>"; | 82 | </document>"; |
83 | 83 | ||
84 | return response; | 84 | return response; |
85 | } | 85 | } |
86 | } | 86 | } |
87 | 87 | ||
88 | } \ No newline at end of file | 88 | } |