Once you are in report.lua the channel is already hung up. To the best of my knowledge there is no way to add/manipulate channel variables in a hangup hook since you really just have a static copy of the channel variables.
This is my lua script
session:setVariable("session_in_hangup_hook", "true");
session:setVariable("api_hangup_hook", "lua
hangup/report.lua "..macct);
session:transfer("dialnow_wh", "XML", "wh");
It's work fine before hangup i cal see session vation in report.lua
but my quession is how to manipulate or create new variable in
report.lua ?
i want to see variable in cdr
BG
Dome C.
_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org