[asterisk-commits] qwell: branch qwell/hold_events r389624 - /team/qwell/hold_events/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 23 16:12:20 CDT 2013


Author: qwell
Date: Thu May 23 16:12:16 2013
New Revision: 389624

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389624
Log:
Remove unnecessary lock/unlock.

Modified:
    team/qwell/hold_events/channels/sig_pri.c

Modified: team/qwell/hold_events/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/hold_events/channels/sig_pri.c?view=diff&rev=389624&r1=389623&r2=389624
==============================================================================
--- team/qwell/hold_events/channels/sig_pri.c (original)
+++ team/qwell/hold_events/channels/sig_pri.c Thu May 23 16:12:16 2013
@@ -5527,11 +5527,7 @@
 	sig_pri_lock_private(pri->pvts[chanpos]);
 	callid = func_pri_dchannel_chanpos_callid(pri, chanpos);
 	sig_pri_handle_subcmds(pri, chanpos, ev->e, ev->retrieve.subcmds, ev->retrieve.call);
-	sig_pri_lock_owner(pri, chanpos);
 	sig_pri_queue_unhold(pri, chanpos);
-	if (pri->pvts[chanpos]->owner) {
-		ast_channel_unlock(pri->pvts[chanpos]->owner);
-	}
 	pri_retrieve_ack(pri->pri, ev->retrieve.call,
 		PVT_TO_CHANNEL(pri->pvts[chanpos]));
 	sig_pri_moh_fsm_event(pri->pvts[chanpos]->owner, pri->pvts[chanpos],




More information about the asterisk-commits mailing list