HP-UX C SIP Stack Programmer's Guide (Novembery 2007)
390 HP-UX C SIP Stack Programmer’s Guide
ENUM Resolution Support
DNS list object. The single query result can be retrieved by using one of the
Transport API functions for manipulating DNS list objects. For more
information, see the Working with DNS chapter.
ENUM EVENT The Transmitter API supplies an ENUM event in the form of a callback
function, to which your application may listen and react. To listen to this event,
your application should pass the event handler pointer to the TransmitterMgr
object using RvSipTransmitterMgrSetEvHandlers(). When an event occurs, the
transmitter calls the event handler function using the pointer. The event callback
is as follows:
RvSipTransmitterMgrRegExpResolutionNeededEv()
This function will pop at any time the SIP Stack requires the resolution of a
regular expression. The RvSipTransmitterRegExpResolutionParams structure
will contain all the information needed for resolving the regular expression,
including the string to evaluate the regular expression and an array in which to
store the matches. By implementing this callback, the application is able to
provide the transmitter with the required resolution analysis.
CONFIGURATION The SIP Stack provides an easy way to use the ENUM methodology by using
the following configuration parameters found in the configuration structure,
RvSipStackCfg:
strDialPlanSufix
The algorithm to create an NAPTR query string is described in RFC 3761. In
section 2.4.4 the algorithm uses “e164.arpa” as a concatenated phrase to the
NAPTR query. In the strDialPlanSufix parameter you can specify the dial plan
suffix you need to use (in most cases, it will be “e164.arpa”).
bResolveTelUrls
If set to RV_FALSE, the SIP Stack will treat a TEL URI as any non-SIP URI. If
set to RV_TRUE, ENUM will be used for TEL URI resolution.
COMPILATION In order to enable TEL URI parsing, you must compile the SIP Stack with
RV_SIP_TEL_URI_SUPPORT. You can remove
RV_SIP_TEL_URI_SUPPORT and the SIP Stack will remove both the TEL
URI parsing support and the special treatment for those URIs.