Configuring and Managing WebLogic SIP Server
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Note: The sections that follow provide only general instructions for upgrading WebLogic SIP Server software and deployed applications. Your service pack or new software may contain additional instructions and tools to help you upgrade the software.
The following sections describe how to upgrade production WebLogic SIP Server installations to a new release of the software, and how to upgrade individual SIP applications on a production server installation:
Because a typical production WebLogic SIP Server installation uses multiple server instances in both the engine and data tiers, upgrading the WebLogic SIP Server software, or a SIP Servlet deployed to the engine tier, requires that you follow very specific practices. These practices ensure that:
The sections that follow describe how to use a configured load balancer to perform a "live" upgrade of the WebLogic SIP Server software, or a deployed SIP application on a production installation. The procedure for either type of upgrade is similar, but each procedure is described in a separate section for clarity.
When upgrading the WebLogic SIP Server software (for example, in response to a Service Pack), or upgrading a SIP Servlet where the Servlet's session data is incompatible with the older version, a new engine tier cluster is created to host newly-upgraded engine tier instances or new versions of SIP Servlets. One-by-one, servers in the engine tier are shut-down, upgraded, and then restarted in the new target cluster. While servers are being upgraded, WebLogic SIP Server automatically forwards requests from one engine tier cluster to the other as necessary to ensure that data tier requests are always initiated by a compatible engine tier server. After all servers have been upgraded, the older cluster is removed and no longer used. After upgrading the engine tier cluster, servers in the data tier may also be upgraded, one-by-one. See Upgrading a Deployed Production Application (Compatible Session Data) for more information.
To upgrade a production WebLogic SIP Server installation you require:
Warning: Before modifying any production installation, thoroughly test your proposed changes in a controlled, "stage" environment to ensure software compatibility and verify expected behavior.
Follow these steps to upgrade a production installation of WebLogic SIP Server to a newer version of the WebLogic SIP Server software. These instructions upgrade both the SIP Servlet container implementation and the data tier replication and failover implementation included in the sipserver
Enterprise Application (EAR).
The steps for performing a software upgrade are divided into several high-level procedures:
sipserver.xml
configuration file into the new sipserver
application to duplicate your production container configuration.Each procedure is described in the sections that follow.
Begin the software upgrade procedure by defining a new internal virtual IP address for the new engine tier cluster you will create in Configure the New Engine Tier Cluster. The individual server IP addresses (the pool definition) for the new virtual IP address should be identical to the pool definition of your currently-active engine tier cluster. Figure A-1 shows a sample configuration for a cluster having three engine tier server instances; both virtual IP addresses define the same servers.
Figure A-1 Virtual IP Address Configuration for Parallel Clusters
See your load balancer documentation for more information about defining virtual IP addresses.
In the next section, you will configure the WebLogic SIP Server domain to identify the virtual IP addresses that map to each engine tier cluster. WebLogic SIP Server uses this mapping during the upgrade procedure to automatically forward requests to the appropriate "version" of the cluster. This ensures that data tier requests always originate from a compatible version of the WebLogic SIP Server engine tier.
Follow these steps to create a new Engine Tier cluster to host upgraded containers, and to configure both clusters in preparation for a software upgrade:
c:\beanew
as the BEA home directory in which the new software was installed. c:\bea
refers to the software implementation that is being upgraded.sipserver
application directory into a new directory from which it will be deployed. For example:cp -r c:\beanew\wlss210\samples\domains\telco\sipserver c:\deployments
Note: During the upgrade process you need to target the new sipserver
Enterprise Application, as well as your own SIP applications, to the newly-created cluster. However, you cannot target applications to an empty cluster. For this reason, targeting applications to the new cluster occurs only after you have added the first engine tier server to the new cluster in Upgrade Engine Tier Servers and Target Applications to the New Cluster.
In this procedure, you manually edit the active sipserver.xml
configuration file to define the cluster-loadbalancer-map
element. This XML element defines the internal, virtual IP address that is assigned to the older and newer engine tier clusters.
To define the cluster-to-load balancer mapping:
sipserver.xml
configuration file for your production domain. For example:cd c:\bea\user_projects\domains\mydomain\sipserver\config
notepad sipserver.xml
cluster-loadbalancer-map
element definition to the end of the configuration file, before the final </sip-server>
line. The full definition must include a mapping for both the older and the newer engine tier cluster. A mapping consists of the internal virtual IP address of the cluster configured on the load balancer, as well as the cluster name defined in the WebLogic SIP Server domain. Listing 1-1 shows an entry for the sample clusters described earlier.Listing 1-1 Sample cluster-loadbalancer-map Definition
<cluster-loadbalancer-map>
<cluster-name>EngineCluster</cluster-name>
<sip-uri>sip:172.17.0.1:5060</sip-uri>
</cluster-loadbalancer-map>
<cluster-loadbalancer-map>
<cluster-name>NewEngineCluster</cluster-name>
<sip-uri>sip:172.17.0.2:5060</sip-uri>
</cluster-loadbalancer-map>
</sip-server>
Before upgrading individual engine tier servers, you must ensure that the SIP Servlet container configuration and data tier configuration in the new engine tier cluster matches your current production configuration. To duplicate the container configuration, copy your production sipserver.xml
and datatier.xml
configuration files on top of the files in the new sipserver
application. For example:
cp c:\bea\user_projects\domains\mydomain\sipserver\config\sipserver.xml c:\deployments\sipserver\config
cp c:\bea\user_projects\domains\mydomain\sipserver\config\datatier.xml c:\deployments\sipserver\config
The sipserver.xml
file in both the old and the new sipserver
application should now be identical; only the implementation classes for each application are different. As engine tier servers are restarted in the new engine tier cluster in the next procedure, they will have the same SIP container configuration but will use the new container implementation.
To upgrade individual engine tier servers, you gracefully shut each server down, change its cluster membership, and then restart it. Follow these steps:
The server remains active while clients are still accessing the server, but no new connection requests are accepted. After all existing client connections have ended or timed out, the server shuts down. Other server instances in the engine tier process client requests during the shutdown procedure.
sipserver
Enterprise Application and your own SIP applications to the new cluster. Note: Perform this step only once, after adding the first engine tier server to the new cluster:
sipserver
application directory on the Administration Server machine (for example, c:\deployments\sipserver
).startManagedWebLogic.cmd engine-server1 t3://adminhost:7001
At this point, all running Managed Servers are using the new SIP Container implementation (the new sipserver
application deployment) and are hosting your production SIP Servlets with the same SIP Servlet container settings as your old configuration. Data tier servers can now be upgraded using the instructions in Upgrade Data Tier Servers.
Warning: Your data tier must have three active replicas (three server instances) in each partition in order to upgrade the servers in a production environment. With only two replicas in each partition, a failure of the active replica during the upgrade process will result in the irrecoverable loss of call state data. With only one replica in each partition, the upgrade cannot be initiated without losing call state data.
The procedure for upgrading server instances in the data tier is similar to the procedure for upgrading servers in the engine tier, except that:
Apart from these differences, the process for upgrading a data tier cluster involves creating a new cluster for hosting upgraded server instances, targeting the new sipserver
application to the new cluster, and restarting individual server instances in the new cluster. While upgrading individual data tier servers, care must be taken to ensure that each partition always contains an two active replicas in each partition to protect against hardware or software failures during the upgrade.
To upgrade data tier servers to a new WebLogic SIP Server implementation:
Warning: Do not shut down a data tier server instance in a partition unless two additional servers in the same partition are available, and both are in the ONLINE
state. See Monitoring and Troubleshooting Data Tier Servers
for information about determining the state of data tier servers.
The server remains active while engine tier instances are still accessing the server, but no new connection requests are accepted. After all existing connections have ended, the server shuts down. Other replicas in the same data tier partition process engine tier requests for call state data during the shutdown procedure.
sipserver
Enterprise Application to the cluster:Note: Perform this step only once, after adding the first data tier server to the new cluster:
sipserver
application directory on the Administration Server machine (for example, c:\deployments\sipserver
).startManagedWebLogic.cmd
or startManagedWebLogic.sh
) to boot the Managed Server. For example:startManagedWebLogic.cmd data-server1 t3://adminhost:7001
At this point, all running Managed Servers are using the new WebLogic SIP Server data tier implementation (the new sipserver
application deployment) and serving call state data to upgraded servers in the Engine Tier.
This section describes how to upgrade a deployed SIP Servlet to a new version of the same SIP Servlet in a production environment. The instructions that follow assume that the session data used by the new Servlet version is compatible with the older Servlet version. If the session data is incompatible, see Upgrading a Deployed Production Application (Incompatible Session Data) instead.
Warning: In order to upgrade a SIP Servlet using the procedure below, the session state information stored by the new version of the Servlet must be compatible with the older version of the Servlet. If the older and newer Servlets use incompatible session information, you must follow the instructions in Upgrading a Deployed Production Application (Incompatible Session Data) instead.
To upgrade an individual SIP Servlet to a new version:
cd c:\deployments
mkdir myServlet_backup
cp -r myServlet\* myServlet_backup
cp -r myNewServlet\* myServlet
If files have been deleted from the old servlet version, delete the original deployment files before copying over the new files:
rm -r myServlet\*
cp -r myNewServlet\* myServlet
At this point, the source files for the already-deployed SIP Servlet should represent the upgraded Servlet implementation. The currently-active SIP Servlet deployed to the engine tier uses the older version of the implementation.
For nostage-mode deployments, the final two steps have the effect of deploying the SIP Servlet using the updated source files.
Warning: It is important that the updated application files are deployed by gracefully shutting down and then restarting individual servers, rather than by simply redeploying the running application. Redeploying an application immediately unloads the application's implementation classes and replaces them with the newer classes. This makes the application unavailable during redeployment and may result in dropped client connections; never redeploy a running application in a production system.
This section describes how to upgrade a deployed SIP Servlet to a new version when the session data used by the new Servlet is compatible with the older version. The upgrade procedure is similar to the procedure described in Upgrading to a New Version of WebLogic SIP Server, except that the SIP Servlet container (sipserver
application) is not upgraded.
The steps for performing this type of upgrade are divided into these high-level procedures:
Each procedure is described in the sections that follow.
Begin the software upgrade procedure by defining a new internal virtual IP address for the new engine tier cluster you will create in Configure the New Engine Tier Cluster. The individual server IP addresses (the pool definition) for the new virtual IP address should be identical to the pool definition of your currently-active engine tier cluster. Figure A-1 shows a sample configuration for a cluster having three engine tier server instances; both virtual IP addresses define the same servers.
Figure A-2 Virtual IP Address Configuration for Parallel Clusters
See your load balancer documentation for more information about defining virtual IP addresses.
In the next section, you will configure the WebLogic SIP Server domain to identify the virtual IP addresses that map to each engine tier cluster. WebLogic SIP Server uses this mapping during the upgrade procedure to automatically forward requests to the appropriate "version" of the cluster. This ensures that data tier requests always originate from a compatible version of the WebLogic SIP Server engine tier.
Follow these steps to create a new Engine Tier cluster to host upgraded containers, and to configure both clusters in preparation for a software upgrade:
c:\beanew
as the BEA home directory in which the new software was installed. c:\bea
refers to the software implementation that is being upgraded.sipserver
application directory into a new directory from which it will be deployed. For example:cp -r c:\beanew\wlss210\samples\domains\telco\sipserver c:\deployments
Note: During the upgrade process you need to target your new SIP applications to the newly-created cluster. However, you cannot target applications to an empty cluster. For this reason, targeting applications to the new cluster occurs only after you have added the first engine tier server to the new cluster in Migrate Engine Tier Servers and Target Applications to the New Cluster.
In this procedure, you manually edit the active sipserver.xml
configuration file to define the cluster-loadbalancer-map
element. This XML element defines the internal, virtual IP address that is assigned to the older and newer engine tier clusters.
To define the cluster-to-load balancer mapping:
sipserver.xml
configuration file for your production domain. For example:cd c:\bea\user_projects\domains\mydomain\sipserver\config
notepad sipserver.xml
cluster-loadbalancer-map
element definition to the end of the configuration file, before the final </sip-server>
line. The full definition must include a mapping for both the older and the newer engine tier cluster. A mapping consists of the internal virtual IP address of the cluster configured on the load balancer, as well as the cluster name defined in the WebLogic SIP Server domain. Listing 1-1 an entry for the sample clusters described earlier.Listing 1-2 Sample cluster-loadbalancer-map Definition
<cluster-loadbalancer-map>
<cluster-name>EngineCluster</cluster-name>
<sip-uri>sip:172.17.0.1:5060</sip-uri>
</cluster-loadbalancer-map>
<cluster-loadbalancer-map>
<cluster-name>NewEngineCluster</cluster-name>
<sip-uri>sip:172.17.0.2:5060</sip-uri>
</cluster-loadbalancer-map>
</sip-server>
To deploy the new version of the SIP Servlet, you gracefully shut each server down, change its cluster membership, and then restart it in the new cluster. Because you target the newer versions of your production applications to the new cluster, restarting server instances in the new cluster deploys the latest application versions. Follow these steps:
The server remains active while clients are still accessing the server, but no new connection requests are accepted. After all existing client connections have ended or timed out, the server shuts down.
Other server instances in the engine tier process client requests using the older version of the SIP Servlet, and the WebLogic SIP Servlet implementation automatically forwards requests to the appropriate cluster (using the cluster-to-load balancer map) so that each engine tier accesses the correct version of the application's session data.
Note: Perform this step only once, after adding the first engine tier server to the new cluster:
startManagedWebLogic.cmd
or startManagedWebLogic.sh
) to boot the Managed Server. For example:startManagedWebLogic.cmd engine-server1 t3://adminhost:7001
At this point, all running Managed Servers are using the new version of the SIP Servlet.
![]() ![]() |
![]() |
![]() |