diff options
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 166df4c94..f7882c20d 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12347,11 +12347,11 @@ AST_TEST_DEFINE(test_voicemail_vmsayname) } /* normally this is done in the channel driver */ - test_channel1->nativeformats = AST_FORMAT_GSM; - test_channel1->writeformat = AST_FORMAT_GSM; - test_channel1->rawwriteformat = AST_FORMAT_GSM; - test_channel1->readformat = AST_FORMAT_GSM; - test_channel1->rawreadformat = AST_FORMAT_GSM; + ast_format_set(&test_channel1->writeformat, AST_FORMAT_GSM, 0); + ast_format_cap_add(test_channel1->nativeformats, &test_channel1->writeformat); + ast_format_set(&test_channel1->rawwriteformat, AST_FORMAT_GSM, 0); + ast_format_set(&test_channel1->readformat, AST_FORMAT_GSM, 0); + ast_format_set(&test_channel1->rawreadformat, AST_FORMAT_GSM, 0); test_channel1->tech = &fake_tech; ast_test_status_update(test, "Test playing of extension when greeting is not available...\n"); |