<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/1026/">https://reviewboard.asterisk.org/r/1026/</a>
     </td>
    </tr>
   </table>
   <br />









<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="https://reviewboard.asterisk.org/r/1026/diff/2/?file=13117#file13117line358" style="color: black; font-weight: bold; text-decoration: underline;">asterisk/lib/python/asterisk/asterisk.py</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">def __gen_ast_conf(self, ast_conf, dir_cat, ast_conf_options):</pre></td>

  </tr>
 </tbody>




 
 



 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">358</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s">&quot;#include </span><span class="se">\&quot;</span><span class="si">%s</span><span class="s">/asterisk.options.conf.inc</span><span class="se">\&quot;\n</span><span class="s">&quot;</span> <span class="o">%</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">359</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                        <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">astetcdir</span><span class="p">))</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Not sure if this is a bug or what, but a full path must be use for asterisk.conf otherwise Asterisk will not find the file to be #included.</pre>
</div>
<br />



<p>- Paul</p>


<br />
<p>On November 21st, 2010, 12:14 a.m., Paul Belanger wrote:</p>






<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.orgrb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers.</div>
<div>By Paul Belanger.</div>


<p style="color: grey;"><i>Updated 2010-11-21 00:14:45</i></p>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Currently, each test is responsible for defining there verbose and debug settings, this makes it difficult to debug problems.  This patch moves them to a global setting across all tests.  Rather then using &#39;core set verbose / debug&#39; to set the level, we now use the asterisk.conf [options] section.  Additionally, these values are still override-able by passing ast_conf_options.

To accomplish this, new logic was added that will &#39;#include&#39; a file which stores the settings.  The file naming will be defined as:  &lt;asterisk module&gt;.&lt;file category&gt;.conf.inc For example: Configuration variables in asterisk.options.conf.inc would be loaded into asterisk.conf [options] category.

I&#39;ve also updated logger.conf to this format.

Finally, I&#39;ve moved the configs directory out of tests/ to a top level directory.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">All tests pass on local box.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>asterisk/trunk/configs/asterisk.options.conf.inc <span style="color: grey">(PRE-CREATION)</span></li>

 <li>asterisk/trunk/configs/branch-1.4/logger.conf <span style="color: grey">(PRE-CREATION)</span></li>

 <li>asterisk/trunk/configs/branch-1.6.2/logger.conf <span style="color: grey">(PRE-CREATION)</span></li>

 <li>asterisk/trunk/configs/logger.conf <span style="color: grey">(PRE-CREATION)</span></li>

 <li>asterisk/trunk/configs/logger.general.conf.inc <span style="color: grey">(PRE-CREATION)</span></li>

 <li>asterisk/trunk/configs/logger.logfiles.conf.inc <span style="color: grey">(PRE-CREATION)</span></li>

 <li>asterisk/trunk/lib/python/asterisk/asterisk.py <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/blind-transfer-parkingtimeout/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/callparking/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/directed_pickup/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/channel-status/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/connect/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/control-stream-file/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/database/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/execute/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/get-data/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/hangup/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/record-file/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-alpha/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-date/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-datetime/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-digits/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-number/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-phonetic/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/say-time/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/stream-file/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/fastagi/wait-for-digit/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/feature_attended_transfer/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/feature_blonde_transfer/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/iax2/basic-call/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/manager/login/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/mixmonitor/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/mixmonitor_audiohook_inherit/run-test <span style="color: grey">(894)</span></li>

 <li>asterisk/trunk/tests/one-step-parking/run-test <span style="color: grey">(894)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/1026/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>








  </div>
 </body>
</html>