ForwardRules Class Reference

#include <ForwardRules.h>

List of all members.

Public Member Functions

 ForwardRules ()
virtual ~ForwardRules ()
OsStatus loadMappings (const UtlString configFileName, const UtlString mediaserver="", const UtlString &voicemail="", const UtlString &localhost="")
void buildDefaultRules (const char *domain, const char *hostname, const char *ipAddress, const char *fqhn, int localPort)
OsStatus getRoute (const Url &requestUri, const SipMessage &request, UtlString &RouteToString, UtlString &mappingType, bool &authRequired)

Static Public Member Functions

static void buildDefaultRules (const char *domain, const char *hostname, const char *ipAddress, const char *fqhn, int localPort, TiXmlDocument &xmlDoc)

Protected Member Functions

OsStatus parseRouteMatchContainer (const Url &requestUri, const SipMessage &request, UtlString &RouteToString, UtlString &mappingType, bool &authRequired, TiXmlNode *routesNode, TiXmlNode *previousRouteMatchNode=NULL)
OsStatus parseMethodMatchContainer (const SipMessage &request, UtlString &RouteToString, bool &authRequired, TiXmlNode *routeMatchNode, TiXmlNode *previousMethodMatchNode=NULL)
OsStatus parseFieldMatchContainer (const SipMessage &request, UtlString &RouteToString, bool &authRequired, TiXmlNode *methodMatchNode, TiXmlNode *previousFieldMatchNode=NULL)
OsStatus getRouteTo (UtlString &RouteToString, bool &authRequired, TiXmlNode *fieldMatchNode)

Protected Attributes

TiXmlDocumentmDoc
PatternsmPatterns
UtlString mVoicemail
UtlString mLocalhost
UtlString mMediaServer


Constructor & Destructor Documentation

ForwardRules (  ) 

~ForwardRules (  )  [virtual]


Member Function Documentation

OsStatus loadMappings ( const UtlString  configFileName,
const UtlString  mediaserver = "",
const UtlString voicemail = "",
const UtlString localhost = "" 
)

void buildDefaultRules ( const char *  domain,
const char *  hostname,
const char *  ipAddress,
const char *  fqhn,
int  localPort 
)

void buildDefaultRules ( const char *  domain,
const char *  hostname,
const char *  ipAddress,
const char *  fqhn,
int  localPort,
TiXmlDocument xmlDoc 
) [static]

OsStatus getRoute ( const Url requestUri,
const SipMessage request,
UtlString RouteToString,
UtlString mappingType,
bool &  authRequired 
)

OsStatus parseRouteMatchContainer ( const Url requestUri,
const SipMessage request,
UtlString RouteToString,
UtlString mappingType,
bool &  authRequired,
TiXmlNode routesNode,
TiXmlNode previousRouteMatchNode = NULL 
) [protected]

OsStatus parseMethodMatchContainer ( const SipMessage request,
UtlString RouteToString,
bool &  authRequired,
TiXmlNode routeMatchNode,
TiXmlNode previousMethodMatchNode = NULL 
) [protected]

OsStatus parseFieldMatchContainer ( const SipMessage request,
UtlString RouteToString,
bool &  authRequired,
TiXmlNode methodMatchNode,
TiXmlNode previousFieldMatchNode = NULL 
) [protected]

OsStatus getRouteTo ( UtlString RouteToString,
bool &  authRequired,
TiXmlNode fieldMatchNode 
) [protected]


Member Data Documentation

TiXmlDocument* mDoc [protected]

Patterns* mPatterns [protected]

UtlString mVoicemail [protected]

UtlString mLocalhost [protected]

UtlString mMediaServer [protected]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:50:17 build33 abuild