diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index 0bf3e70d85..2b8d171069 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -1856,11 +1856,11 @@ static switch_status_t pa_cmd(char *cmd, switch_core_session_t *isession, switch } if (func) { - if (stream->event) { + if (http) { stream->write_function(stream, "
"); } status = func(&argv[lead], argc - lead, stream); - if (stream->event) { + if (http) { stream->write_function(stream, "\n\n"); } } else {