[svn-commits] mnicholson: branch group/newcdr r202494 - /team/group/newcdr/tests/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Jun 22 14:33:50 CDT 2009
Author: mnicholson
Date: Mon Jun 22 14:33:47 2009
New Revision: 202494
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=202494
Log:
Use ast_dummy_channel_alloc for variable substitution.
Modified:
team/group/newcdr/tests/test_substitution.c
Modified: team/group/newcdr/tests/test_substitution.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/newcdr/tests/test_substitution.c?view=diff&rev=202494&r1=202493&r2=202494
==============================================================================
--- team/group/newcdr/tests/test_substitution.c (original)
+++ team/group/newcdr/tests/test_substitution.c Mon Jun 22 14:33:47 2009
@@ -165,7 +165,7 @@
}
ast_cli(a->fd, "Testing variable substitution ...\n");
- c = ast_channel_alloc(0, 0, "", "", "", "", "", NULL, 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 @@
ast_free(cmd);
}
- ast_hangup(c);
+ ast_channel_release(c);
return CLI_SUCCESS;
}
More information about the svn-commits
mailing list