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-for-the-FreeSWITCH-mod-lua-mod-perl-or-ESL-tp7593788p7596150.html
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