<span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span>Tis say that's what I have... except you don't expand on you Customers' table..<br><br><span style="font-family: courier new,monospace;">mysql> select * from destinations; select * from billing_customers; select * from billing_profiles;select * from billing_rates;</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 | 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 | | | | 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 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> | | | 1 | 1 | 1 | 1 | 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 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 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;">| 6 | | | | Normal | 001 | 5 | | audio | 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 style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">mysql> </span><br style="font-family: courier new,monospace;">
<br><br><br style="font-family: courier new,monospace;">On Mon, Jun 16, 2008 at 2:37 PM, Iñaki Baz Castillo <<a href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a>> wrote:<br>> El Monday 16 June 2008 13:16:17 David Villasmil escribió:<br>
><br>>> I also have installed and configure cdrtool, but I can't seem to make<br>>> it work properly, as documentation is very bad I had to half-make it<br>>> work in starts and fits. Now i got it to al least show the destination<br>
>> description as per the destination table which is linked to the rates<br>>> table, but it doesn't assigns the rate or calculates the price for the<br>>> call... this is very frustating... but hey, I'm learning here!<br>
><br>> Your tables are incorect. Let me put an example for Spain:<br>><br>> * Destinations table:<br>> - Destination ID: 34 (needed !!!)<br>> - Description: Spain<br>><br>> * Customers:<br>> - Domain: <a href="http://sip.yourdomain.com">sip.yourdomain.com</a> (the domain which clients authenticate).<br>
> You can also set the source IP (Gateway) instead if all your clients come from<br>> the same source IP.<br>><br>> * Profiles:<br>> - Profile ID: Normal<br>> - Rate Id1: reducida<br>> - 00-H1: 8<br>> - Rate Id2: cara<br>
> - H1-H2: 22<br>> - Rate Id3: reducida<br>> - H2-H3: 24<br>><br>> * Rates:<br>> - Rate Id: reducida<br>> - Destination: 34<br>> - Price: 5<br>> - App: audio ( NEEDED !!! )<br>> - Conecct: 0<br>
> ---------<br>> - Rate Id: cara<br>> - Destination: 34<br>> - Price: 20<br>> - App: audio ( NEEDED !!! )<br>> - Conecct: 0<br>><br>><br>><br>><br>> --<br>> Iñaki Baz Castillo<br>> <a href="mailto:ibc@in.ilimit.es">ibc@in.ilimit.es</a><br>
><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>> <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
><br><br>