<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/1552/">https://reviewboard.asterisk.org/r/1552/</a>
     </td>
    </tr>
   </table>
   <br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/media/rb/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, Paul Belanger and mjordan.</div>
<div>By jrose.</div>


<p style="color: grey;"><i>Updated Oct. 31, 2011, 12:25 p.m.</i></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</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;">This update adds multiple CDR files for matching and changes the way expectations are added.  Now filename has to be included.  Thinking about going back and making a default value of master, but honestly I don&#39;t know if I see the point since the master.csv has unreliable order for even the most simple of calls.

Also updated the cdr_originate_sip_congestion test to use this.

Additional testing:  Made sure multiple files and multiple lines per file could be used and generate expected results.</pre>
  </td>
 </tr>
</table>


<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;">A while back, Pabelanger and I were working on creating a general method of testing CDR logging.  At the time, we sort of hit a wall with the order individual call logs were being stuffed into the master cdr file.

In order to alleviate that, this patch changes the CDRTestCase class to use CDR files generated based on account codes.  At the moment, I&#39;m just specifically using a testsuite account code and loading that cdr file, but it isn&#39;t a stretch to say we could put in multiple account codes and use a bunch of different cdr logs so that the order of which channel hangs up isn&#39;t important.

In addition to that, a couple minor changes were made to the cdr_originate_sip_congestion_log test.  It now runs without any chance for timing based failures (before it was 50/50 whether congestion or failure would come first/second, now only one action is checked and logged, that being the congestion).

If this seems appropriate, I&#39;ll move forward with making the CDR Expectations use a variable to determine which file they should be checking against.</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;">Checked to see how the test was logging CDR in separate files, made sure test was passing appropriately.</pre>
  </td>
 </tr>
</table>




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

 <li>/asterisk/team/group/cdr_test_log_congestion/tests/cdr/cdr_originate_sip_congestion_log/configs/ast1/extensions.conf <span style="color: grey">(2657)</span></li>

 <li>/asterisk/team/group/cdr_test_log_congestion/tests/cdr/cdr_originate_sip_congestion_log/configs/ast1/sip.conf <span style="color: grey">(2657)</span></li>

 <li>/asterisk/team/group/cdr_test_log_congestion/tests/cdr/cdr_originate_sip_congestion_log/run-test <span style="color: grey">(2657)</span></li>

 <li>/asterisk/team/group/cdr_test_log_congestion/lib/python/asterisk/CDRTestCase.py <span style="color: grey">(2657)</span></li>

</ul>

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




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




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