Stefan Sayer
a533fdcb5e
Merge branch 'dsm_lang'
...
* dsm_lang:
DSM: support variables in range, e.g. range($myvar)
DSM: size($arrayname, $dst) action
added [] to chars not allowed in var names
DSM: fix for ($bar in array) for structs
DSM: parsing of "else", if conditions without []
DSM: implement for ($x in range(2, 5))
DSM: "for (x in array)" and "for (k,v in struct)"
dsm: execution reordered (small optimization)
reindent
reindent
implementation of functions in DSM
initial support for if blocks (no else)
15 years ago
Stefan Sayer
5026ab7f50
DSM: support variables in range, e.g. range($myvar)
...
Example:
set($a=0);
set($b=-5);
for ($x in range($a, $b)) {
log(1, $x);
};
15 years ago
Stefan Sayer
d5ebf27e02
DSM: fix for ($bar in array) for structs
...
Example:
set($foo[0].a="a0");
set($foo[0].b="b0");
set($foo[1].a="a1");
set($foo[1].b="b1");
for ($bar in $foo) {
log(1, $bar);
}
15 years ago
Stefan Sayer
26db3fae33
DSM: implement for ($x in range(2, 5))
...
Development sponsored by TelTech Systems Inc.
15 years ago
Stefan Sayer
d90e76a7d3
DSM: "for (x in array)" and "for (k,v in struct)"
...
Development sponsored by TelTech Systems Inc.
15 years ago
Stefan Sayer
b12da91f64
dsm: execution reordered (small optimization)
15 years ago
Stefan Sayer
3e563d335d
reindent
15 years ago
Stefan Sayer
6a7d84bf04
fix more size_t->unsigned casting for int2str
15 years ago
Matthew Williams
be62fe1ca5
implementation of functions in DSM
15 years ago
Matthew Williams
f4b8287436
initial support for if blocks (no else)
15 years ago
Stefan Sayer
aee8585091
DSM: adds onBeforeDestroy event handler to modules
15 years ago
Stefan Sayer
7dcb7e2abb
added OpenSSL linking exception to license
16 years ago
Stefan Sayer
d9aaac69f6
DSM: support $var in jumpFSM($var)/callFSM($var)
...
support $var or @select or #param in jumpFSM/callFSM
16 years ago
Stefan Sayer
40af0d1777
DSM: add system DSMs, DSMs unrelated to calls
16 years ago
Stefan Sayer
21265b0fc3
DSM: pass DSMSession along & save a dynamic_cast
16 years ago
Stefan Sayer
1fd9c544f6
rough consistency check for DSMs after loading
...
- check for initial state
- check for existence of destination states
- check whether hangup is handled in all states
16 years ago
Stefan Sayer
ccdbae75ed
make varPrintArg usable from modules
...
varPrintArg() prints an AmArg variable into var (string) array,
useful for modules
16 years ago
Stefan Sayer
44a1021109
bugfix: initializing exception marker (could possibly lead to transitions being marked as exception transitions)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1656 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
62590de67a
small code clarity bf
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1564 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
5352e9abb7
DSM exceptions. SEMS-59.
...
actions and conditions should be able to throw exceptions. if an exceptions happens, execution of the current actions is interrupted, and special exception transitions are executed.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1554 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
ee37fc1866
implements monitoring_full_stategraph / monitoring_full_transitions : all states/transitions visited by a call are saved to dsm_stategraph AVP in monitoring record for the call (SEMS-61)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1537 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
00e272207a
basic monitoring support for DSM: dsm_diag and dsm_state contain current FSM/state
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1475 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
33fcd9eea7
- simplified and beautified modules with better looking macros:
...
DEF_TwoParAction -> DEF_ACTION_2P
CONST_TwoParAction -> CONST_ACTION_2P
-DEF_SCStrArgAction-> DEF_ACTION_1P
EXEC_ACTION_START, EXEC_ACTION_END
MATCH_CONDITION_START, MATCH_CONDITION_END
- quoting (+escaping) added to Actions' parameters
- added logVars debugging function to log all variables
- added avar AmArg array, to replace var (string) array
This work was kindly sponsored by Teltech Systems Inc.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1321 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
67c1ffed32
o 'not' operator on conditions
...
o transitions from multiple origin states
o register scripts as application
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1245 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
dfbf9816c9
o onInvite event
...
o early dialogs
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1127 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
33b27c7628
- session init function for modules (onInvite)
...
- module 'preload' function (preload_mods config parameter)
- selectable prompt sets (each from their config file)
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1113 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
a4969b3fe4
mass setting Id svn property
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1047 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
c93ea5738f
The DonkeySM: easy application development by state machine definitions
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1039 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago