#include <ForwardRules.h>
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 | |
| TiXmlDocument * | mDoc |
| Patterns * | mPatterns |
| UtlString | mVoicemail |
| UtlString | mLocalhost |
| UtlString | mMediaServer |
| ForwardRules | ( | ) |
| ~ForwardRules | ( | ) | [virtual] |
| 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] |
TiXmlDocument* mDoc [protected] |
UtlString mVoicemail [protected] |
UtlString mLocalhost [protected] |
UtlString mMediaServer [protected] |