[asterisk-commits] file: trunk r51193 - /trunk/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 17 12:43:13 MST 2007


Author: file
Date: Wed Jan 17 13:43:13 2007
New Revision: 51193

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51193
Log:
Don't hold channel lock while sleeping/waiting for audio stream to get setup. (issue #8834 reported by phsultan)

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=51193&r1=51192&r2=51193
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed Jan 17 13:43:13 2007
@@ -1637,8 +1637,10 @@
 			res = chan->tech->answer(chan);
 		ast_setstate(chan, AST_STATE_UP);
 		ast_cdr_answer(chan->cdr);
+		ast_channel_unlock(chan);
 		if (delay)
 			ast_safe_sleep(chan, delay);
+		return res;
 		break;
 	case AST_STATE_UP:
 		ast_cdr_answer(chan->cdr);



More information about the asterisk-commits mailing list