ahennis@voicespring.net Posted January 6, 2017 Report Share Posted January 6, 2017 Is there a way of finding extensions that have custom configs? What I am looking for is to produce a list of extensions that have custom configs at either the domain level or the extension level. I have looked through the subdirectories of my servers and can't find where the custom configs for each extension are stored. If I make a custom config for an extension I can see the changes in the generated directory but can't find where the customization are stored. My goal is to be able to find phones with custom configs so that when we upgrade the server we can update the custom config with the new templates installed with the upgrade. Right now we have to manually check each extension which is very time consuming because there are 50 or 60 or more domains on each of our servers and each domain has many phones. We literally have to look through hundreds of extensions! Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted January 6, 2017 Report Share Posted January 6, 2017 What do you mean with custom configs? Template changes? Those are stored in the webpages directory. I guess you have seen the https://vodia.com/doc/shellscripts examples, this could be another application! Quote Link to comment Share on other sites More sharing options...
ahennis@voicespring.net Posted January 8, 2017 Author Report Share Posted January 8, 2017 Yes,I am referring to templates/customization at the server level, domain level and individual extensions. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted January 9, 2017 Report Share Posted January 9, 2017 Hmm, unfortunately those are binary encoded, so that the XML bash script will not work. It would require writing something in a better scripting language like perl or python. Quote Link to comment Share on other sites More sharing options...
ahennis@voicespring.net Posted January 9, 2017 Author Report Share Posted January 9, 2017 I can do perl or python. What method is use the encode the files? How do I decode them? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted January 10, 2017 Report Share Posted January 10, 2017 The format is just TLV - tag length and value. The tag and the length are fixed-length, binary encoded fields. They encode the same thing like the XML files are encoding. The binary encoding is faster to read, which is important for record times like CDR where there may be thousands of records which cost time when booting up. For the web pages the binary form saves time for escaping entities like & < >. Quote Link to comment Share on other sites More sharing options...
ahennis@voicespring.net Posted January 11, 2017 Author Report Share Posted January 11, 2017 One second thought I don't really care what is in the file. All I need to know is if a particular extension has a custom template. As long as I can map the files in the webpages directory back to a domain and an extension it does not matter what is in the file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.