[asterisk-bugs] [Asterisk 0018958]: [patch] Configurable phoneprov path
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Mar 11 08:03:14 CST 2011
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=18958
======================================================================
Reported By: pdugas
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 18958
Category: Resources/res_phoneprov
Reproducibility: N/A
Severity: feature
Priority: normal
Status: new
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2011-03-10 22:33 CST
Last Modified: 2011-03-11 08:03 CST
======================================================================
Summary: [patch] Configurable phoneprov path
Description:
I maintain a few Asterisk installations using the RPMs from Digium's YUM
repository and have to deal with files in my AST_DATADIR/phoneprov folder
being overwritten with packages are updated. I keep /etc/asterisk in an
SVN repository. I keep my provisioning files and templates in
/etc/asterisk/phoneprov and change /var/lib/asterisk/phoneprov to be a link
to there.
I'm not sure what the "right" way to do this is but I'd like to be able to
point the res_phoneprov module to an alternate path for its content and
templates. I can code and am willing to develop a patch but would like
some guidance on the "correct" way to handle this. Is this worthy of a new
entry in asterisk.conf's [directories] section? Or, is this a new setting
in phoneprov.conf? Perhaps another I'm not thinking of?
======================================================================
----------------------------------------------------------------------
(0132846) pdugas (reporter) - 2011-03-11 08:03
https://issues.asterisk.org/view.php?id=18958#c132846
----------------------------------------------------------------------
The attached patch is against rev 310330 on branches/1.8. I've done some
minimal testing with both a static and a dynamic file and it appears to
work. It allows me to use an absolute path for "staticdir" as well as
templates in phoneprov.conf like so.
staticdir => /etc/asterisk/phoneprov/static/
${TOLOWER(${MAC})}.cfg => /etc/asterisk/phoneprov/000000000000.cfg
Issue History
Date Modified Username Field Change
======================================================================
2011-03-11 08:03 pdugas Note Added: 0132846
======================================================================
More information about the asterisk-bugs
mailing list