diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-13 17:32:44 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-08-13 17:32:44 +0000 |
commit | bd0679195f59fd5ef7d94aea54011912c0b316fc (patch) | |
tree | 97db604054b44caec1b496f9dcf1813cd55c2343 /channel.c | |
parent | 00f52a9872a88a380a800771b881f652f6f4126f (diff) |
Add any missing locking calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1312 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -704,8 +704,10 @@ int ast_answer(struct ast_channel *chan) switch(chan->_state) { case AST_STATE_RINGING: case AST_STATE_RING: + ast_mutex_lock(&chan->lock); if (chan->pvt->answer) res = chan->pvt->answer(chan); + ast_mutex_unlock(&chan->lock); ast_setstate(chan, AST_STATE_UP); if (chan->cdr) ast_cdr_answer(chan->cdr); |