[asterisk-commits] mjordan: trunk r396521 - /trunk/main/pbx.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 9 23:18:34 CDT 2013
Author: mjordan
Date: Fri Aug 9 23:18:33 2013
New Revision: 396521
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396521
Log:
Unlock the dial operation lock on a failed dial
If a dial operation fails, the pbx_outgoing_attempt routine will exit without
first having unlocked the outgoing dial lock. This would be a "bad thing".
Modified:
trunk/main/pbx.c
Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=396521&r1=396520&r2=396521
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Fri Aug 9 23:18:33 2013
@@ -9983,6 +9983,7 @@
ast_cond_wait(&outgoing->cond, &outgoing->lock);
if (outgoing->dial_res != AST_DIAL_RESULT_ANSWERED) {
+ ast_mutex_unlock(&outgoing->lock);
/* The dial operation failed. */
return -1;
}
More information about the asterisk-commits
mailing list