summaryrefslogtreecommitdiff
path: root/tests/test_voicemail_api.c
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-02-13 10:50:47 -0700
committerGeorge Joseph <gjoseph@digium.com>2017-02-14 14:09:37 -0700
commitbf2f091bbb2b099d6ca87e5fdd76efe45a209eb7 (patch)
tree3ebbbb4a3a9235f221bb0df50587e9873905b5f9 /tests/test_voicemail_api.c
parent6c4657e28ebf9cbe6d952750142d9631ff600657 (diff)
stream: Add stream topology to channel
Adds topology set and get to channel. ASTERISK-26790 Change-Id: Ic379ea82a9486fc79dbd8c4d95c29fa3b46424f4
Diffstat (limited to 'tests/test_voicemail_api.c')
-rw-r--r--tests/test_voicemail_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_voicemail_api.c b/tests/test_voicemail_api.c
index 802b6bf1b..e46757263 100644
--- a/tests/test_voicemail_api.c
+++ b/tests/test_voicemail_api.c
@@ -825,12 +825,12 @@ static struct ast_channel *test_vm_api_create_mock_channel(void)
}
ast_channel_set_writeformat(mock_channel, ast_format_gsm);
- native_formats = ast_channel_nativeformats(mock_channel);
- ast_format_cap_append(native_formats, ast_channel_writeformat(mock_channel), 0);
ast_channel_set_rawwriteformat(mock_channel, ast_format_gsm);
ast_channel_set_readformat(mock_channel, ast_format_gsm);
ast_channel_set_rawreadformat(mock_channel, ast_format_gsm);
ast_channel_tech_set(mock_channel, &mock_channel_tech);
+ native_formats = ast_channel_nativeformats(mock_channel);
+ ast_format_cap_append(native_formats, ast_channel_writeformat(mock_channel), 0);
ast_channel_unlock(mock_channel);