From 0264eef1156b8ef7369884dd5c663646f1b2b429 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 26 Jun 2009 15:28:53 +0000 Subject: Merge the new Channel Event Logging (CEL) subsystem. CEL is the new system for logging channel events. This was inspired after facing many problems trying to represent what is possible to happen to a call in Asterisk using CDR records. For more information on CEL, see the built in HTML or PDF documentation generated from the files in doc/tex/. Many thanks to Steve Murphy (murf) and Brian Degenhardt (bmd) for their hard work developing this code. Also, thanks to Matt Nicholson (mnicholson) and Sean Bright (seanbright) for their assistance in the final push to get this code ready for Asterisk trunk. Review: https://reviewboard.asterisk.org/r/239/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@203638 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 c995e8ae6..ae5aa7b76 100644 --- a/tests/test_substitution.c +++ b/tests/test_substitution.c @@ -165,7 +165,7 @@ static char *handle_cli_test_substitution(struct ast_cli_entry *e, int cmd, stru } ast_cli(a->fd, "Testing variable substitution ...\n"); - c = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Test/substitution"); + c = ast_dummy_channel_alloc(); test_chan_integer(a->fd, c, &c->cid.cid_pres, "${CALLINGPRES}"); test_chan_integer(a->fd, c, &c->cid.cid_ani2, "${CALLINGANI2}"); @@ -217,7 +217,7 @@ static char *handle_cli_test_substitution(struct ast_cli_entry *e, int cmd, stru ast_free(cmd); } - ast_hangup(c); + ast_channel_release(c); return CLI_SUCCESS; } -- cgit v1.2.3