You can set up a replication domain for SIP sessions if you want replication of session, and dialog state information to occur during typical Session Initiation Protocol (SIP) processing. The SIP container typically uses the Data Replication Service (DRS) to replicate all state information. Because DRS does not provide a way to confirm when data replication has completed, the only thing that can be quantified is when a piece of state information is queued for replication. Within this topic, references to replication of data only means that the data has been queued for replication.
Each of these categories includes a number of different data types, that are described below. Each data object is treated independently. Therefore, a change to an application session object, that causes a replication, does not result in the replication of any internal state information.
Replication of internal state information
It is important to note that transaction state is not replicated in the WebSphere® Application Server 6.1 version of the SIP container, only dialog state. Not replicating transaction state reduces the load on all the servers in the replication domain, but can cause problems in failures that happen in the middle of a transaction (for example, loss of some dialog-related SIP messages).
An important difference between a B2BUA and a proxy application is the number of session objects created and replicated. In both cases only a single application session is created, but for the B2BUA, two session objects are created–one for the inbound leg and one for the outbound leg. For a proxy application, only a single session object is created.
Replication of application state information
Replication can occur for requests that do not establish a dialog if an application calls request.getApplicationSession(true) and if addTimer() and/or addAttribute() are called on the resulting application session object. This is needed so that a listener can be called when the timer expires.
SIP failover and replication setup considerations
A SIP cluster that requires replication and failover can consist of many replication domains, each of which contain a set of SIP containers. There is no limit set on the number of containers in a cluster. For performance reasons, each replication domain should contain only two containers.
The replication domain should be set to the Entire Domain, which means state is replicated to all containers in the replication domain. The replication mode should be Both client and server.
The distributed session for a container needs to be set to Memory-to-memory replication. Any applications that require session replication must include the <distributable /> tag in the web.xml and sip.xml files. Both SIP and HTTP will utilize the same replication topology
Complete the following steps to set up a replication domain for SIP sessions.
Memory-to-memory replication is enabled for SIP sessions.