diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-29 14:50:18 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-29 14:50:18 +0000 |
commit | 06fbbd19895c50b25faf8f6658fa8984525b86da (patch) | |
tree | 703113f22ff33a2561e7252a7def788ed5714c76 /res/res_features.c | |
parent | 4e767760c884488e9bce7b17d2f833d10118923a (diff) |
a bunch of conversion to ast_channel_*lock (issue #7058)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23355 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r-- | res/res_features.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/res/res_features.c b/res/res_features.c index d26855195..273f311cc 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1859,7 +1859,7 @@ static int manager_park(struct mansession *s, struct message *m) if (!ch2) { snprintf(buf, sizeof(buf), "Channel does not exist: %s", channel2); astman_send_error(s, m, buf); - ast_mutex_unlock(&ch1->lock); + ast_channel_unlock(ch1); return 0; } @@ -1875,8 +1875,8 @@ static int manager_park(struct mansession *s, struct message *m) astman_send_error(s, m, "Park failure"); } - ast_mutex_unlock(&ch1->lock); - ast_mutex_unlock(&ch2->lock); + ast_channel_unlock(ch1); + ast_channel_unlock(ch2); return 0; } @@ -1895,7 +1895,7 @@ int ast_pickup_call(struct ast_channel *chan) (cur->_state == AST_STATE_RING))) { break; } - ast_mutex_unlock(&cur->lock); + ast_channel_unlock(cur); } if (cur) { if (option_debug) @@ -1909,7 +1909,7 @@ int ast_pickup_call(struct ast_channel *chan) res = ast_channel_masquerade(cur, chan); if (res) ast_log(LOG_WARNING, "Unable to masquerade '%s' into '%s'\n", chan->name, cur->name); /* Done */ - ast_mutex_unlock(&cur->lock); + ast_channel_unlock(cur); } else { if (option_debug) ast_log(LOG_DEBUG, "No call pickup possible...\n"); |