[asterisk-commits] russell: branch russell/chan_refcount r99717 - /team/russell/chan_refcount/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 22 18:41:31 CST 2008
Author: russell
Date: Tue Jan 22 18:41:31 2008
New Revision: 99717
URL: http://svn.digium.com/view/asterisk?view=rev&rev=99717
Log:
convert some new code to the new channel search API
Modified:
team/russell/chan_refcount/main/pbx.c
Change Statistics:
0 files changed
Modified: team/russell/chan_refcount/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/main/pbx.c?view=diff&rev=99717&r1=99716&r2=99717
==============================================================================
--- team/russell/chan_refcount/main/pbx.c (original)
+++ team/russell/chan_refcount/main/pbx.c Tue Jan 22 18:41:31 2008
@@ -4967,14 +4967,14 @@
var_name = a->argv[e->args + 1];
var_value = a->argv[e->args + 2];
- if (!(chan = ast_get_channel_by_name_locked(chan_name))) {
+ if (!(chan = ast_channel_get_by_name(chan_name))) {
ast_cli(a->fd, "Channel '%s' not found\n", chan_name);
return CLI_FAILURE;
}
pbx_builtin_setvar_helper(chan, var_name, var_value);
- ast_channel_unlock(chan);
+ ast_channel_unref(chan);
ast_cli(a->fd, "\n -- Channel variable '%s' set to '%s' for '%s'\n",
var_name, var_value, chan_name);
More information about the asterisk-commits
mailing list