There are many ways to do the billing. In my case, I use mod_nibblebill only to monitor to cut the call if they run out of credit and I interact with mod_xml_cdr to bill when the call has just finished. Luis Daniel Lucio Quiroz CISSP, CISM, CISA Linux, VoIP and much more fun www.okay.com.mx Need LCR? Check out LCR for FusionPBX with FreeSWITCH Need Billing? Check out Billing for FusionPBX with FreeSWITCH 2015-03-04 17:17 GMT-05:00 jorgemariodlc <jorgemariodlc@gmail.com>:
I actually working in it, I found it yesterday you need to add those lines (/autoload_configs/lua.conf.xml):
<configuration name="lua.conf" description="LUA Configuration"> <settings>
<hook event="CHANNEL_ANSWER" script="answer.lua"/> <hook event="CHANNEL_HANGUP_COMPLETE" script="hangup.lua"/>
</settings> </configuration>
Check this link to know what information is in each event, because it's important to handle the direction-call (Outbound, Inbound) https://wiki.freeswitch.org/wiki/Event_List
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Real-time-billing-application-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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