Module: sems Branch: master Commit: 9470ebc19340f42d3c8d06be460bd6562f2243bd URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=9470ebc19340f42d3c8d06be460bd6562f2243bd
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Oct 22 16:35:46 2013 +0200 dsm: add 'start' condition 'start' event is had before anything else --- apps/dsm/DSMCoreModule.cpp | 3 +++ doc/dsm/dsm_syntax.txt | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/apps/dsm/DSMCoreModule.cpp b/apps/dsm/DSMCoreModule.cpp index 3360a23..f3234a7 100644 --- a/apps/dsm/DSMCoreModule.cpp +++ b/apps/dsm/DSMCoreModule.cpp @@ -225,6 +225,9 @@ DSMCondition* DSMCoreModule::getCondition(const string& from_str) { if (cmd == "startup") return new TestDSMCondition(params, DSMCondition::Startup); + if (cmd == "start") + return new TestDSMCondition(params, DSMCondition::Start); + if (cmd == "reload") return new TestDSMCondition(params, DSMCondition::Reload); diff --git a/doc/dsm/dsm_syntax.txt b/doc/dsm/dsm_syntax.txt index 8b1af37..9f7dcdf 100644 --- a/doc/dsm/dsm_syntax.txt +++ b/doc/dsm/dsm_syntax.txt @@ -327,6 +327,9 @@ Generic conditions (regardless of the type of the event): Other conditions only match on the type of event and when the expression expr in the brackets match. + start + start of a session (onStart). This event is processed before any other. + hangup bye/cancel received parameters: _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
