[asterisk-commits] irroot: branch irroot/distrotech-customers-trunk r322062 - /team/irroot/distr...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 6 06:49:30 CDT 2011


Author: irroot
Date: Mon Jun  6 06:49:26 2011
New Revision: 322062

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=322062
Log:
Remove Redundant code

Modified:
    team/irroot/distrotech-customers-trunk/channels/chan_sip.c

Modified: team/irroot/distrotech-customers-trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/distrotech-customers-trunk/channels/chan_sip.c?view=diff&rev=322062&r1=322061&r2=322062
==============================================================================
--- team/irroot/distrotech-customers-trunk/channels/chan_sip.c (original)
+++ team/irroot/distrotech-customers-trunk/channels/chan_sip.c Mon Jun  6 06:49:26 2011
@@ -6471,10 +6471,7 @@
 	}
 	p = newchan->tech_pvt;
 
-	while (sip_pvt_trylock(p)) {
-		CHANNEL_DEADLOCK_AVOIDANCE(oldchan);
-	}
-
+	sip_pvt_lock(p);
 	append_history(p, "Masq", "Old channel: %s\n", oldchan->name);
 	append_history(p, "Masq (cont)", "...new owner: %s\n", newchan->name);
 	if (p->owner != oldchan)
@@ -6500,10 +6497,6 @@
 {
 	struct sip_pvt *p = ast->tech_pvt;
 	int res = 0;
-
-	if (!p) {
-		return res;
-	}
 
 	sip_pvt_lock(p);
 	switch (ast_test_flag(&p->flags[0], SIP_DTMF)) {




More information about the asterisk-commits mailing list