[Freeswitch-dev] access session variables after hangup

Brian West brian at freeswitch.org
Mon Jul 6 16:23:04 PDT 2009

You usually don't do billing inline its a bad idea to mix the business  
logic like that with billing.  What exactly are you looking at doing  
in hangup.lua?


On Jul 6, 2009, at 6:11 PM, rentmycoder rentmycoder wrote:

> I woud like to do some processing after hangup like in asterisk on the
> "h,1,..." extension.
> If I try to exec a lua script using api_hangup_hook, the the session
> will be nil in:
> number  = session:getVariable("caller_id_number")
> If I try to transfer the call using the transfer commmand, I got
> "invalid command" error.
> <action application="set" data="session_in_hangup_hook=true" />
> <action application="set" data="api_hangup_hook=lua hangup.lua"/>
> <!--action application="set" data="api_hangup_hook=transfer  
> hangup_ext" /-->
> Any other idea to do some processing after hangup?

More information about the Freeswitch-dev mailing list