3.5 makes no changes to the cdrs, so "enswitch upgrade" should run quickly even on large systems.
To upgrade from Enswitch 3.4 to Enswitch 3.5
- On all web machines, add these lines at the top of /etc/apache2/sites-enabled/enswitch.conf or /etc/httpd/conf.d/enswitch.conf, just below the DocumentRoot line:
ScriptAliasMatch ^/provision/polycom/[^sip][\w\.\-]+$ /opt/enswitch/current/www/provision/polycom/index.pl ScriptAliasMatch ^/provision/polycom/contacts/[\w\.\-]+$ /opt/enswitch/current/www/provision/polycom/contacts/index.pl ScriptAliasMatch ^/provision/yealink/[\w\.\-]+$ /opt/enswitch/current/www/provision/yealink/index.pl
- On all machines, check out /opt/enswitch/branches/3.5.
- On all machines, update the /opt/enswitch/current symlink.
- On the primary database machine, do:
- 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:
After line:loadmodule "uri.so"
Add this line:loadmodule "xlog.so"
After line:modparam( "usrloc", "desc_time_order", 1 )
Add this line:modparam( "usrloc", "fetch_rows", 500 )
After line:if ( ! www_authorize( "", "phones" ) ) {
Add this line:#route( 3 );
After line:if ( $fU == "" || $fU != $au ) {
Add this line:#route( 3 );
After line:if ( ! proxy_authorize( "", "phones" ) ) {
Add this line:#route( 3 );
After these lines:route[ 2 ] { add_uri_param( "transport=udp" ); if ( ! t_relay() ) { sl_reply_error(); } }
Add these lines, indenting as necessary:route[ 3 ] { if ( $au != NULL && $rc != -3 && is_present_hf( "Authorization" ) ) { xlog( "SIP authentication failure time=\"$Ts\" source=\"$si\" method=\"$rm\" authuser=\"$au\" fromuser=\"$fU\" rc=\"$rc\"" ); } }
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
- Test calls and the web interface.
- On the primary database machine, do:
- enswitch after_upgrade