diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index c8b0bfeb2f..f6df069639 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -1595,8 +1595,8 @@ static switch_status_t place_call(char **argv, int argc, switch_stream_handle_t if (!switch_strlen_zero(argv[4])) { tech_pvt->sample_rate = atoi(argv[4]); } - - if (!switch_strlen_zero(argv[4])) { + + if (!switch_strlen_zero(argv[5])) { tech_pvt->codec_ms = atoi(argv[5]); }