diff options
author | Matthew Jordan <mjordan@digium.com> | 2013-08-12 15:48:58 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2013-08-12 15:48:58 +0000 |
commit | 5b013bc659a1cc92c5985e3e5b015feafa332d7f (patch) | |
tree | 1ff01f19d1ae6963931f04df05b0eea04565ec8d | |
parent | 8f90378b342665c2e47447a8cccb21a7872f7c45 (diff) |
Unlock outgoing dial lock on off nominal path
If the thread servicing the dial request isn't created successfully, the
outgoing dial lock will still be held when the function returns. This patch
unlocks the lock on this off nominal path.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/pbx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c index 4db89f803..5000bf47b 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9969,6 +9969,7 @@ static int pbx_outgoing_attempt(const char *type, struct ast_format_cap *cap, co ast_channel_unlock(*channel); ast_channel_unref(*channel); } + ast_mutex_unlock(&outgoing->lock); ao2_ref(outgoing, -1); return -1; } |