<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"><<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>></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't build it for you (too busy<br>doing my own!), but here'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>> Hi All<br>> I would like to write some type of billing program that will collect<br>> the charges for each account monthly<br>><br>> When someone calls into the (freeswitch) conference by dialing toll<br>
> free number or local number and enters PIN number<br>> the program will recognize that and start collecting number of<br>> minutes and number of persons dialed in<br>> and calculate the amount of dollars.<br>
><br>> Lets say conference is 10cent/per minute /per person for a tool free<br>> number<br>> Each time people dial into conference it will calculate total amount<br>> by person and by minutes, and generate monthly billing.<br>
><br>> The PIN numbers may be different for conferences that belong to same<br>> account.<br>><br>> How would I do such thing? Where do I start from?<br>> Is there any sample programs like it somewhere out there<br>
> Which language would be best to it with<br>><br>> I would pay for any professional services<br>><br>> Thanks in advance<br>> deniro--<br>><br>><br></div></div>> ------------------------------------------------------------------------<br>
<div>
<div></div>
<div class="h5">><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>><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>