AmConfig Struct Reference

holds the current configuration. More...

#include <AmConfig.h>


Static Public Member Functions

static int init ()
static int readConfiguration ()
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 Public Attributes

static string ConfigurationFile = CONFIG_FILE
static string ModConfigPath = MOD_CFG_PATH
static string SocketName = ""
static string ReplySocketName = ""
static string SerSocketName = ""
static string SendMethod = SEND_METHOD
static string SmtpServerAddress = SMTP_ADDRESS_IP
static unsigned int SmtpServerPort = SMTP_PORT
static string PlugInPath = PLUG_IN_PATH
static int DaemonMode = DEFAULT_DAEMON_MODE
static string LocalIP = ""
static string PrefixSep = PREFIX_SEPARATOR
static int RtpLowPort = RTP_LOWPORT
static int RtpHighPort = RTP_HIGHPORT
static AmSessionTimerConfig defaultSessionTimerConfig
static int MediaProcessorThreads = NUM_MEDIA_PROCESSORS


Detailed Description

holds the current configuration.

This Structure holds the current configuration.


Member Function Documentation

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::setFork ( const string &  fork  )  [static]

Setter for parameter fork, returns 0 on invalid value

int AmConfig::setLoglevel ( const string &  level  )  [static]

Setter for Loglevel, returns 0 on invalid value

int AmConfig::setMediaProcessorThreads ( const string &  th  )  [static]

Setter for parameter MediaProcessorThreads, returns 0 on invalid value

int AmConfig::setRtpHighPort ( const string &  port  )  [static]

Setter for RtpHighPort, returns 0 on invalid value

int AmConfig::setRtpLowPort ( const string &  port  )  [static]

Setter for RtpLowPort, returns 0 on invalid value

int AmConfig::setSmtpPort ( const string &  port  )  [static]

Setter for SmtpServer Port, returns 0 on invalid value

int AmConfig::setStderr ( const string &  s  )  [static]

Setter for parameter stderr, returns 0 on invalid value


Field Documentation

string AmConfig::ConfigurationFile = CONFIG_FILE [static]

Name of the main configuration file.

int AmConfig::DaemonMode = DEFAULT_DAEMON_MODE [static]

run the programm in daemon mode?

string AmConfig::LocalIP = "" [static]

local IP for SDP media advertising

int AmConfig::MediaProcessorThreads = NUM_MEDIA_PROCESSORS [static]

number of session scheduler threads

string AmConfig::ModConfigPath = MOD_CFG_PATH [static]

Path to the plug-in configuration files.

string AmConfig::PlugInPath = PLUG_IN_PATH [static]

Path where the plug-ins are.

string AmConfig::PrefixSep = PREFIX_SEPARATOR [static]

Separator character for uri application prefix (ex: voicemail+jiri@iptel.org)

string AmConfig::ReplySocketName = "" [static]

Name of our unix socket file for replies.

int AmConfig::RtpHighPort = RTP_HIGHPORT [static]

Highest local RTP port

int AmConfig::RtpLowPort = RTP_LOWPORT [static]

Lowest local RTP port

string AmConfig::SendMethod = SEND_METHOD [static]

Send method: 'fifo' or 'unix_socket'

string AmConfig::SerSocketName = "" [static]

Name of the Ser unix socket file.

string AmConfig::SmtpServerAddress = SMTP_ADDRESS_IP [static]

After server start, IP of the SMTP server.

unsigned int AmConfig::SmtpServerPort = SMTP_PORT [static]

SMTP server port.

string AmConfig::SocketName = "" [static]

Name of our unix socket file for requests.


The documentation for this struct was generated from the following files:
Generated on Thu Mar 8 00:12:46 2007 for Sems by  doxygen 1.4.7
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login