]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make this param optional in the config on all platforms but solaris since it doesn...
authorBrian West <brian@freeswitch.org>
Fri, 23 Jan 2009 21:34:43 +0000 (21:34 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 23 Jan 2009 21:34:43 +0000 (21:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11470 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/portaudio.conf.xml
src/mod/endpoints/mod_portaudio/mod_portaudio.c

index 9296a2d59c189f7fa02705e7d30e4ae4f035c7ad..92c9ec7188eae9ff9ca3571d8d7de5ba37438a41 100644 (file)
@@ -15,6 +15,8 @@
     <!--<param name="ring-file" value="/sounds/ring.wav"/>-->
     <!--Number of seconds to pause between rings -->
     <!--<param name="ring-interval" value="5"/>-->
+    <!--Enable or Disable dual_streams-->
+    <!--<param name="dual-streams" value="true"/>-->
 
     <!--file to play when calls are on hold-->
     <param name="hold-file" value="$${hold_music}"/>
index 628c9f6609a2dcfe946e0c95afe76957a5d90ae4..4719e5e1dfe67e932a1ceccd5c98f9b6e11ed7f8 100644 (file)
@@ -782,8 +782,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_portaudio_load)
        /* dual streams makes portaudio on solaris choke */
 #if defined(sun) || defined(__sun)
        globals.dual_streams = 0;
-#else
-       globals.dual_streams = 1;
 #endif
        
        if ((status = load_config()) != SWITCH_STATUS_SUCCESS) {
@@ -863,6 +861,12 @@ static switch_status_t load_config(void)
                                set_global_ring_file(val);
                        } else if (!strcmp(var, "hold-file")) {
                                set_global_hold_file(val);
+                       } else if (!strcmp(var, "dual-streams")) {
+                               if (switch_true(val)) {
+                                       globals.dual_streams = 1;
+                               } else {
+                                       globals.dual_streams = 0;
+                               }
                        } else if (!strcmp(var, "timer-name")) {
                                set_global_timer_name(val);
                        } else if (!strcmp(var, "sample-rate")) {