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