To help connect the dots I added some links to/from that Lua wiki page and channel_in_hangup_hook and also api_hangup_hook and reporting_hangup_hook.

-MC
Sorry, typo: that was supposed to be "api_reporting_hook" which I need to document anyway. ;)
-MC