[asterisk-dev] app_meetme - distinguish between redirect and hangup?

Tony Mountifield tony at softins.clara.co.uk
Tue May 12 08:56:46 CDT 2009


I am making some custom changes to app_meetme, which require me to test
whether it has exited the conf_run loop due to a manager Redirect or to
an actual hangup. I want to perform different actions if the caller has
just been redirected to another extension, as opposed to exiting for
any other reason (hung up, timeout, kicked, etc).

I wanted to check what the correct way to test this was. I think I need
to check that the only softhangup flag set is the asyncgoto one:

    if (chan->_softhangup == AST_SOFTHANGUP_ASYNCGOTO) {
    	/* channel was redirected, but not hung up for any other reason */
    }

Is there anything else to be aware of? Thanks for the sanity check.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list