[lug] Publishing config files

Daniel Webb lists at danielwebb.us
Thu Nov 10 23:32:37 MST 2005


I want to publish a bunch of my config files on my web site, but would like a
nice clean way to remove passwords or sensitive info.  An example might be in
my Asterisk config file, where the calling-card authentication codes should be
hidden. 

For the Asterisk config example, I want to do something like this:

; !!!REPLACE:12341234:XXXXXXXX!!!
exten = 12341234,1,SetCIDNum(1112223333)
exten = 12341234,2,SetCIDName(Someone)
exten = 12341234,3,Goto(calling_card,s,1)

Obviously this wouldn't require much in Perl (or Python), but I know it would
end up taking me 30-45 minutes to do it because my Perl is rusty.  Anybody
know of something like this?

Daniel



More information about the LUG mailing list