#include <EmergencyNotify.h>

Its job is to generate a notification when an emergency number is dialled.
Public Member Functions | |
| virtual | ~EmergencyNotify () |
| destructor | |
| virtual AuthResult | authorizeAndModify (const UtlString &id, const Url &requestUri, RouteState &routeState, const UtlString &method, AuthResult priorResult, SipMessage &request, bool bSpiralingRequest, UtlString &reason) |
| Called for any request - generates a notification when an emergency number is dialled. | |
| virtual void | readConfig (OsConfigDb &configDb) |
| Read (or re-read) the authorization rules. | |
Protected Member Functions | |
| bool | getMatchedRule (const Url &requestUri, UtlString &rNameStr, UtlString &rDescriptionStr) const |
Private Member Functions | |
| EmergencyNotify (const UtlString &instanceName) | |
| Constructor - private so that only the factory can call it. | |
Private Attributes | |
| OsRWMutex | mRulesLock |
| EmergencyRulesUrlMapping * | mpEmergencyRules |
Friends | |
| class | EmergencyRulesTest |
| AuthPlugin * | getAuthPlugin (const UtlString &name) |
| Factory used by PluginHooks to dynamically link the plugin instance. | |
| ~EmergencyNotify | ( | ) | [virtual] |
destructor
| EmergencyNotify | ( | const UtlString & | instanceName | ) | [private] |
Constructor - private so that only the factory can call it.
constructor
| instanceName | the configured name for this plugin instance |
| AuthPlugin::AuthResult authorizeAndModify | ( | const UtlString & | id, | |
| const Url & | requestUri, | |||
| RouteState & | routeState, | |||
| const UtlString & | method, | |||
| AuthResult | priorResult, | |||
| SipMessage & | request, | |||
| bool | bSpiralingRequest, | |||
| UtlString & | reason | |||
| ) | [virtual] |
Called for any request - generates a notification when an emergency number is dialled.
| id | The authenticated identity of the request originator, if any (the null string if not). This is in the form of a SIP uri identity value as used in the credentials database (user) without the scheme or any parameters. |
| requestUri | parsed target Uri |
| routeState | the state for this request. |
| method | the request method |
| priorResult | results from earlier plugins. |
| request | see AuthPlugin regarding modifying |
| reason | rejection reason |
Implements AuthPlugin.
| void readConfig | ( | OsConfigDb & | configDb | ) | [virtual] |
Read (or re-read) the authorization rules.
| configDb | a subhash of the individual configuration parameters for this instance of this plugin. |
Implements AuthPlugin.
| bool getMatchedRule | ( | const Url & | requestUri, | |
| UtlString & | rNameStr, | |||
| UtlString & | rDescriptionStr | |||
| ) | const [protected] |
| requestUri | target to check |
| rNameStr | name of the rule that matched |
| rDescriptionStr | description of the rule that matched |
friend class EmergencyRulesTest [friend] |
| AuthPlugin* getAuthPlugin | ( | const UtlString & | name | ) | [friend] |
Factory used by PluginHooks to dynamically link the plugin instance.
OsRWMutex mRulesLock [private] |
EmergencyRulesUrlMapping* mpEmergencyRules [private] |