On Thu, Oct 21, 2010 at 10:45 AM, Kristian Kielhofner <kris@kriskinc.com> wrote:
Hello everyone,

 Looking through the code it appears that txfax/rxfax automatically
hangup channels when they're called and set a hangup cause that more
or less makes sense depending on how the fax went.  My question is -
can I have them not hangup the channel automatically so I can continue
execution somehow?  Alternatively, can I somehow continue execution
based on the hangup cause?  I'm thinking something like
api_hangup_hook that has access to the hangup/fax status.
Kristian,

I think you need this:
http://wiki.freeswitch.org/wiki/Channel_Variables#session_in_hangup_hook

It will let the call hang up but a copy of the session will be available to your hangup hook so you can access all the channel variables even after the channel has actually hung up.
-MC