[asterisk-bugs] [Asterisk 0016564]: [patch] "config reload" doesn't work correctly
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Jan 11 10:40:25 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=16564
======================================================================
Reported By: pj
Assigned To: seanbright
======================================================================
Project: Asterisk
Issue ID: 16564
Category: Core/Configuration
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for review
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 238313
Request Review:
======================================================================
Date Submitted: 2010-01-07 08:22 CST
Last Modified: 2010-01-11 10:40 CST
======================================================================
Summary: [patch] "config reload" doesn't work correctly
Description:
After change in cli_aliases.conf, I tried to reload changed config using:
"config reload /etc/asterisk/cli_aliases.conf"
then I got warnings like below and cli aliases are then doubled.
localhost*CLI> config reload /etc/asterisk/cli_aliases.conf
[Jan 7 09:09:14] -- Reloading module 'res_clialiases.so' (CLI
Aliases)
[Jan 7 09:09:14] == Parsing '/etc/asterisk/cli_aliases.conf': [Jan 7
09:09:14] == Found
[Jan 7 09:09:14] == Aliased CLI command 'c' to 'core show channels
verbose'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'hangup' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'hangup' to 'channel request
hangup'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
's' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 's' to 'sip show peers'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'sp' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'sp' to 'sip show peer'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'sc' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'sc' to 'sip show channels'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'su' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'su' to 'sip show
subscriptions'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'hint' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'hint' to 'core show hints'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'sd' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'sd' to 'skinny show devices'
[Jan 7 09:09:14] WARNING[3095]: cli.c:1957 __ast_cli_register: Command
'md' already registered (or something close enough)
[Jan 7 09:09:14] == Aliased CLI command 'md' to 'mobile show devices'
.....
======================================================================
----------------------------------------------------------------------
(0116442) svnbot (reporter) - 2010-01-11 10:40
https://issues.asterisk.org/view.php?id=16564#c116442
----------------------------------------------------------------------
Repository: asterisk
Revision: 239113
U trunk/main/astobj2.c
------------------------------------------------------------------------
r239113 | seanbright | 2010-01-11 10:40:24 -0600 (Mon, 11 Jan 2010) | 19
lines
Fix ao2_callback when both OBJ_MULTIPLE and OBJ_NODATA are passed.
There is an issue which only affects trunk and the new ao2_callback
OBJ_MULTIPLE
implementation. When both OBJ_MULTIPLE and OBJ_NODATA are passed, only
the first
object is visited, regardless of what is returned by the specified
callback. This
causes a problem when we are clearing a container, i.e.:
ao2_callback(container, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL,
NULL);
Only unlinks the first object. This patch resolves this.
(closes issue https://issues.asterisk.org/view.php?id=16564)
Reported by: pj
Patches:
issue16564_20100111.diff uploaded by seanbright (license 71)
Tested by: pj, seanbright
Review: https://reviewboard.asterisk.org/r/457/
------------------------------------------------------------------------
http://svn.digium.com/view/asterisk?view=rev&revision=239113
Issue History
Date Modified Username Field Change
======================================================================
2010-01-11 10:40 svnbot Note Added: 0116442
======================================================================
More information about the asterisk-bugs
mailing list