[svn-commits] seanbright: branch 1.4 r202153 - /branches/1.4/channels/chan_sip.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sat Jun 20 12:51:46 CDT 2009


Author: seanbright
Date: Sat Jun 20 12:51:41 2009
New Revision: 202153

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202153
Log:
Since we don't have sip_pvt_lock() in 1.4, we need to use ast_mutex_* directly.

(closes issue #15366)
Reported by: loloski

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=202153&r1=202152&r2=202153
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Sat Jun 20 12:51:41 2009
@@ -3730,9 +3730,9 @@
 	const char *codec;
 
 	while (p->owner && ast_channel_trylock(p->owner)) {
-		sip_pvt_unlock(p);
+		ast_mutex_unlock(&p->lock);
 		sched_yield();
-		sip_pvt_lock(p);
+		ast_mutex_lock(&p->lock);
 	}
 
 	if (!p->owner)




More information about the svn-commits mailing list