#include <AmConfig.h>
Public Types | |
| enum | ApplicationSelector { App_RURIUSER, App_RURIPARAM, App_APPHDR, App_MAPPING, App_SPECIFIED } |
|
typedef vector< std::pair< regex_t, string > > | AppMappingVector |
Static Public Member Functions | |
| static int | init () |
| static int | readConfiguration () |
| static int | setSIPPort (const string &port) |
| static int | setSmtpPort (const string &port) |
| static int | setRtpLowPort (const string &port) |
| static int | setRtpHighPort (const string &port) |
| static int | setLoglevel (const string &level) |
| static int | setFork (const string &fork) |
| static int | setStderr (const string &s) |
| static int | setMediaProcessorThreads (const string &th) |
| static int | setDeadRtpTime (const string &drt) |
Static Public Attributes | |
| static string | ConfigurationFile |
| static string | ModConfigPath |
| static string | PlugInPath |
| static string | LoadPlugins |
| static string | ExcludePlugins |
| static string | ExcludePayloads |
| static int | DaemonMode |
| static string | LocalIP |
| static string | PublicIP |
| static string | PrefixSep |
| static int | RtpLowPort |
| static int | RtpHighPort |
| static AmSessionTimerConfig | defaultSessionTimerConfig |
| static int | MediaProcessorThreads |
| static string | LocalSIPIP |
| static int | LocalSIPPort |
| static string | OutboundProxy |
| static string | Signature |
| static bool | SingleCodecInOK |
| static vector< string > | CodecOrder |
| static string | Application |
| static ApplicationSelector | AppSelect |
| static AppMappingVector | AppMapping |
| static unsigned int | SessionLimit |
| static unsigned int | SessionLimitErrCode |
| static string | SessionLimitErrReason |
| static unsigned int | DeadRtpTime |
| static bool | IgnoreRTPXHdrs |
| static Dtmf::InbandDetectorType | DefaultDTMFDetector |
| static bool | IgnoreSIGCHLD |
| static bool | LogSessions |
This Structure holds the current configuration.
| int AmConfig::init | ( | ) | [static] |
Init function. Resolves SMTP server address.
| int AmConfig::readConfiguration | ( | ) | [static] |
Read global configuration file and insert values. Maybe overwritten by command line arguments
| int AmConfig::setSIPPort | ( | const string & | port | ) | [static] |
Setter for SIP Port, returns 0 on invalid value
| static int AmConfig::setSmtpPort | ( | const string & | port | ) | [static] |
Setter for SmtpServer Port, returns 0 on invalid value
| int AmConfig::setRtpLowPort | ( | const string & | port | ) | [static] |
Setter for RtpLowPort, returns 0 on invalid value
| int AmConfig::setRtpHighPort | ( | const string & | port | ) | [static] |
Setter for RtpHighPort, returns 0 on invalid value
| int AmConfig::setLoglevel | ( | const string & | level | ) | [static] |
Setter for Loglevel, returns 0 on invalid value
| int AmConfig::setFork | ( | const string & | fork | ) | [static] |
Setter for parameter fork, returns 0 on invalid value
| int AmConfig::setStderr | ( | const string & | s | ) | [static] |
Setter for parameter stderr, returns 0 on invalid value
| int AmConfig::setMediaProcessorThreads | ( | const string & | th | ) | [static] |
Setter for parameter MediaProcessorThreads, returns 0 on invalid value
| int AmConfig::setDeadRtpTime | ( | const string & | drt | ) | [static] |
Setter for parameter DeadRtpTime, returns 0 on invalid value
string AmConfig::ConfigurationFile [static] |
Name of the main configuration file.
string AmConfig::ModConfigPath [static] |
Path to the plug-in configuration files.
string AmConfig::PlugInPath [static] |
Path where the plug-ins are.
string AmConfig::LoadPlugins [static] |
semicolon separated list of plugins to load
string AmConfig::ExcludePlugins [static] |
semicolon separated list of plugins to exclude from loading
string AmConfig::ExcludePayloads [static] |
semicolon separated list of payloads to exclude from loading
int AmConfig::DaemonMode [static] |
run the programm in daemon mode?
string AmConfig::LocalIP [static] |
local IP for SDP media advertising
string AmConfig::PublicIP [static] |
public IP for SDP media advertising; we actually bind to local IP, but advertise public IP.
string AmConfig::PrefixSep [static] |
Separator character for uri application prefix (ex: voicemail+jiri@iptel.org)
int AmConfig::RtpLowPort [static] |
Lowest local RTP port
int AmConfig::RtpHighPort [static] |
Highest local RTP port
int AmConfig::MediaProcessorThreads [static] |
number of session scheduler threads
string AmConfig::LocalSIPIP [static] |
the interface SIP requests are sent from - needed for registrar_client
int AmConfig::LocalSIPPort [static] |
the port SIP requests are sent from - optional (default 5060)
string AmConfig::OutboundProxy [static] |
Outbound Proxy (optional, outgoing calls only)
string AmConfig::Signature [static] |
Server/User-Agent header (optional)
bool AmConfig::SingleCodecInOK [static] |
If 200 OK reply should be limited to preferred codec only
string AmConfig::Application [static] |
"application" config value
AmConfig::ApplicationSelector AmConfig::AppSelect [static] |
type of application selection (parsed from Application)
unsigned int AmConfig::DeadRtpTime [static] |
Time of no RTP after which Session is regarded as dead, 0 for no Timeout
bool AmConfig::IgnoreRTPXHdrs [static] |
Ignore RTP Extension headers?
1.5.1