]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9138: [avmd] Add config to vanilla folder
authorPiotr Gregor <piotrek.gregor@gmail.com>
Thu, 18 Aug 2016 13:15:04 +0000 (14:15 +0100)
committerPiotr Gregor <piotrek.gregor@gmail.com>
Fri, 2 Sep 2016 20:07:02 +0000 (21:07 +0100)
conf/vanilla/autoload_configs/avmd.conf.xml [new file with mode: 0644]
freeswitch.spec

diff --git a/conf/vanilla/autoload_configs/avmd.conf.xml b/conf/vanilla/autoload_configs/avmd.conf.xml
new file mode 100644 (file)
index 0000000..2366195
--- /dev/null
@@ -0,0 +1,61 @@
+<configuration name="avmd.conf" description="AVMD config">
+    <settings>
+
+    <!-- Edit these settings to change default behaviour
+         of each avmd session. Settings can be overwritten
+         by values passed dynamically per each session -->
+
+
+        <!-- Global settings -->
+
+            <!-- define/undefine this to enable/disable logging of avmd
+                 intermediate computations to log -->
+            <param name="debug" value="0"/>
+
+            <!-- define/undef this to enable/disable verbose logging (and reporting to the console)
+                 of detection status and other diagnostics like parameters avmd session has been started with,
+                 change of configuration parameters, beep detection status after session ended
+                 (stop event is fired independently of this setting and beep status included there) -->
+            <param name="report_status" value="1"/>
+
+            <!-- define/undefine this to enable/disable faster computation
+                 of arcus cosine - table will be created mapping floats
+                 to integers and returning arc cos values given these integer
+                 indices into table -->
+            <param name="fast_math" value="0"/>
+        <!-- Global settings end -->
+
+
+        <!-- Per call (session) settings. These settings can be overwritten
+             with custom/different values per each avmd session -->
+
+            <!-- define/undefine this to classify avmd beep detection as valid
+                 only when there is required number of consecutive elements
+                 in the SMA buffer without reset -->
+            <param name="require_continuous_streak" value="1"/>
+
+            <!-- required number of consecutive elements in the SMA buffer
+                 without reset. This parameter helps to avoid false beeps, bigger this value is
+                smaller the probability of getting false detection -->
+            <param name="sample_n_continuous_streak" value="15"/>
+
+            <!-- define number of samples to skip starting from the beginning
+                 of the frame and/or after reset  has happened. This serves the purpose of skipping first few
+                estimations on each frame, as these estimations may be inaccurate. This parameter also helps
+                to give more robust detections when it's value is increased (up to scertain limit of about 60). -->
+            <param name="sample_n_to_skip" value="15"/>
+
+            <!-- define/undefine this to enable/disable simplified estimation
+                 of frequency based on approximation of sin(x) with (x)
+                 in the range x=[0,PI/2] -->
+            <param name="simplified_estimation" value="1"/>
+
+            <!-- define/undefine to enable/disable avmd on internal channel -->
+            <param name="inbound_channel" value="0"/>
+
+            <!-- define/undefine to enable/disable avmd on external channel -->
+            <param name="outbound_channel" value="1"/>
+        <!-- Per call settings end -->
+    </settings>
+</configuration>
+
index b436532214de92a6e324189564070df22ab748b6..1d46db40de8a638bf406d9b2a1f1c78eed7d319a 100644 (file)
@@ -1172,7 +1172,7 @@ Requires: %{name} = %{version}-%{release}
 Implements TGML Tone Generation for the FreeSWITCH open source telephony platform
 
 ######################################################################################################################
-#                              FreeSWITCH Programing Language Modules
+#                              FreeSWITCH Programming Language Modules
 ######################################################################################################################
 
 %package lua
@@ -1882,6 +1882,7 @@ fi
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/acl.conf.xml
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/alsa.conf.xml
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/amqp.conf.xml
+%config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/avmd.conf.xml
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/blacklist.conf.xml
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/callcenter.conf.xml
 %config(noreplace) %attr(0640, freeswitch, daemon) %{sysconfdir}/autoload_configs/cdr_csv.conf.xml