diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-04-29 14:50:18 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-04-29 14:50:18 +0000 |
commit | 8085f4e14b6a3d164079f192cc8016048f419442 (patch) | |
tree | 703113f22ff33a2561e7252a7def788ed5714c76 /res/res_features.c | |
parent | 54d6194340c6964e5089dcc92425f695fd8c942d (diff) |
a bunch of conversion to ast_channel_*lock (issue #7058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@23355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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"); |