summaryrefslogtreecommitdiff
path: root/tests/test_voicemail_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_voicemail_api.c')
-rw-r--r--tests/test_voicemail_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_voicemail_api.c b/tests/test_voicemail_api.c
index 01efeeec2..b21ab1f87 100644
--- a/tests/test_voicemail_api.c
+++ b/tests/test_voicemail_api.c
@@ -833,6 +833,8 @@ static struct ast_channel *test_vm_api_create_mock_channel(void)
ast_format_set(ast_channel_rawreadformat(mock_channel), AST_FORMAT_GSM, 0);
ast_channel_tech_set(mock_channel, &mock_channel_tech);
+ ast_channel_unlock(mock_channel);
+
return mock_channel;
}