4. - SIP Servers
SIP Servers
- Registration
- Re-Registration
- SIP Proxy Servers
- SIP Server - Proxy mode
- SIP Server -Re-Direct mode
- Proxy Server 'State' types
- Location Services
SIP Registration server
A SIP registration server is responsible for authenticating and registering SIP users or endpoints with a SIP server. It acts as a central database for storing user information, including their SIP addresses, phone numbers, IP addresses, and other relevant information. When a SIP user wants to make a call, they first register with the SIP registration server, which sends a notification to the SIP server that the user is available. The SIP server then routes the call to the appropriate user based on their SIP address. The SIP registration server is crucial for enabling SIP-based communications, as it allows SIP users to locate and communicate with one another over the internet.

When SIP UA Registers with a registrar it tells the registrar about its feature capabilities. This is really useful information for SIP devices to make contact with the UA.
SIP RE-Registration Server
A SIP re-registration server is a server that allows SIP devices to re-register their contact information periodically. SIP devices usually send registration requests to a SIP registration server to inform it of their current IP address and availability to receive calls. However, if the IP address of the SIP device changes or it becomes unavailable for some reason, the registration information needs to be updated. A re-registration server helps to automate this process by periodically sending a SIP re-registration request to the SIP devices. If the device responds with a new contact address, the registration server updates its records accordingly. This ensures that the SIP devices can always be reached by other users and devices in the network, even if their IP address changes or they go offline temporarily.

SIP Proxy Server
A SIP proxy server is an intermediary device that sits between SIP user agents (UAs) to facilitate communication between them. It receives SIP requests from one UA, inspects them, and forwards them to the appropriate destination UA. It can modify the request headers or body as necessary and may also provide services like call routing, load balancing, and security. A proxy server can be located within a private network or in the public domain.
- A proxy server forward request to the next server after working out which is the next server to talk to.
- It interpret a request message and if necessary rewrite the message before forwarding it.
- It can issue both request and responses so it is in effect a SIP client and a Server
- A proxy server can fork the incoming request to multiple locations if someone has multiple registrations i.e Office and Mobile phones

Other examples of SIP Proxy
Trapezoid Model
The SIP Proxy Trapezoid model is a reference model for SIP networks that defines the different types of SIP proxy servers and their relationships. The model consists of four layers: User Agents (UA), Proxy Servers, Redirect Servers, and Location Servers.
The UA layer contains user agents, which initiate SIP requests and responses. The Proxy Server layer includes stateful and stateless proxies, which act as intermediaries between UAs and other SIP entities. The Redirect Server layer includes servers that redirect SIP requests to other destinations based on specific rules.
The Location Server layer includes SIP location servers, which maintain information about the current location of UAs within the network. The trapezoid shape of the model represents the different levels of trust in the network, with the UA layer being the most trusted and the Location Server layer being the least trusted.
The SIP Proxy Trapezoid model is useful for understanding the different types of SIP proxy servers and their roles in the network. It can also help network administrators design and implement SIP networks that are secure and efficient.

Proxy mode
SIP server acts as an intermediary between clients in a SIP network. It receives SIP requests from one client and then forwards them to the appropriate destination client. The proxy server can manipulate the message headers and routing information to control the flow of the SIP messages. It can also provide services such as call routing, policy enforcement, security, and protocol translation. The proxy server can be stateful or stateless, depending on whether it maintains the state of the SIP transactions it handles. A stateful proxy server provides more advanced features and services but requires more resources to maintain the state information.

Proxy Redirect Mode
A server in proxy redirect mode acts as a middleman that receives a SIP request from a client and sends a redirect response to the client, which contains the address of the next hop server that the client should contact to complete the request. The proxy redirect server does not actively participate in the transaction beyond sending the redirect response. Instead, it relies on the client to initiate a new transaction with the next hop server specified in the redirect response. The proxy redirect server can be used to offload traffic from one server to another or to provide load balancing across multiple servers.

Types of Proxy Server
-
Stateful proxy server: A stateful proxy server maintains the transaction state and message history for all transactions that pass through it. This allows it to make more informed routing decisions, but also requires more processing power and memory.
-
Stateless proxy server: A stateless proxy server does not maintain any transaction state or message history. It simply forwards messages based on routing rules. This makes it faster and less resource-intensive, but also less flexible.
- Transaction Stateful: They store information about the SIP messages exchanged between the clients and servers and maintain the session state until the transaction is complete.
-
B2BUA (Back-to-Back User Agent): A B2BUA is a type of SIP proxy server that acts as both a client and a server, allowing it to manipulate the SIP messages as they pass through it. This makes it useful for applications such as call forwarding, where the B2BUA can modify the destination of the call based on user preferences or availability.
SIP Location Server
Is a type of server in a SIP network that keeps track of the current location or address of SIP user agents (UAs) in the network. It is responsible for maintaining a database of user agent location information, which can be used by other SIP servers to locate and communicate with those user agents. The location server uses the SIP REGISTER method to receive location updates from the user agents and stores the information in a location database. When another SIP server needs to communicate with a user agent, it can query the location server for the user agent's current address and then forward messages to that address.



No Comments