<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[Freeswitch-trunk][16233] </title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<div id="header">FreeSWITCH Subversion</div>
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=16233">16233</a></dd>
<dt>Author</dt> <dd>mikej</dd>
<dt>Date</dt> <dd>2010-01-10 21:20:42 -0600 (Sun, 10 Jan 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>add recordings_dir</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#freeswitchtrunkMakefileam">freeswitch/trunk/Makefile.am</a></li>
<li><a href="#freeswitchtrunkconfautoload_configsconferenceconfxml">freeswitch/trunk/conf/autoload_configs/conference.conf.xml</a></li>
<li><a href="#freeswitchtrunkconfdialplandefaultxml">freeswitch/trunk/conf/dialplan/default.xml</a></li>
<li><a href="#freeswitchtrunkconfsip_profilesinternalipv6xml">freeswitch/trunk/conf/sip_profiles/internal-ipv6.xml</a></li>
<li><a href="#freeswitchtrunkconfsip_profilesinternalxml">freeswitch/trunk/conf/sip_profiles/internal.xml</a></li>
<li><a href="#freeswitchtrunkconfigurein">freeswitch/trunk/configure.in</a></li>
<li><a href="#freeswitchtrunkcontribintralanmanPHPfs_curlsqlmysql40withsamplessql">freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql</a></li>
<li><a href="#freeswitchtrunkcontribintralanmanPHPfs_curlsqlmysql50withsamplessql">freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql</a></li>
<li><a href="#freeswitchtrunkcontribintralanmanPHPfs_curlsqloraclewithexamplessql">freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql</a></li>
<li><a href="#freeswitchtrunksrcmodendpointsmod_skypiaxconfigsdefaultxml">freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/default.xml</a></li>
<li><a href="#freeswitchtrunksrcmodendpointsmod_sofiasofiac">freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c</a></li>
<li><a href="#freeswitchtrunksrcswitch_corec">freeswitch/trunk/src/switch_core.c</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkMakefileam"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/Makefile.am (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/Makefile.am        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/Makefile.am        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -320,6 +320,7 @@
</span><span class="cx">         @for x in mod db log log/xml_cdr bin scripts grammar recordings ; do \
</span><span class="cx">                 $(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \
</span><span class="cx">          done
</span><ins>+        $(mkinstalldirs) $(DESTDIR)@recordingsdir@
</ins><span class="cx">         $(mkinstalldirs) $(DESTDIR)@modinstdir@
</span><span class="cx">         test -d $(DESTDIR)@confdir@ || $(MAKE) samples-conf
</span><span class="cx">         test -d $(DESTDIR)$(prefix)/htdocs || $(MAKE) samples-htdocs
</span></span></pre></div>
<a id="freeswitchtrunkconfautoload_configsconferenceconfxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/autoload_configs/conference.conf.xml (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/autoload_configs/conference.conf.xml        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/conf/autoload_configs/conference.conf.xml        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -97,7 +97,7 @@
</span><span class="cx"> <!-- Uncomment auto-record to toggle recording every conference call. -->
</span><span class="cx"> <!-- Another valid value is shout://user:pass@server.com/live.mp3 -->
</span><span class="cx"> <!--
</span><del>- <param name="auto-record" value="$${base_dir}/recordings/${conference_name}_${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</del><ins>+ <param name="auto-record" value="$${recordings_dir}/${conference_name}_${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</ins><span class="cx"> -->
</span><span class="cx"> </profile>
</span><span class="cx">
</span></span></pre></div>
<a id="freeswitchtrunkconfdialplandefaultxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/dialplan/default.xml (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/dialplan/default.xml        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/conf/dialplan/default.xml        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -247,7 +247,7 @@
</span><span class="cx">         <action application="export" data="dialed_extension=$1"/>
</span><span class="cx">         <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> -->
</span><span class="cx">         <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/>
</span><del>-        <action application="bind_meta_app" data="2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</del><ins>+        <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</ins><span class="cx">         <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/>
</span><span class="cx">         <action application="set" data="ringback=${us-ring}"/>
</span><span class="cx">         <action application="set" data="transfer_ringback=$${hold_music}"/>
</span></span></pre></div>
<a id="freeswitchtrunkconfsip_profilesinternalipv6xml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/sip_profiles/internal-ipv6.xml (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/sip_profiles/internal-ipv6.xml        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/conf/sip_profiles/internal-ipv6.xml        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> <param name="apply-inbound-acl" value="domains"/>
</span><span class="cx"> <!--<param name="apply-register-acl" value="domains"/>-->
</span><span class="cx"> <!--<param name="dtmf-type" value="info"/>-->
</span><del>- <param name="record-template" value="$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</del><ins>+ <param name="record-template" value="$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</ins><span class="cx"> <!--enable to use presence and mwi -->
</span><span class="cx"> <param name="manage-presence" value="true"/>
</span><span class="cx"> <!-- This setting is for AAL2 bitpacking on G726 -->
</span></span></pre></div>
<a id="freeswitchtrunkconfsip_profilesinternalxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/sip_profiles/internal.xml (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/sip_profiles/internal.xml        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/conf/sip_profiles/internal.xml        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> <param name="local-network-acl" value="localnet.auto"/>
</span><span class="cx"> <!--<param name="apply-register-acl" value="domains"/>-->
</span><span class="cx"> <!--<param name="dtmf-type" value="info"/>-->
</span><del>- <param name="record-path" value="$${base_dir}/recordings"/>
</del><ins>+ <param name="record-path" value="$${recordings_dir}"/>
</ins><span class="cx"> <param name="record-template" value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</span><span class="cx"> <!--enable to use presence -->
</span><span class="cx"> <param name="manage-presence" value="true"/>
</span></span></pre></div>
<a id="freeswitchtrunkconfigurein"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/configure.in (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/configure.in        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/configure.in        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -46,6 +46,10 @@
</span><span class="cx"> AC_SUBST(rundir)
</span><span class="cx"> AC_DEFINE_UNQUOTED([SWITCH_RUN_DIR],"${rundir}",[where to put pidfile to])
</span><span class="cx">
</span><ins>+recordingsdir="${prefix}/recordings"
+AC_SUBST(recordingsdir)
+AC_DEFINE_UNQUOTED([SWITCH_RECORDINGS_DIR],"${recordingsdir}",[where to put recording files])
+
</ins><span class="cx"> if test "$sysconfdir" = "\${prefix}/etc" ; then
</span><span class="cx"> confdir="$prefix/conf"
</span><span class="cx"> else
</span></span></pre></div>
<a id="freeswitchtrunkcontribintralanmanPHPfs_curlsqlmysql40withsamplessql"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-4.0-with-samples.sql        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -241,7 +241,7 @@
</span><span class="cx"> (52, 30, 'sleep', '1000', 'action', 520),
</span><span class="cx"> (53, 30, 'voicemail', 'check default ${domain_name} ${dialed_extension}', 'action', 530),
</span><span class="cx"> (54, 30, 'bind_meta_app', '1 b s execute_extension::dx XML features', 'anti-action', 540),
</span><del>-(55, 30, 'bind_meta_app', '2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
</del><ins>+(55, 30, 'bind_meta_app', '2 b s record_session::$${recordings_dir}//${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
</ins><span class="cx"> (56, 30, 'bind_meta_app', '3 b s execute_extension::cf XML features', 'anti-action', 560),
</span><span class="cx"> (57, 30, 'set', 'ringback=${us-ring}', 'anti-action', 570),
</span><span class="cx"> (58, 30, 'set', 'transfer_ringback=$${hold_music}', 'anti-action', 580),
</span></span></pre></div>
<a id="freeswitchtrunkcontribintralanmanPHPfs_curlsqlmysql50withsamplessql"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/mysql-5.0-with-samples.sql        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -269,7 +269,7 @@
</span><span class="cx"> (52, 30, 'sleep', '1000', 'action', 520),
</span><span class="cx"> (53, 30, 'voicemail', 'check default ${domain_name} ${dialed_extension}', 'action', 530),
</span><span class="cx"> (54, 30, 'bind_meta_app', '1 b s execute_extension::dx XML features', 'anti-action', 540),
</span><del>-(55, 30, 'bind_meta_app', '2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
</del><ins>+(55, 30, 'bind_meta_app', '2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
</ins><span class="cx"> (56, 30, 'bind_meta_app', '3 b s execute_extension::cf XML features', 'anti-action', 560),
</span><span class="cx"> (57, 30, 'set', 'ringback=${us-ring}', 'anti-action', 570),
</span><span class="cx"> (58, 30, 'set', 'transfer_ringback=$${hold_music}', 'anti-action', 580),
</span></span></pre></div>
<a id="freeswitchtrunkcontribintralanmanPHPfs_curlsqloraclewithexamplessql"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/contrib/intralanman/PHP/fs_curl/sql/oracle-with-examples.sql        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -241,7 +241,7 @@
</span><span class="cx"> (52, 30, 'sleep', '1000', 'action', 520),
</span><span class="cx"> (53, 30, 'voicemail', 'check default ${domain_name} ${dialed_extension}', 'action', 530),
</span><span class="cx"> (54, 30, 'bind_meta_app', '1 b s execute_extension::dx XML features', 'anti-action', 540),
</span><del>-(55, 30, 'bind_meta_app', '2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
</del><ins>+(55, 30, 'bind_meta_app', '2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav', 'anti-action', 550),
</ins><span class="cx"> (56, 30, 'bind_meta_app', '3 b s execute_extension::cf XML features', 'anti-action', 560),
</span><span class="cx"> (57, 30, 'set', 'ringback=${us-ring}', 'anti-action', 570),
</span><span class="cx"> (58, 30, 'set', 'transfer_ringback=$${hold_music}', 'anti-action', 580),
</span></span></pre></div>
<a id="freeswitchtrunksrcmodendpointsmod_skypiaxconfigsdefaultxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/default.xml (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/default.xml        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/configs/default.xml        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -195,7 +195,7 @@
</span><span class="cx">         <action application="export" data="dialed_extension=$1"/>
</span><span class="cx">         <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> -->
</span><span class="cx">         <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/>
</span><del>-        <action application="bind_meta_app" data="2 b s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</del><ins>+        <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
</ins><span class="cx">         <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/>
</span><span class="cx">         <action application="set" data="ringback=${us-ring}"/>
</span><span class="cx">         <action application="set" data="transfer_ringback=$${hold_music}"/>
</span></span></pre></div>
<a id="freeswitchtrunksrcmodendpointsmod_sofiasofiac"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -5144,7 +5144,7 @@
</span><span class="cx">                                 if (!strcasecmp(rec_header, "on")) {
</span><span class="cx">                                         char *file = NULL, *tmp = NULL;
</span><span class="cx">
</span><del>-                                        tmp = switch_mprintf("%s%s%s", profile->record_path ? profile->record_path : "${base_dir}/recordings",
</del><ins>+                                        tmp = switch_mprintf("%s%s%s", profile->record_path ? profile->record_path : "${recordings_dir}",
</ins><span class="cx">                                                                                  SWITCH_PATH_SEPARATOR, profile->record_template);
</span><span class="cx">                                         file = switch_channel_expand_variables(channel, tmp);
</span><span class="cx">                                         switch_ivr_record_session(session, file, 0, NULL);
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_corec"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_core.c (16232 => 16233)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_core.c        2010-01-10 23:36:10 UTC (rev 16232)
+++ freeswitch/trunk/src/switch_core.c        2010-01-11 03:20:42 UTC (rev 16233)
</span><span class="lines">@@ -458,6 +458,14 @@
</span><span class="cx"> #endif
</span><span class="cx">         }
</span><span class="cx">
</span><ins>+        if (!SWITCH_GLOBAL_dirs.recordings_dir && (SWITCH_GLOBAL_dirs.recordings_dir = (char *) malloc(BUFSIZE))) {
+#ifdef SWITCH_RECORDINGS_DIR
+                switch_snprintf(SWITCH_GLOBAL_dirs.recordings_dir, BUFSIZE, "%s", SWITCH_RECORDINGS_DIR);
+#else
+                switch_snprintf(SWITCH_GLOBAL_dirs.recordings_dir, BUFSIZE, "%s%srecordings", base_dir, SWITCH_PATH_SEPARATOR);
+#endif
+        }
+
</ins><span class="cx">         if (!SWITCH_GLOBAL_dirs.storage_dir && (SWITCH_GLOBAL_dirs.storage_dir = (char *) malloc(BUFSIZE))) {
</span><span class="cx"> #ifdef SWITCH_STORAGE_DIR
</span><span class="cx">                 switch_snprintf(SWITCH_GLOBAL_dirs.storage_dir, BUFSIZE, "%s", SWITCH_STORAGE_DIR);
</span><span class="lines">@@ -520,6 +528,7 @@
</span><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.script_dir);
</span><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.htdocs_dir);
</span><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.grammar_dir);
</span><ins>+        switch_assert(SWITCH_GLOBAL_dirs.recordings_dir);
</ins><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.temp_dir);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1219,6 +1228,7 @@
</span><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.script_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.htdocs_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.grammar_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><ins>+        switch_dir_make_recursive(SWITCH_GLOBAL_dirs.recordings_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</ins><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.temp_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><span class="cx">
</span><span class="cx">         switch_mutex_init(&runtime.uuid_mutex, SWITCH_MUTEX_NESTED, runtime.memory_pool);
</span><span class="lines">@@ -1253,6 +1263,7 @@
</span><span class="cx">         switch_find_local_ip(guess_ip, sizeof(guess_ip), NULL, AF_INET6);
</span><span class="cx">         switch_core_set_variable("local_ip_v6", guess_ip);
</span><span class="cx">         switch_core_set_variable("base_dir", SWITCH_GLOBAL_dirs.base_dir);
</span><ins>+        switch_core_set_variable("recordings_dir", SWITCH_GLOBAL_dirs.recordings_dir);
</ins><span class="cx">         switch_core_set_serial();
</span><span class="cx">
</span><span class="cx">         switch_console_init(runtime.memory_pool);
</span><span class="lines">@@ -1791,6 +1802,7 @@
</span><span class="cx">         switch_safe_free(SWITCH_GLOBAL_dirs.script_dir);
</span><span class="cx">         switch_safe_free(SWITCH_GLOBAL_dirs.htdocs_dir);
</span><span class="cx">         switch_safe_free(SWITCH_GLOBAL_dirs.grammar_dir);
</span><ins>+        switch_safe_free(SWITCH_GLOBAL_dirs.recordings_dir);
</ins><span class="cx">         switch_safe_free(SWITCH_GLOBAL_dirs.temp_dir);
</span><span class="cx">
</span><span class="cx">         switch_core_hash_destroy(&runtime.global_vars);
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>
</body>
</html>