On Tue, Apr 29, 2014 at 6:03 PM, Richard Kenner <ken...@gnat.com> wrote:
> > If the channel still hangs around after the conference is destroyed > > then there is a problem. > > Am I missing something obvious: I'm looking in the confbridge_exec > function. I see a "conference = NULL" line, but no attempt to free > that structure, which is what I understand will destroy the playback > channel. So where it is freed? > Conferences are reference counted objects. When the reference count reaches 0 on the conference object, its destructor is automatically called. The destructor, in this case, is destroy_conference_bridge. That is where the CBAnn channel should be hung up. /* Try to allocate memory for a new conference bridge, if we fail... this won't end well. */ if (!(conference = ao2_alloc(sizeof(*conference), destroy_conference_bridge))) { ao2_unlock(conference_bridges); ast_log(LOG_ERROR, "Conference '%s' could not be created.\n", conference_name); return NULL; } If the reference count on the bridge is off, you should see the conference bridge 'hanging around' after the last participant has left. If so, please file a bug report. We'll need a REF_DEBUG log to figure out who the guilty party is in holding onto a reference. The easiest way to get that is to reproduce the problem using the latest from the 12 branch (as we made reference count debugging easier just recently). Enable REF_DEBUG in menuselect under Compiler Flags, make/make install, and re-run the scenario that reproduces the result. A refs file will be created in your Asterisk log directory - attach that to the issue along with DEBUG log. Thanks! -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users