<span style="font-family: courier new,monospace;">I finally got it work, I'd like to explain here what the problem was and how I fixed it:</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">To start with, after installing cdrtool, and adding some info my tables ended like this:</span><br style="font-family: courier new,monospace;">
<br>select * from destinations; <br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+----+----------------+--------+------------+---------+-----------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| id | gateway | domain | subscriber | dest_id | dest_name |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+----+----------------+--------+------------+---------+-----------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| 3 | <a href="http://1.2.3.4">1.2.3.4</a> | | | 1 | USA | </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+----+----------------+--------+------------+---------+-----------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1 row in set (0.00 sec)</span><br style="font-family: courier new,monospace;"><br>select * from billing_customers; <br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+----+----------------+--------+------------+---------------+-------------------+---------------+-------------------+---------------+-----------+--------------+--------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| id | gateway | domain | subscriber | profile_name1 | profile_name1_alt | profile_name2 | profile_name2_alt | timezone | increment | min_duration | country_code |</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+----------------+--------+------------+---------------+-------------------+---------------+-------------------+---------------+-----------+--------------+--------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| 4 | <a href="http://1.2.3.4">1.2.3.4</a> | | | Normal | Normal | Normal | Normal | America/Miami | 6 | 0 | | </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+----------------+--------+------------+---------------+-------------------+---------------+-------------------+---------------+-----------+--------------+--------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1 row in set (0.00 sec)</span><br style="font-family: courier new,monospace;"><br>select * from billing_profiles;<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+----+---------+--------+------------+--------+------------+-------+------------+-------+------------+-------+------------+-------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| id | gateway | domain | subscriber | name | rate_name1 | hour1 | rate_name2 | hour2 | rate_name3 | hour3 | rate_name4 | hour4 |</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+---------+--------+------------+--------+------------+-------+------------+-------+------------+-------+------------+-------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| 3 | | | | Normal | 1 | 24 | | 0 | | 0 | | 0 | </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+---------+--------+------------+--------+------------+-------+------------+-------+------------+-------+------------+-------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">1 row in set (0.00 sec)</span><br style="font-family: courier new,monospace;"><br>select * from billing_rates;<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">+----+----------------+--------+------------+--------+-------------+--------------+-------------+-------------+-------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| id | gateway | domain | subscriber | name | destination | durationRate | trafficRate | application | connectCost |</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+----------------+--------+------------+--------+-------------+--------------+-------------+-------------+-------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| 7 | <a href="http://1.2.3.4">1.2.3.4</a> | | | 1 | 001 | 100 | | audio | 0 | </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">+----+----------------+--------+------------+--------+-------------+--------------+-------------+-------------+-------------+</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br>But as it happens, when you specify a profile like I did: billing profile is NORMAL, but RATE NAME is 1, then you MUST CREATE A TABLE CALLED "BILLING_RATES_1", I don't know if cdrtool is supposed to create it but didn't do it for me. I had to manually create the table:<br>
<br><span style="font-family: courier new,monospace;">select * from billing_rates_1; </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+----------------+--------+------------+------+-------------+--------------+-------------+-------------+-------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| id | gateway | domain | subscriber | name | destination | durationRate | trafficRate | application | connectCost |</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+----------------+--------+------------+------+-------------+--------------+-------------+-------------+-------------+</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">| 8 | <a href="http://1.2.3.4">1.2.3.4</a> | | | 1 | 1 | 5 | 10 | audio | 10 | </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">+----+----------------+--------+------------+------+-------------+--------------+-------------+-------------+-------------+</span><br style="font-family: courier new,monospace;">
<br>and voilá! It started working...<br><br><br>I hope my struggle helps someone!<br><br><br>David<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br><div class="gmail_quote">On Mon, Jun 16, 2008 at 5:27 PM, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I just found two errors... something noone ever said (at least to me) aobut cdrtool, i got this on the syslog:<br>
<br>Jun 16 11:18:37 rgi-sql ^\$V^H[15556]: Database error for query update billing_rates_Normal set gateway='<a href="http://82.144.106.187" target="_blank">82.144.106.187</a>',domain='',subscriber='',destination='001',durationRate='5',application='audio',connectCost='0' where id = '6' and (1=1) : Table 'cdrtool.billing_rates_Normal' doesn't exist (1146)<br>
<br>there IS no table by that name, Is cdrtool supposed to create it? DO you have only billing_rates and billing_ratesNGN? or do you have many others? each by the name of a profile?<br><br>I say this error too.. :S<br><br>
Jun 16 11:24:15 rgi-sql CDRTool[15558]: Error: Cannot find rates for callid=<a href="mailto:0080826000480002A49500000FAB@82.144.106.187" target="_blank">0080826000480002A49500000FAB@82.144.106.187</a>, billing party=<a href="mailto:opencall@82.144.106.187" target="_blank">opencall@82.144.106.187</a>, customer gateway=<a href="http://82.144.106.187" target="_blank">82.144.106.187</a>, gateway=<a href="http://82.144.106.187" target="_blank">82.144.106.187</a>, destination=1, profile=Normal, app=audio<br>
<br><br>Time to read again!<br><br>thanks anyway!<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Mon, Jun 16, 2008 at 5:20 PM, Iñaki Baz Castillo <<a href="mailto:ibc@in.ilimit.es" target="_blank">ibc@in.ilimit.es</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
El Monday 16 June 2008 16:53:37 David Villasmil escribió:<br>
<div>> Tis say that's what I have... except you don't expand on you Customers'<br>
> table..<br>
<br>
</div>Yes sorry, in your first mail it cost to me to understand the tables.<br>
Sincerelly the only advice I caould give to you is readin gslowly some times<br>
the README.txt file about accounting in CDRTool. Ok, it's not very easy but<br>
the fact is that it explains all. Re-read again, I had to read it several<br>
times after get it working (same problem as you XD).<br>
<br>
Regards.<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div>Iñaki Baz Castillo<br>
<a href="mailto:ibc@in.ilimit.es" target="_blank">ibc@in.ilimit.es</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>