diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 730dbe753c..5184e94842 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -845,6 +845,8 @@ static switch_status_t load_config(void) return SWITCH_STATUS_TERM; } + globals.dual_streams = 0; + globals.indev = globals.outdev = globals.ringdev = -1; globals.sample_rate = 8000; @@ -919,10 +921,6 @@ static switch_status_t load_config(void) globals.codec_ms = 20; } - if (!globals.dual_streams) { - globals.dual_streams = 0; - } - if (!globals.ring_interval) { globals.ring_interval = 5; }