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

Tony Mountifield tony at softins.clara.co.uk
Tue May 12 11:12:31 CDT 2009


In article <Pine.LNX.4.64.0905120721060.32237 at fs.sedwards.com>,
Steve Edwards <asterisk.org at sedwards.com> wrote:
> On Tue, 12 May 2009, Tony Mountifield wrote:
> 
> > 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).
> 
> How are you planning to return the reason to the dialplan?

In my case, there is no need, because if the channel is redirected, it
will not return to the next dialplan statement.

> I have a need to distinguish users that were kicked.

That should be easy. Find the part of the conference loop that tests
for the user being kicked and does a break:

if (user->adminflags & ADMINFLAG_KICKME) {

Then insert the following line just before the break.

pbx_builtin_setvar_helper(chan, "MEETMESTATUS", "KICKED");

You can then test ${MEETMESTATUS} in the dialplan.

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