[svn-commits] mnicholson: branch 1.6.1 r229099 - /branches/1.6.1/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 10 09:38:24 CST 2009


Author: mnicholson
Date: Tue Nov 10 09:38:20 2009
New Revision: 229099

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=229099
Log:
Reverted revision 202008.

(closes issue #16175)
Reported by: paul-tg

Modified:
    branches/1.6.1/channels/chan_sip.c

Modified: branches/1.6.1/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.1/channels/chan_sip.c?view=diff&rev=229099&r1=229098&r2=229099
==============================================================================
--- branches/1.6.1/channels/chan_sip.c (original)
+++ branches/1.6.1/channels/chan_sip.c Tue Nov 10 09:38:20 2009
@@ -5740,20 +5740,8 @@
 	int fmt;
 	const char *codec;
 
-	while (p->owner && ast_channel_trylock(p->owner)) {
-		sip_pvt_unlock(p);
-		sched_yield();
-		sip_pvt_lock(p);
-	}
-
-	if (!p->owner)
-		return;
-
-	codec = ast_strdupa(S_OR(pbx_builtin_getvar_helper(p->owner, "SIP_CODEC"), ""));
-
-	ast_channel_unlock(p->owner);
-
-	if (ast_strlen_zero(codec))
+	codec = pbx_builtin_getvar_helper(p->owner, "SIP_CODEC");
+	if (!codec) 
 		return;
 
 	fmt = ast_getformatbyname(codec);




More information about the svn-commits mailing list