Interpreting the file system

From Pbxnsip Wiki

Jump to: navigation, search

The PBX writes the content of the internal database to the file system. These files are stored in XML format. Whenever the PBX changes internally the data, it writes the XML files back.

When you change the XML files, the PBX will not change the internal value of the database. You can use only SOAP for this purpose. However, you can use the XML files for retrieving important information.

Showing Email Addresses

If you want to see the available email addresses you can use the following bash shell script command to list the available email addresses:

gawk -v tag="email_address" 'BEGIN{regex="<" tag ">([^<]*)</" tag ">";}{ match($0, regex, m); for(i = 1;; i++) { if(!(i in m)) break; printf("%s: %s\n", FILENAME, m[i]);}}' *.xml
Personal tools
Getting Help