From: Bradley Jokinen Date: Wed, 24 Jun 2015 17:25:48 +0000 (-0500) Subject: FS-7722 fixed issue with record_session including params when creating path X-Git-Tag: v1.6.2~393^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=208c3cfe42faaa0e42b7159201fe8657e0237fec;p=thirdparty%2Ffreeswitch.git FS-7722 fixed issue with record_session including params when creating path --- diff --git a/src/switch_ivr_async.c b/src/switch_ivr_async.c index eea7cec5db..052e949d5f 100644 --- a/src/switch_ivr_async.c +++ b/src/switch_ivr_async.c @@ -2422,6 +2422,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_session(switch_core_session_t if ((p = strrchr(path, *SWITCH_PATH_SEPARATOR))) { *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) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Error creating %s\n", path); return SWITCH_STATUS_GENERR;