mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
make this param optional in the config on all platforms but solaris since it doesn't like it anyway
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11470 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a5890091ec
commit
963cbf4c3c
@ -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}"/>
|
||||
|
@ -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")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user