conference dialing and montly billing
Hi All I would like to write some type of billing program that will collect the charges for each account monthly When someone calls into the (freeswitch) conference by dialing toll free number or local number and enters PIN number the program will recognize that and start collecting number of minutes and number of persons dialed in and calculate the amount of dollars. Lets say conference is 10cent/per minute /per person for a tool free number Each time people dial into conference it will calculate total amount by person and by minutes, and generate monthly billing. The PIN numbers may be different for conferences that belong to same account. How would I do such thing? Where do I start from? Is there any sample programs like it somewhere out there Which language would be best to it with I would pay for any professional services Thanks in advance deniro--
Here's a few options: 1) use mod_nibblebill and do the billing live. If you don't need pre payment however, this adds in complexity and doesn't provide as much of an audit trail 2) If you don't need pre-billing, set the bill-to user and the billing per minute on the leg of the call. Use something like xml_cdr to save the data - perhaps post it to a script that saves the appropriate fields. It multiplies the billing * billsec (if you want rounding, do it..) and saves the amount. Then, just sum up the billing amount. Just note: if the xml_cdr fails to post (mostly if the server dies mid-call) you won't have a record of the call. Also, this only works for post-payment. I am available to set this up, please email me privately if you are interested. -Avi Marcus On Sat, Feb 26, 2011 at 2:16 AM, deniro <ayhkor@gmail.com> wrote:
Hi All I would like to write some type of billing program that will collect the charges for each account monthly
When someone calls into the (freeswitch) conference by dialing toll free number or local number and enters PIN number the program will recognize that and start collecting number of minutes and number of persons dialed in and calculate the amount of dollars.
Lets say conference is 10cent/per minute /per person for a tool free number Each time people dial into conference it will calculate total amount by person and by minutes, and generate monthly billing.
The PIN numbers may be different for conferences that belong to same account.
How would I do such thing? Where do I start from? Is there any sample programs like it somewhere out there Which language would be best to it with
I would pay for any professional services
Thanks in advance deniro--
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
HI Deniro, This is a pretty simple scenario. I can't build it for you (too busy doing my own!), but here's what you need: A basic, working FreeSWITCH installation that takes care of routing the calls, asking for the PIN, setting up the conferences. You can do the PIN IVR in lua pretty easily. All it has to do is set a variable that contains your user account number, as well as any other details that are billing specific (DID number call came in on, toll-free vs. local, etc.) Use xml_curl_cdr to post the call records to a web server. Using a PHP script, or another language that you are comfortable with, parse the XML record that is posted for things like: -User ID (set as a variable) -Call Start -Call duration -Conference room Insert these values into your favorite database, along with a cost column that gets calculated by the script, based on the duration and other relevant parameters. Have another php script that runs monthly, rendering the database call records as a nice looking PDF invoice. You may want to have another database table that keeps track of monthly invoices and payments to track balance due, etc. Most of the work is done externally by web server scripts that manage the billing data. Freeswitch just has to ask the caller the right questions, and put them in the right room. You may also want to use xml_curl to dynamically generate dialplan as well as the conference config XML so that you can have custom per-conference settings, as well as easily manage your users by updating their information in your database. Good luck! -Tim deniro wrote:
Hi All I would like to write some type of billing program that will collect the charges for each account monthly
When someone calls into the (freeswitch) conference by dialing toll free number or local number and enters PIN number the program will recognize that and start collecting number of minutes and number of persons dialed in and calculate the amount of dollars.
Lets say conference is 10cent/per minute /per person for a tool free number Each time people dial into conference it will calculate total amount by person and by minutes, and generate monthly billing.
The PIN numbers may be different for conferences that belong to same account.
How would I do such thing? Where do I start from? Is there any sample programs like it somewhere out there Which language would be best to it with
I would pay for any professional services
Thanks in advance deniro--
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks Tim for your direction Will study and try this. I am relatively new to this stuff and some concepts still ambigious in my mind. 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. deniro-- On Sun, Feb 27, 2011 at 8:49 PM, Tim St. Pierre < fs-list@communicatefreely.net> wrote:
HI Deniro,
This is a pretty simple scenario. I can't build it for you (too busy doing my own!), but here's what you need:
A basic, working FreeSWITCH installation that takes care of routing the calls, asking for the PIN, setting up the conferences. You can do the PIN IVR in lua pretty easily. All it has to do is set a variable that contains your user account number, as well as any other details that are billing specific (DID number call came in on, toll-free vs. local, etc.)
Use xml_curl_cdr to post the call records to a web server.
Using a PHP script, or another language that you are comfortable with, parse the XML record that is posted for things like: -User ID (set as a variable) -Call Start -Call duration -Conference room
Insert these values into your favorite database, along with a cost column that gets calculated by the script, based on the duration and other relevant parameters.
Have another php script that runs monthly, rendering the database call records as a nice looking PDF invoice. You may want to have another database table that keeps track of monthly invoices and payments to track balance due, etc.
Most of the work is done externally by web server scripts that manage the billing data. Freeswitch just has to ask the caller the right questions, and put them in the right room.
You may also want to use xml_curl to dynamically generate dialplan as well as the conference config XML so that you can have custom per-conference settings, as well as easily manage your users by updating their information in your database.
Good luck!
-Tim
deniro wrote:
Hi All I would like to write some type of billing program that will collect the charges for each account monthly
When someone calls into the (freeswitch) conference by dialing toll free number or local number and enters PIN number the program will recognize that and start collecting number of minutes and number of persons dialed in and calculate the amount of dollars.
Lets say conference is 10cent/per minute /per person for a tool free number Each time people dial into conference it will calculate total amount by person and by minutes, and generate monthly billing.
The PIN numbers may be different for conferences that belong to same account.
How would I do such thing? Where do I start from? Is there any sample programs like it somewhere out there Which language would be best to it with
I would pay for any professional services
Thanks in advance deniro--
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Avi Marcus
-
deniro
-
Tim St. Pierre