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

Advanced Features 385
Type of Service (TOS)
When working with Other URI support, whenever a SIP Stack object tries to
send a request and the destination address scheme is im or pres, the
RvSipXXXOtherURLAddressFoundEv() callback will not be called, and the
SIP Stack will manage to handle the address.
TEL URI EXTENSION
S
UPPORT
The SIP Stack also provides extension support for the “tel” URI scheme. You
can compile the SIP Stack with the RV_SIP_TEL_URI_SUPPORT compilation
flag, and, as a result, addresses with tel schemes will be parsed as a tel-address
(a regular address object with type = RVSIP_ADDRTYPE_TEL), and not as an
absolute URI (RVSIP_ADDRTYPE_ABS).
When working with tel URI-support, whenever a SIP Stack object tries to send a
request and the destination address scheme is tel, the SIP Stack acts according to
its bresolveTelUrls configuration parameter. If it was set to TRUE, the SIP Stack
will handle the tel address, Otherwise, RvSipXXXOtherURLAddressFoundEv()
will be called.
TYPE OF SERVICE
(TOS)
The SIP Stack provides an API that enables setting and getting the IP_TOS
option for sockets that serve local addresses and connections, which the
SIP Stack opened. The API can be called at any moment of the SIP Stack life
cycle. Incoming connections inherit the IP_TOS option from the local
addresses, on which the connections are accepted.
The value of the TOS byte that the API set depends on the RFC implemented by
the OS, since different RFCs declare different rules for TOS values. Some OS
compilations do not support TOS. In this case, the OS typically supplies the
DSCP mechanism (see RFC 2474). Note that the SIP Stack does not provide an
API for DSCP.
The SIP Stack provides the following API functions for support of the TOS
option:
RvSipTransportMgrLocalAddressSetIpTosSockOption()
Sets the option value into the opened local address. All the UDP packets that the
SIP Stack sends from this address will be marked with the value in the TOS byte
of the IP header. Also, all the packets (TCP) that the SIP Stack sends on the
connection that were accepted on this address will be marked with the set value
in the TOS byte of the IP header.
RvSipTransportMgrLocalAddressGetIpTosSockOption()
Gets the option value that was set for the local address.