[asterisk-bugs] [Asterisk 0018958]: [patch] Configurable phoneprov path

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 11 08:31:12 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:31 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?
====================================================================== 

---------------------------------------------------------------------- 
 (0132850) lathama (developer) - 2011-03-11 08:31
 https://issues.asterisk.org/view.php?id=18958#c132850 
---------------------------------------------------------------------- 
pdugas, thanks, patch + documentation is better than just a patch :D

suggestion on your phoneprov.conf.sample

"request to /phoneprov/sip.cfg"
replace with
"requests to http://server:port/phoneprov/sip.cfg"

my reason is that the beginning / may confuse the user, however the
http:// tells them that we are talking about url paths and not file system
paths. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-11 08:31 lathama        Note Added: 0132850                          
======================================================================




More information about the asterisk-bugs mailing list