[asterisk-commits] rmudgett: trunk r429830 - in /trunk: ./ channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 19 11:34:36 CST 2014
Author: rmudgett
Date: Fri Dec 19 11:34:33 2014
New Revision: 429830
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429830
Log:
chan_dahdi: Don't ignore setvar when using configuration section scheme.
When the configuration section scheme of chan_dahdi.conf is used (keyword
dahdichan instead of channel) all setvar= options are completely ignored.
No variable defined this way appears in the created DAHDI channels.
* Move the clearing of setvar values to after the deferred processing of
dahdichan.
AST-1378 #close
Reported by: Guenther Kelleter
Patch by: Guenther Kelleter
........
Merged revisions 429825 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 429829 from http://svn.asterisk.org/svn/asterisk/branches/13
Modified:
trunk/ (props changed)
trunk/channels/chan_dahdi.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.
Modified: trunk/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=429830&r1=429829&r2=429830
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Fri Dec 19 11:34:33 2014
@@ -18927,12 +18927,6 @@
ast_log(LOG_WARNING, "Ignoring any changes to '%s' (on reload) at line %d.\n", v->name, v->lineno);
}
- /* Since confp has already filled invidual dahdi_pvt objects with channels at this point, clear the variables in confp's pvt. */
- if (confp->chan.vars) {
- ast_variables_destroy(confp->chan.vars);
- confp->chan.vars = NULL;
- }
-
if (dahdichan) {
/* Process the deferred dahdichan value. */
if (build_channels(confp, dahdichan->value, reload, dahdichan->lineno)) {
@@ -18944,6 +18938,15 @@
return -1;
}
}
+ }
+
+ /*
+ * Since confp has already filled individual dahdi_pvt objects with channels
+ * at this point, clear the variables in confp's pvt.
+ */
+ if (confp->chan.vars) {
+ ast_variables_destroy(confp->chan.vars);
+ confp->chan.vars = NULL;
}
/* mark the first channels of each DAHDI span to watch for their span alarms */
More information about the asterisk-commits
mailing list