[Freeswitch-users] Accessing fax variables/status after rxfax/txfax

Michael Collins msc at freeswitch.org
Thu Oct 21 17:57:59 PDT 2010


On Thu, Oct 21, 2010 at 10:45 AM, Kristian Kielhofner <kris at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101021/94c46dac/attachment.html 


More information about the FreeSWITCH-users mailing list