3.1 makes no changes to the "cdrs" or "cdrcosts" tables, so the database upgrade should run in less than a minute on most installations.
To upgrade from Enswitch 3.0 to Enswitch 3.1
- On all machines, check out /opt/enswitch/branches/3.1.
- On all machines, update the /opt/enswitch/current symlink.
- On the primary database machine, do:
- enswitch drop_foreign_keys
- enswitch upgrade
- Determine whether OpenSIPS or OpenSER is in use, and if so then edit /etc/opensips/opensips.cfg or /etc/openser/openser.cfg and:
Change line:modparam( "usrloc", "db_mode", 2 ) #route( 3 );
To:modparam( "usrloc", "db_mode", 3 )
After these lines:if ( isflagset( 7 ) ) { sl_send_reply( "403", "Not allowed from this IP address" ); exit; }
Add these lines, indenting as appropriate:if ( $fU == "" || $fU != $au ) { sl_send_reply( "403", "From user is blank or different to authentication user" ); exit; }
replacing OpenSIPS with OpenSER if necessary. If in doubt, read /opt/enswitch/current/install/etc/opensips/opensips.cfg to see the correct place and indenting. - On all machines, do:
- enswitch restart
- Under System » Roles, edit any roles that are not shipped with Enswitch by default, setting access as desired, and save the role.
- Test calls and the web interface.
- On the primary database machine, do:
- enswitch after_upgrade