From 8d58f5bf370593442c58d2089dadf4cdcd089bc3 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 26 Jan 2010 01:41:47 +0000 Subject: Using a dummy channel causes CDR() testing to fail. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@243076 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- tests/test_substitution.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_substitution.c') diff --git a/tests/test_substitution.c b/tests/test_substitution.c index 9d252dfbf..a9b327846 100644 --- a/tests/test_substitution.c +++ b/tests/test_substitution.c @@ -211,7 +211,7 @@ AST_TEST_DEFINE(test_substitution) ast_test_status_update(&args->status_update, "Testing variable substitution ...\n"); - c = ast_dummy_channel_alloc(); + c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Test/substitution"); #define TEST(t) if (t == AST_TEST_FAIL) { res = AST_TEST_FAIL; } TEST(test_chan_integer(&args->status_update, &args->ast_test_error_str, c, &c->cid.cid_pres, "${CALLINGPRES}")); @@ -270,7 +270,7 @@ AST_TEST_DEFINE(test_substitution) ast_free(cmd); } - ast_channel_release(c); + ast_hangup(c); return res; } -- cgit v1.2.3