A generic table viewer
Using the control panel, it is also possible to add a new table to the interface. This is important when you construct a new feature using a new table on the system. In the following example, we have modified the configuration file located at /var/www/opensips-cp/config/tools/system/tviewer/local.inc.php
.
This file was modified to show the table called version
. The version
table checks the schema of the database against the module's version. We used this table just as an example. The configuration file is shown here. I have removed some comments to reduce the size and the lines effectively changed are highlighted.
<?php //this is a very important parameter $module_id = "tviewer"; $custom_config[$module_id] = array (); // a ...
Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.