diff options
author | malcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-26 17:29:49 +0000 |
---|---|---|
committer | malcolmd <malcolmd@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-02-26 17:29:49 +0000 |
commit | 11ecb3df7c1ad4f40499138a57003ca1a7ab555d (patch) | |
tree | 0c127abd485e44659145a828d5fad1adbb03f77c /pbx.c | |
parent | 0b3dcef22b32951f8335a8650960ff4afc1bca69 (diff) |
Fix Bug # 981
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2253 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3538,12 +3538,13 @@ int ast_async_goto(struct ast_channel *chan, char *context, char *exten, int pri tmpchan->priority = priority; else tmpchan->priority = chan->priority; - if (needlock) - ast_mutex_unlock(&chan->lock); /* Masquerade into temp channel */ ast_channel_masquerade(tmpchan, chan); - + + if (needlock) + ast_mutex_unlock(&chan->lock); + /* Make the masquerade happen by reading a frame from the tmp channel */ f = ast_read(tmpchan); if (f) |