Hi, You can use the hangup hook like : http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook 2013/10/4 Khue Nguyen Minh <khuenm@vega.com.vn>
Hi all,
I have a simple javascripts with simple scenario. In this scenario, user can listen audio and send dtmf to play next or previous audio file. When user send dtmf to play other audio file, I will store play time of this audio to a text file (time.txt), but, if user hangup this call, the play time of last file cannot store in time.txt.
How I can capture event user hangup to store play time into time.txt before javascripts session destroyed?
Brs, Khue.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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