> On Jan. 16, 2014, 2:27 p.m., Mark Michelson wrote: > > /branches/12/channels/chan_pjsip.c, lines 766-767 > > <https://reviewboard.asterisk.org/r/3129/diff/1/?file=52936#file52936line766> > > > > 2 options: > > > > 1) Just call ao2_unlink() instead of ao2_find(). > > 2) Keep ao2_find(), but also add the OBJ_NODATA flag. > > > > Both of these will eliminate the need to declare the hold_uid variable > > and will eliminate extra unnecessary reffing. I prefer option 1, myself.
Unfortunately, what I have here is the search key and not the object itself. I'll go with option 2 since that works. - Jonathan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviewboard.asterisk.org/r/3129/#review10615 ----------------------------------------------------------- On Jan. 16, 2014, 12:26 p.m., Jonathan Rose wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviewboard.asterisk.org/r/3129/ > ----------------------------------------------------------- > > (Updated Jan. 16, 2014, 12:26 p.m.) > > > Review request for Asterisk Developers and Mark Michelson. > > > Repository: Asterisk > > > Description > ------- > > Maintains a list of on hold channel uniqueids. When a snapshot is used with > chan_pjsip's device state evaluating function, this list is queried to see if > the channel in the snapshot is on hold. As the channel receives indications > of HOLD/UNHOLD, this list is updated and the device state is updated. When > the session ends, the session channel is removed from the list if it is still > in it. > > > Diffs > ----- > > /branches/12/channels/chan_pjsip.c 405641 > > Diff: https://reviewboard.asterisk.org/r/3129/diff/ > > > Testing > ------- > > Manual testing where I watched the device state with a websocket, polled for > device state with Manager command GetVar and DEVICE_STATE function, and also > modified an automated test (channels/pjsip/hold) to have a hint which checks > the device state of a PJSIP channel and ExtensionStatus event is monitored to > evaluate device state changes as they had. > > The test modifications will be in another review. > > > Thanks, > > Jonathan Rose > >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
