mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
[core, mod_commands] Execute command under shell when using spawn in switch_system().
This commit is contained in:
1 parent
9aee9b8e24
commit
311e932df5
5 files changed
+79
-34
No files matched your search
@@ -6530,7 +6530,7 @@ SWITCH_STANDARD_API(spawn_stream_function)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if (switch_stream_spawn(cmd, SWITCH_TRUE, stream) < 0) {
|
||||
if (switch_stream_spawn(cmd, SWITCH_FALSE, SWITCH_TRUE, stream) < 0) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Failed to execute command: %s\n", cmd);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user