Hi, <br><br>Any specific reason for not using the csv module of python that ships with standard library itself ? I use it whenever I have to parse or write cdr csv file. <br><br>import csv<br>cdrfields=[&#39;accountcode&#39;, &#39;src&#39;, &#39;dst&#39;, &#39;dcontext&#39;, &#39;clid&#39;, &#39;channel&#39;, &#39;dstchannel&#39;, &#39;lastapp&#39;, &#39;lastdata&#39;, &#39;start&#39;, &#39;answer&#39;, &#39;end&#39;, &#39;duration&#39;, &#39;billsec&#39;, &#39;disposition&#39;, &#39;amaflags&#39;, &#39;uniqueid&#39;, &#39;userfield&#39;]<br>
cdr = csv.DictReader(open(&#39;Master.csv&#39;), cdrfields, &#39;&#39;, &#39;&#39;)<br><br><a href="http://docs.python.org/library/csv.html">http://docs.python.org/library/csv.html</a><br><br><br><div class="gmail_quote">
On Sat, Apr 3, 2010 at 4:29 AM, Terry Wilson <span dir="ltr">&lt;<a href="mailto:twilson@digium.com">twilson@digium.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
-----------------------------------------------------------<br>
This is an automatically generated e-mail. To reply, visit:<br>
</div><a href="https://reviewboard.asterisk.org/r/605/" target="_blank">https://reviewboard.asterisk.org/r/605/</a><br>
-----------------------------------------------------------<br>
<br>
Review request for Asterisk Developers and Russell Bryant.<br>
<br>
<br>
Summary<br>
-------<br>
<br>
This is a library that adds the ability to test the CDRs that are generated during a test.  It can read a list of CDRs in from cdr-csv file, and test that the fields match some given input.<br>
<br>
I have also added CDR parsing to the iax-basic-call test. I&#39;ll correct the trailing whitespace that I see that crept in. :-)<br>
<br>
<br>
Diffs<br>
-----<br>
<br>
  /asterisk/trunk/lib/python/asterisk/cdr.py PRE-CREATION<br>
  /asterisk/trunk/lib/python/asterisk/self_test/Master.csv PRE-CREATION<br>
  /asterisk/trunk/lib/python/asterisk/self_test/Master2.csv PRE-CREATION<br>
  /asterisk/trunk/tests/iax-call-basic/run-test 171<br>
<br>
Diff: <a href="https://reviewboard.asterisk.org/r/605/diff" target="_blank">https://reviewboard.asterisk.org/r/605/diff</a><br>
<br>
<br>
Testing<br>
-------<br>
<br>
There is some internal testing done and I have run the iax-basic-call test and verified that it works on trunk and branches/1.4. On 1.4.26.2, the iax-basic-call test fails because no Master.csv file is created for some reason.<br>

<br>
<br>
Thanks,<br>
<font color="#888888"><br>
Terry<br>
</font><div><div></div><div class="h5"><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br>Godson Gera<br><a href="http://godson.in">http://godson.in</a><br><br>