Files

TM :: Transaction stateful proxy support

The TM module enables stateful processing of SIP transactions. More...

Files


Detailed Description

The main use of stateful logic, which is costly in terms of memory and CPU, is some services that inherently need state.

For example, transaction-based accounting (module acc) needs to process transaction state as opposed to individual messages, and any kinds of forking must be implemented statefully. Other use of stateful processing is it trading CPU caused by retransmission processing for memory. That however only makes sense if CPU consumption per request is huge. For example, if you want to avoid costly DNS resolution for every retransmission of a request to an unresolvable destination, use stateful mode. Then, only the initial message burdens server by DNS queries, subsequent retransmissions will be dropped and will not result in more processes blocked by DNS resolution. The price is more memory consumption and higher processing latency.

 ***************************************************
 * Jiri's Source Memorial                          *
 *                                                 *
 * Welcome, pilgrim ! This is the greatest place   *
 * where dramatic changes happend. There are not   *
 * many places with a history like this, as there  *
 * are not so many people like Jiri, one of the    *
 * ser's fathers, who brought everywhere the wind  *
 * of change, the flood of clean-up. We all felt   *
 * his fatherly eye watching over us day and night.*
 *                                                 *
 * Please, preserve this codework heritage, as     *
 * it's unlikely for fresh, juicy pieces of code to  *
 * arise to give him the again the chance to       *
 * demonstrate his clean-up and improvement skills.*
 *                                                 *
 * Hereby, we solicit you to adopt this historical *
 * piece of code. For $100, your name will be      *
 * be printed in this banner and we will use       *
 * collected funds to create and display an ASCII  *
 * statue of Jiri  .                               *
 ***************************************************