From: Matthew Jordan Date: Sat, 10 Aug 2013 04:18:33 +0000 (+0000) Subject: Unlock the dial operation lock on a failed dial X-Git-Tag: 13.0.0-beta1~1309 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba429409ee60fdbb73dfe6968d08fd78fcd6b89;p=thirdparty%2Fasterisk.git 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". git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396521 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index ec96344cbb..4db89f803a 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9983,6 +9983,7 @@ static int pbx_outgoing_attempt(const char *type, struct ast_format_cap *cap, co 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; }