DtmfTesterFactory Class Reference

Factory for announcement sessions. More...

#include <DtmfTester.h>

Inheritance diagram for DtmfTesterFactory:
AmSessionFactory AmPluginFactory

Public Member Functions

 DtmfTesterFactory (const string &_app_name)
int onLoad ()
AmSessiononInvite (const AmSipRequest &req, const string &app_name, const map< string, string > &app_params)
AmSessiononInvite (const AmSipRequest &req, const string &app_name, AmArg &session_params)

Static Public Attributes

static string AnnouncePath
static string AnnounceFile

Detailed Description

Factory for announcement sessions.


Member Function Documentation

AmSession * DtmfTesterFactory::onInvite ( const AmSipRequest req,
const string &  app_name,
const map< string, string > &  app_params 
) [virtual]

Creates a dialog state on new UAS request.

Returns:
0 if the request is not acceptable.

Warning: This method should not make any expensive processing as it would block the server.

Implements AmSessionFactory.

AmSession * DtmfTesterFactory::onInvite ( const AmSipRequest req,
const string &  app_name,
AmArg session_params 
) [virtual]

Creates a dialog state on new UAC request.

Parameters:
session_params parameters passed to the new session by the caller.
Returns:
0 if the request is not acceptable.

Warning: This method should not make any expensive processing as it would block the server.

Reimplemented from AmSessionFactory.

References AmUACAuth::enable(), and AmUACAuth::unpackCredentials().

int DtmfTesterFactory::onLoad (  )  [virtual]

Enables the plug-in to initialize whatever it needs. Ex. load the configuration.

Returns:
0 everything was ok.
1 on error.

Implements AmPluginFactory.

References AmSessionFactory::configureModule(), file_exists(), and AmConfig::ModConfigPath.


The documentation for this class was generated from the following files: