HP-UX C SIP Stack Programmer's Guide (Novembery 2007)

366 HP-UX C SIP Stack Programmers Guide
Multihomed Host
MULTIHOMED HOST The Multihomed Host feature allows sending and receiving requests from
different local IP addresses. This feature can be used to send requests from
different network cards or from the same network card with several different
ports. This feature also enables the dynamic opening and closing of the local IP
addresses, which are used for request sending and reception, at any moment of
the SIP Stack life cycle. This sub-feature is called Dynamic Local Addresses
(DLA).
It is possible to set unlimited UDP, TCP and TLS addresses, using the following
configuration parameters found in the configuration structure, RvSipStackCfg:
localUdpAddresses
localUdpPorts
localTcpAddresses
localTcpPorts
numOfExtraUdpAddresses
numOfExtraTcpAddresses
numOfTlsAddresses
localTlsAddresses
localTlsPorts
The SIP Stack will wait for incoming SIP messages on the addresses that are set.
Note When listening to several TCP or TLS addresses, the maxConnection
configuration parameter should be increased accordingly.
MULTIHOMED HOST
API F
UNCTIONS
An API function is provided in each of the SIP Stack layers, allowing you to
define the address from which the requests are sent. The following API
functions are provided:
RvSipCallLegSetLocalAddress()
RvSipTransactionSetLocalAddress()
RvSipRegClientSetLocalAddress()
RvSipTransmitterSetLocalAddress()
Each of these functions receives five parameters:
Specified object handle
Transport type of the local address you wish to set (UDP/TCP/
TLS)
Address type of the local address you wish to set (IPv4/IPv6)