<!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][16241] </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=16241">16241</a></dd>
<dt>Author</dt> <dd>mikej</dd>
<dt>Date</dt> <dd>2010-01-11 10:32:35 -0600 (Mon, 11 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>add soundsdir configure var and sounds_dir global freeswitch var</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="#freeswitchtrunkconfautoload_configslocal_streamconfxml">freeswitch/trunk/conf/autoload_configs/local_stream.conf.xml</a></li>
<li><a href="#freeswitchtrunkconflangenenxml">freeswitch/trunk/conf/lang/en/en.xml</a></li>
<li><a href="#freeswitchtrunkconflangruruxml">freeswitch/trunk/conf/lang/ru/ru.xml</a></li>
<li><a href="#freeswitchtrunkconfvarsxml">freeswitch/trunk/conf/vars.xml</a></li>
<li><a href="#freeswitchtrunkconfigurein">freeswitch/trunk/configure.in</a></li>
<li><a href="#freeswitchtrunksrcincludeswitch_typesh">freeswitch/trunk/src/include/switch_types.h</a></li>
<li><a href="#freeswitchtrunksrcmodapplicationsmod_snapshotmod_snapshotc">freeswitch/trunk/src/mod/applications/mod_snapshot/mod_snapshot.c</a></li>
<li><a href="#freeswitchtrunksrcswitch_corec">freeswitch/trunk/src/switch_core.c</a></li>
<li><a href="#freeswitchtrunksrcswitch_ivrc">freeswitch/trunk/src/switch_ivr.c</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="freeswitchtrunkMakefileam"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/Makefile.am (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/Makefile.am        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/Makefile.am        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx">          echo $$full_sound_dir | grep  music  &gt;/dev/null || soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_version.tar.gz`; \
</span><span class="cx">          if test &quot;$$target&quot; = &quot;install&quot;; then $(MAKE) $(AM_MAKEFLAGS) core_install; else $(MAKE) $(AM_MAKEFLAGS) core ; fi; \
</span><span class="cx">          if test &quot;$$target_prefix&quot; = &quot;sounds&quot;; then \
</span><del>-           if test &quot;$$target&quot; = &quot;install&quot;; then $(GETSOUNDS) $$soundfile $(DESTDIR)$(PREFIX)/sounds/; else $(GETSOUNDS) $$soundfile ; fi; \
</del><ins>+           if test &quot;$$target&quot; = &quot;install&quot;; then $(GETSOUNDS) $$soundfile $(DESTDIR)@soundsdir@/; else $(GETSOUNDS) $$soundfile ; fi; \
</ins><span class="cx">          else \
</span><span class="cx">            cd src/mod &amp;&amp; $(MAKE) $(AM_MAKEFLAGS) $@ ;\
</span><span class="cx">          fi
</span></span></pre></div>
<a id="freeswitchtrunkconfautoload_configsconferenceconfxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/autoload_configs/conference.conf.xml (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/autoload_configs/conference.conf.xml        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/conf/autoload_configs/conference.conf.xml        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx">       &lt;!-- If TTS is enabled all audio-file params beginning with --&gt;
</span><span class="cx">       &lt;!-- 'say:' will be considered text to say with TTS --&gt;
</span><span class="cx">       &lt;!-- Set a default path here so you can use relative paths in the other sound params--&gt;
</span><del>-      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${base_dir}/sounds/en/us/callie&quot;/&gt;
</del><ins>+      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${sounds_dir}/en/us/callie&quot;/&gt;
</ins><span class="cx">       &lt;!-- File to play to acknowledge succees --&gt;
</span><span class="cx">       &lt;!--&lt;param name=&quot;ack-sound&quot; value=&quot;beep.wav&quot;/&gt;--&gt;
</span><span class="cx">       &lt;!-- File to play to acknowledge failure --&gt;
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx">       &lt;param name=&quot;rate&quot; value=&quot;16000&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;interval&quot; value=&quot;20&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;energy-level&quot; value=&quot;300&quot;/&gt;
</span><del>-      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${base_dir}/sounds/en/us/callie&quot;/&gt;
</del><ins>+      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${sounds_dir}/en/us/callie&quot;/&gt;
</ins><span class="cx">       &lt;param name=&quot;muted-sound&quot; value=&quot;conference/conf-muted.wav&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;unmuted-sound&quot; value=&quot;conference/conf-unmuted.wav&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;alone-sound&quot; value=&quot;conference/conf-alone.wav&quot;/&gt;
</span><span class="lines">@@ -131,7 +131,7 @@
</span><span class="cx">       &lt;param name=&quot;rate&quot; value=&quot;32000&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;interval&quot; value=&quot;20&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;energy-level&quot; value=&quot;300&quot;/&gt;
</span><del>-      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${base_dir}/sounds/en/us/callie&quot;/&gt;
</del><ins>+      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${sounds_dir}/en/us/callie&quot;/&gt;
</ins><span class="cx">       &lt;param name=&quot;muted-sound&quot; value=&quot;conference/conf-muted.wav&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;unmuted-sound&quot; value=&quot;conference/conf-unmuted.wav&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;alone-sound&quot; value=&quot;conference/conf-alone.wav&quot;/&gt;
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">       &lt;param name=&quot;rate&quot; value=&quot;48000&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;interval&quot; value=&quot;10&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;energy-level&quot; value=&quot;300&quot;/&gt;
</span><del>-      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${base_dir}/sounds/en/us/callie&quot;/&gt;
</del><ins>+      &lt;param name=&quot;sound-prefix&quot; value=&quot;$${sounds_dir}/en/us/callie&quot;/&gt;
</ins><span class="cx">       &lt;param name=&quot;muted-sound&quot; value=&quot;conference/conf-muted.wav&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;unmuted-sound&quot; value=&quot;conference/conf-unmuted.wav&quot;/&gt;
</span><span class="cx">       &lt;param name=&quot;alone-sound&quot; value=&quot;conference/conf-alone.wav&quot;/&gt;
</span></span></pre></div>
<a id="freeswitchtrunkconfautoload_configslocal_streamconfxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/autoload_configs/local_stream.conf.xml (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/autoload_configs/local_stream.conf.xml        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/conf/autoload_configs/local_stream.conf.xml        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;configuration name=&quot;local_stream.conf&quot; description=&quot;stream files from local dir&quot;&gt;
</span><span class="cx">   &lt;!-- fallback to default if requested moh class isn't found --&gt;
</span><del>-  &lt;directory name=&quot;default&quot; path=&quot;$${base_dir}/sounds/music/8000&quot;&gt;
</del><ins>+  &lt;directory name=&quot;default&quot; path=&quot;$${sounds_dir}/music/8000&quot;&gt;
</ins><span class="cx">     &lt;param name=&quot;rate&quot; value=&quot;8000&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;shuffle&quot; value=&quot;true&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;channels&quot; value=&quot;1&quot;/&gt;
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">     &lt;!--&lt;param name=&quot;chime-max&quot; value=&quot;500&quot;/&gt;--&gt;
</span><span class="cx">   &lt;/directory&gt;
</span><span class="cx"> 
</span><del>-  &lt;directory name=&quot;moh/8000&quot; path=&quot;$${base_dir}/sounds/music/8000&quot;&gt;
</del><ins>+  &lt;directory name=&quot;moh/8000&quot; path=&quot;$${sounds_dir}/music/8000&quot;&gt;
</ins><span class="cx">     &lt;param name=&quot;rate&quot; value=&quot;8000&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;shuffle&quot; value=&quot;true&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;channels&quot; value=&quot;1&quot;/&gt;
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx">     &lt;param name=&quot;timer-name&quot; value=&quot;soft&quot;/&gt;
</span><span class="cx">   &lt;/directory&gt;
</span><span class="cx"> 
</span><del>-  &lt;directory name=&quot;moh/16000&quot; path=&quot;$${base_dir}/sounds/music/16000&quot;&gt;
</del><ins>+  &lt;directory name=&quot;moh/16000&quot; path=&quot;$${sounds_dir}/music/16000&quot;&gt;
</ins><span class="cx">     &lt;param name=&quot;rate&quot; value=&quot;16000&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;shuffle&quot; value=&quot;true&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;channels&quot; value=&quot;1&quot;/&gt;
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">     &lt;param name=&quot;timer-name&quot; value=&quot;soft&quot;/&gt;
</span><span class="cx">   &lt;/directory&gt;
</span><span class="cx"> 
</span><del>-  &lt;directory name=&quot;moh/32000&quot; path=&quot;$${base_dir}/sounds/music/32000&quot;&gt;
</del><ins>+  &lt;directory name=&quot;moh/32000&quot; path=&quot;$${sounds_dir}/music/32000&quot;&gt;
</ins><span class="cx">     &lt;param name=&quot;rate&quot; value=&quot;32000&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;shuffle&quot; value=&quot;true&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;channels&quot; value=&quot;1&quot;/&gt;
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx">     &lt;param name=&quot;timer-name&quot; value=&quot;soft&quot;/&gt;
</span><span class="cx">   &lt;/directory&gt;
</span><span class="cx">   &lt;!--
</span><del>-  &lt;directory name=&quot;moh/48000&quot; path=&quot;$${base_dir}/sounds/music/48000&quot;&gt;
</del><ins>+  &lt;directory name=&quot;moh/48000&quot; path=&quot;$${sounds_dir}/music/48000&quot;&gt;
</ins><span class="cx">     &lt;param name=&quot;rate&quot; value=&quot;48000&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;shuffle&quot; value=&quot;true&quot;/&gt;
</span><span class="cx">     &lt;param name=&quot;channels&quot; value=&quot;1&quot;/&gt;
</span></span></pre></div>
<a id="freeswitchtrunkconflangenenxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/lang/en/en.xml (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/lang/en/en.xml        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/conf/lang/en/en.xml        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> &lt;include&gt;
</span><del>-  &lt;language name=&quot;en&quot; sound-path=&quot;$${base_dir}/sounds/en/us/callie&quot; tts-engine=&quot;cepstral&quot; tts-voice=&quot;callie&quot;&gt;
</del><ins>+  &lt;language name=&quot;en&quot; sound-path=&quot;$${sounds_dir}/en/us/callie&quot; tts-engine=&quot;cepstral&quot; tts-voice=&quot;callie&quot;&gt;
</ins><span class="cx">     &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;demo/*.xml&quot;/&gt; &lt;!-- Note: this now grabs whole subdir, previously grabbed only demo.xml --&gt;
</span><span class="cx">     &lt;!--voicemail_en_tts is purely implemented with tts, we have the files based one that is the default. --&gt;
</span><span class="cx">     &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;vm/sounds.xml&quot;/&gt;  &lt;!-- vm/tts.xml if you want to use tts and have cepstral --&gt;
</span></span></pre></div>
<a id="freeswitchtrunkconflangruruxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/lang/ru/ru.xml (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/lang/ru/ru.xml        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/conf/lang/ru/ru.xml        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
</span><span class="cx"> &lt;!--тестовые файлы Вы звуковые файлы можно взять тут svn co http://svn.freeswitch.ru/bbv/mod_say_ru/ru/  --&gt;
</span><span class="cx"> &lt;include&gt;
</span><del>-  &lt;language name=&quot;ru&quot; sound-path=&quot;$${base_dir}/sounds/ru/RU/elena&quot; tts-engine=&quot;cepstral&quot; tts-voice=&quot;elena&quot;&gt;
</del><ins>+  &lt;language name=&quot;ru&quot; sound-path=&quot;$${sounds_dir}/ru/RU/elena&quot; tts-engine=&quot;cepstral&quot; tts-voice=&quot;elena&quot;&gt;
</ins><span class="cx">     &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;demo/*.xml&quot;/&gt; &lt;!-- Note: this now grabs whole subdir, previously grabbed only demo.xml --&gt;
</span><span class="cx">     &lt;!--voicemail_en_tts is purely implemented with tts, we have the files based one that is the default. --&gt;
</span><span class="cx">     &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;vm/sounds.xml&quot;/&gt;  &lt;!-- vm/tts.xml if you want to use tts and have cepstral --&gt;
</span></span></pre></div>
<a id="freeswitchtrunkconfvarsxml"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/conf/vars.xml (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/conf/vars.xml        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/conf/vars.xml        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -15,7 +15,6 @@
</span><span class="cx">   &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;default_password=1234&quot;/&gt;
</span><span class="cx">   &lt;!-- Did you change it yet? --&gt;
</span><span class="cx"> 
</span><del>-  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;sound_prefix=$${base_dir}/sounds/en/us/callie&quot;/&gt;
</del><span class="cx">   &lt;!--
</span><span class="cx">       This setting is what sets the default domain FreeSWITCH will use if all else fails.
</span><span class="cx">       
</span></span></pre></div>
<a id="freeswitchtrunkconfigurein"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/configure.in (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/configure.in        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/configure.in        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -56,6 +56,10 @@
</span><span class="cx"> AC_SUBST(htdocsdir)
</span><span class="cx"> AC_DEFINE_UNQUOTED([SWITCH_HTDOCS_DIR],&quot;${htdocsdir}&quot;,[where to put htdocs files])
</span><span class="cx"> 
</span><ins>+soundsdir=&quot;${prefix}/sounds&quot;
+AC_SUBST(soundsdir)
+AC_DEFINE_UNQUOTED([SWITCH_SOUNDS_DIR],&quot;${soundsdir}&quot;,[where to put sounds files])
+
</ins><span class="cx"> grammardir=&quot;${prefix}/grammar&quot;
</span><span class="cx"> AC_SUBST(grammardir)
</span><span class="cx"> AC_DEFINE_UNQUOTED([SWITCH_GRAMMAR_DIR],&quot;${grammardir}&quot;,[where to put grammar files])
</span></span></pre></div>
<a id="freeswitchtrunksrcincludeswitch_typesh"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/include/switch_types.h (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/include/switch_types.h        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/src/include/switch_types.h        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -377,6 +377,7 @@
</span><span class="cx">         char *grammar_dir;
</span><span class="cx">         char *storage_dir;
</span><span class="cx">         char *recordings_dir;
</span><ins>+        char *sounds_dir;
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> typedef struct switch_directories switch_directories;
</span></span></pre></div>
<a id="freeswitchtrunksrcmodapplicationsmod_snapshotmod_snapshotc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/mod/applications/mod_snapshot/mod_snapshot.c (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/mod/applications/mod_snapshot/mod_snapshot.c        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/src/mod/applications/mod_snapshot/mod_snapshot.c        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -159,8 +159,8 @@
</span><span class="cx">                 switch_time_exp_lt(&amp;tm, switch_time_make(switch_epoch_time_now(NULL), 0));
</span><span class="cx">                 switch_strftime(date, &amp;retsize, sizeof(date), &quot;%Y_%m_%d_%H_%M_%S&quot;, &amp;tm);
</span><span class="cx">                         
</span><del>-                file = switch_core_session_sprintf(session, &quot;%s%ssounds%s%s_%s.wav&quot;, SWITCH_GLOBAL_dirs.base_dir, 
-                                                                                   SWITCH_PATH_SEPARATOR, SWITCH_PATH_SEPARATOR, cb-&gt;base, date);
</del><ins>+                file = switch_core_session_sprintf(session, &quot;%s%s%s_%s.wav&quot;, SWITCH_GLOBAL_dirs.sounds_dir, 
+                                                                                   SWITCH_PATH_SEPARATOR, cb-&gt;base, date);
</ins><span class="cx"> 
</span><span class="cx">                 switch_core_session_get_read_impl(session, &amp;read_impl);
</span><span class="cx">                 fh.channels = 0;
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_corec"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_core.c (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_core.c        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/src/switch_core.c        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -466,6 +466,14 @@
</span><span class="cx"> #endif
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        if (!SWITCH_GLOBAL_dirs.sounds_dir &amp;&amp; (SWITCH_GLOBAL_dirs.sounds_dir = (char *) malloc(BUFSIZE))) {
+#ifdef SWITCH_SOUNDS_DIR
+                switch_snprintf(SWITCH_GLOBAL_dirs.sounds_dir, BUFSIZE, &quot;%s&quot;, SWITCH_SOUNDS_DIR);
+#else
+                switch_snprintf(SWITCH_GLOBAL_dirs.sounds_dir, BUFSIZE, &quot;%s%ssounds&quot;, base_dir, SWITCH_PATH_SEPARATOR);
+#endif
+        }
+
</ins><span class="cx">         if (!SWITCH_GLOBAL_dirs.storage_dir &amp;&amp; (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, &quot;%s&quot;, SWITCH_STORAGE_DIR);
</span><span class="lines">@@ -529,6 +537,7 @@
</span><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.htdocs_dir);
</span><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.grammar_dir);
</span><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.recordings_dir);
</span><ins>+        switch_assert(SWITCH_GLOBAL_dirs.sounds_dir);
</ins><span class="cx">         switch_assert(SWITCH_GLOBAL_dirs.temp_dir);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1178,7 +1187,6 @@
</span><span class="cx"> {
</span><span class="cx">         switch_uuid_t uuid;
</span><span class="cx">         char guess_ip[256];
</span><del>-        char *dir_path;
</del><span class="cx">         int mask = 0;
</span><span class="cx">         struct in_addr in;
</span><span class="cx">         char hostname[256] = &quot;&quot;;
</span><span class="lines">@@ -1215,10 +1223,6 @@
</span><span class="cx">         }
</span><span class="cx">         switch_assert(runtime.memory_pool != NULL);
</span><span class="cx"> 
</span><del>-        
-        dir_path = switch_mprintf(&quot;%s%ssounds&quot;, SWITCH_GLOBAL_dirs.base_dir, SWITCH_PATH_SEPARATOR);
-        switch_dir_make_recursive(dir_path, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
-        switch_safe_free(dir_path);
</del><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.base_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.mod_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.conf_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><span class="lines">@@ -1229,6 +1233,7 @@
</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><span class="cx">         switch_dir_make_recursive(SWITCH_GLOBAL_dirs.recordings_dir, SWITCH_DEFAULT_DIR_PERMS, runtime.memory_pool);
</span><ins>+        switch_dir_make_recursive(SWITCH_GLOBAL_dirs.sounds_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(&amp;runtime.uuid_mutex, SWITCH_MUTEX_NESTED, runtime.memory_pool);
</span><span class="lines">@@ -1264,6 +1269,8 @@
</span><span class="cx">         switch_core_set_variable(&quot;local_ip_v6&quot;, guess_ip);
</span><span class="cx">         switch_core_set_variable(&quot;base_dir&quot;, SWITCH_GLOBAL_dirs.base_dir);
</span><span class="cx">         switch_core_set_variable(&quot;recordings_dir&quot;, SWITCH_GLOBAL_dirs.recordings_dir);
</span><ins>+        switch_core_set_variable(&quot;sound_prefix&quot;, SWITCH_GLOBAL_dirs.sounds_dir);
+        switch_core_set_variable(&quot;sounds_dir&quot;, SWITCH_GLOBAL_dirs.sounds_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">@@ -1803,6 +1810,7 @@
</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><span class="cx">         switch_safe_free(SWITCH_GLOBAL_dirs.recordings_dir);
</span><ins>+        switch_safe_free(SWITCH_GLOBAL_dirs.sounds_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(&amp;runtime.global_vars);
</span></span></pre></div>
<a id="freeswitchtrunksrcswitch_ivrc"></a>
<div class="modfile"><h4>Modified: freeswitch/trunk/src/switch_ivr.c (16240 => 16241)</h4>
<pre class="diff"><span>
<span class="info">--- freeswitch/trunk/src/switch_ivr.c        2010-01-11 15:48:28 UTC (rev 16240)
+++ freeswitch/trunk/src/switch_ivr.c        2010-01-11 16:32:35 UTC (rev 16241)
</span><span class="lines">@@ -2136,12 +2136,6 @@
</span><span class="cx"> 
</span><span class="cx">         if (sound_path) {
</span><span class="cx">                 switch_channel_set_variable(channel, &quot;sound_prefix&quot;, sound_path);
</span><del>-        } else {
-                switch_channel_set_variable_printf(channel, &quot;sound_prefix&quot;, &quot;%s%ssounds%s%s&quot;, 
-                                                                                   SWITCH_GLOBAL_dirs.base_dir,
-                                                                                   SWITCH_PATH_SEPARATOR,
-                                                                                   SWITCH_PATH_SEPARATOR,
-                                                                                   chan_lang);
</del><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ((si = switch_loadable_module_get_say_interface(module_name))) {
</span></span></pre>
</div>
</div>
<div id="footer">See you at ClueCon</div>

</body>
</html>