Interface for plugins to create sessions. More...
#include <AmApi.h>
Public Member Functions | |
| void | configureSession (AmSession *sess) |
| AmSessionFactory (const string &name) | |
| virtual AmSession * | onInvite (const AmSipRequest &req, const string &app_name, const map< string, string > &app_params)=0 |
| virtual AmSession * | onInvite (const AmSipRequest &req, const string &app_name, AmArg &session_params) |
| virtual AmSession * | onRefer (const AmSipRequest &req, const string &app_name, const map< string, string > &app_params) |
| virtual AmSession * | onRefer (const AmSipRequest &req, const string &app_name, AmArg &session_params) |
| virtual void | onOoDRequest (const AmSipRequest &req) |
Protected Member Functions | |
| int | configureModule (AmConfigReader &cfg) |
Interface for plugins to create sessions.
| int AmSessionFactory::configureModule | ( | AmConfigReader & | cfg | ) | [protected] |
This reads the module configuration from cfg into the modules mod_conf.
Referenced by VoiceboxFactory::onLoad(), ServiceLineFactory::onLoad(), RegistrationAgentFactory::onLoad(), PySemsFactory::onLoad(), PinAuthConferenceFactory::onLoad(), IvrFactory::onLoad(), GatewayFactory::onLoad(), EarlyAnnounceFactory::onLoad(), DtmfTesterFactory::onLoad(), ConferenceFactory::onLoad(), Click2DialFactory::onLoad(), CacheAnnounceFactory::onLoad(), AnswerMachineFactory::onLoad(), AnnRecorderFactory::onLoad(), AnnounceTransferFactory::onLoad(), AnnouncementFactory::onLoad(), AnnounceB2BFactory::onLoad(), and AnnounceAuthFactory::onLoad().
| void AmSessionFactory::configureSession | ( | AmSession * | sess | ) |
This function applys the module configuration
| AmSession * AmSessionFactory::onInvite | ( | const AmSipRequest & | req, | |
| const string & | app_name, | |||
| AmArg & | session_params | |||
| ) | [virtual] |
Creates a dialog state on new UAC request.
| session_params | parameters passed to the new session by the caller. |
Warning: This method should not make any expensive processing as it would block the server.
Reimplemented in AnnouncementFactory, AnnRecorderFactory, Click2DialFactory, DtmfTesterFactory, EarlyRecordFactory, PinAuthConferenceFactory, and SimpleConferenceFactory.
References onInvite().
| virtual AmSession* AmSessionFactory::onInvite | ( | const AmSipRequest & | req, | |
| const string & | app_name, | |||
| const map< string, string > & | app_params | |||
| ) | [pure virtual] |
Creates a dialog state on new UAS request.
Warning: This method should not make any expensive processing as it would block the server.
Implemented in EchoFactory, AnnounceB2BFactory, AnnounceTransferFactory, AnnouncementFactory, AnnRecorderFactory, Click2DialFactory, ConferenceFactory, EarlyAnnounceFactory, AnnounceAuthFactory, b2b_connectFactory, CacheAnnounceFactory, DtmfTesterFactory, EarlyRecordFactory, JukecallFactory, MyAppFactory, PinAuthConferenceFactory, ServiceLineFactory, SimpleConferenceFactory, MyAnnounceAppFactory, MyAppFactory, MyCCFactory, MyConfigurableAppFactory, MyJukeboxFactory, UrlCatcherFactory, IvrFactory, PrecodedFactory, RegistrationAgentFactory, VoiceboxFactory, and AnswerMachineFactory.
Referenced by AmSessionContainer::createSession(), and onInvite().
| void AmSessionFactory::onOoDRequest | ( | const AmSipRequest & | req | ) | [virtual] |
Method to receive any out-of-dialog request other than INVITE and REFER
Warning: This method should not make any expensive processing as it would block the thread posting the event!
References AmSession::getSessionNum(), AmConfig::OptionsTranscoderInStatsHdr, AmConfig::OptionsTranscoderOutStatsHdr, and AmSipDialog::reply_error().
| AmSession * AmSessionFactory::onRefer | ( | const AmSipRequest & | req, | |
| const string & | app_name, | |||
| const map< string, string > & | app_params | |||
| ) | [virtual] |
Creates a dialog state on new REFER with local-tag.
Warning: This method should not make any expensive processing as it would block the server.
Reimplemented in ConferenceFactory.
Referenced by AmSessionContainer::createSession(), and onRefer().
| AmSession * AmSessionFactory::onRefer | ( | const AmSipRequest & | req, | |
| const string & | app_name, | |||
| AmArg & | session_params | |||
| ) | [virtual] |
Creates a dialog state on new REFER with local-tag. Passes session_params to the new session.
Warning: This method should not make any expensive processing as it would block the server.
References onRefer().
1.7.1