diff --git a/src/mod/endpoints/mod_alsa/mod_alsa.c b/src/mod/endpoints/mod_alsa/mod_alsa.c index 87e0bf658e..2457317d67 100644 --- a/src/mod/endpoints/mod_alsa/mod_alsa.c +++ b/src/mod/endpoints/mod_alsa/mod_alsa.c @@ -1622,11 +1622,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 {