<div>Thanks Tim for your direction</div>
<div>Will study and try this. I am relatively new to this stuff and some  concepts still ambigious in my mind. </div>
<div>At this time will re-install freeswitch from scracth as I am having problems  instaling and loading mod_xml_cdr , mod_xml_curl on my existing setup.</div>
<div>deniro--<br><br></div>
<div class="gmail_quote">On Sun, Feb 27, 2011 at 8:49 PM, Tim St. Pierre <span dir="ltr">&lt;<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">HI Deniro,<br><br>This is a pretty simple scenario.  I can&#39;t build it for you (too busy<br>doing my own!), but here&#39;s what you need:<br>
<br>A basic, working FreeSWITCH installation that takes care of routing the<br>calls, asking for the PIN, setting up the conferences.  You can do the<br>PIN IVR in lua pretty easily.  All it has to do is set a variable that<br>
contains your user account number, as well as any other details that are<br>billing specific (DID number call came in on, toll-free vs. local, etc.)<br><br>Use xml_curl_cdr to post the call records to a web server.<br><br>
Using a PHP script, or another language that you are comfortable with,<br>parse the XML record that is posted for things like:<br>-User ID (set as a variable)<br>-Call Start<br>-Call duration<br>-Conference room<br><br>Insert these values into your favorite database, along with a cost<br>
column that gets calculated by the script, based on the duration and<br>other relevant parameters.<br><br>Have another php script that runs monthly, rendering the database call<br>records as a nice looking PDF invoice.  You may want to have another<br>
database table that keeps track of monthly invoices and payments to<br>track balance due, etc.<br><br>Most of the work is done externally by web server scripts that manage<br>the billing data.  Freeswitch just has to ask the caller the right<br>
questions, and put them in the right room.<br><br>You may also want to use xml_curl to dynamically generate dialplan as<br>well as the conference config XML so that you can have custom<br>per-conference settings, as well as easily manage your users by updating<br>
their information in your database.<br><br>Good luck!<br><font color="#888888"><br>-Tim<br></font>
<div>
<div></div>
<div class="h5"><br>deniro wrote:<br>&gt; Hi All<br>&gt; I would like to write some type of billing program  that will collect<br>&gt; the charges for each account monthly<br>&gt;<br>&gt; When someone calls into the  (freeswitch) conference by dialing  toll<br>
&gt; free number or local number and enters PIN number<br>&gt; the  program will recognize that and start collecting number of<br>&gt; minutes and number of  persons dialed in<br>&gt; and calculate  the  amount of  dollars.<br>
&gt;<br>&gt; Lets say conference is  10cent/per minute /per person for a tool free<br>&gt; number<br>&gt; Each time people  dial into conference it will calculate total amount<br>&gt; by person and by minutes, and generate monthly billing.<br>
&gt;<br>&gt; The PIN numbers may be different  for conferences that belong to same<br>&gt; account.<br>&gt;<br>&gt; How would I do such thing? Where do I start from?<br>&gt; Is there any sample programs like it somewhere out there<br>
&gt; Which language would be best to it with<br>&gt;<br>&gt; I would pay for any professional services<br>&gt;<br>&gt; Thanks in advance<br>&gt; deniro--<br>&gt;<br>&gt;<br></div></div>&gt; ------------------------------------------------------------------------<br>

<div>
<div></div>
<div class="h5">&gt;<br>&gt; _______________________________________________<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br>&gt;<br><br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br></div></div></blockquote></div><br>