mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 08:29:45 +00:00
FS-7722 fixed issue with record_session including params when creating path
This commit is contained in:
parent
ac9506b084
commit
208c3cfe42
@ -2422,6 +2422,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t
|
|||||||
|
|
||||||
if ((p = strrchr(path, *SWITCH_PATH_SEPARATOR))) {
|
if ((p = strrchr(path, *SWITCH_PATH_SEPARATOR))) {
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
|
if (*path == '{') {
|
||||||
|
path = switch_find_end_paren(path, '{', '}') + 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {
|
if (switch_dir_make_recursive(path, SWITCH_DEFAULT_DIR_PERMS, switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error creating %s\n", path);
|
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error creating %s\n", path);
|
||||||
return SWITCH_STATUS_GENERR;
|
return SWITCH_STATUS_GENERR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user