Stefan Sayer
ec95bd97ae
DSM: functions for tracking/garbage collecting avar objects
14 years ago
Stefan Sayer
45fe56d36a
dsm: make postEvent work with structs
...
based on a patch by Matthew Williams
15 years ago
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
dd467a96ef
DSM: size($arrayname, $dst) action
...
size($arrayname, $dst);
set variable $dst to size of array
(e.g. $arrayname[0], $arrayname[1] set, $dst set to 2)
15 years ago
Mathew Williams
721f6ecf73
added [] to chars not allowed in var names
15 years ago
Stefan Sayer
123de09868
fix more size_t->unsigned casting for int2str
15 years ago
Stefan Sayer
c2bbb3f709
DSM: param() function, access param named by a var
...
like #($paramname)
patch by Matthew Williams
15 years ago
Stefan Sayer
e471726afe
moved timers API into AmSession
...
app level timers can now be used easily with the AmSession functions:
setTimer(int id, unsigned timeout)
removeTimer(int id)
removeTimers()
timersSupported()
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
4155f83bec
DSM: clearArray action
16 years ago
Stefan Sayer
46d4b7d93f
DSM: sendDTMFSequence action
16 years ago
Stefan Sayer
4338e3cf7d
DSM: createSystemDSM action; DI cmd renamed
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
c2169502d1
DSM: friendlier names for conditions (aliases)
16 years ago
Stefan Sayer
7b5505f14b
DSM: support for multiple parameters in postEvent
16 years ago
Stefan Sayer
184268f89d
support for sending DTMF via RTP payload (RFC4733)
16 years ago
Stefan Sayer
6e6162df11
sets() accept arrays, json event conditions
...
o sets() function now accepts variable names in strings, e.g.
sets($param=$(my_var)is_in_one_string;
o jsonRpcRequest and jsonRpcResponse conditions
16 years ago
Stefan Sayer
b9176c56d0
- event params made writable with set() and sets(); used to return value from event processing
...
- raw SIP request processing from within DSM script (use enable_request_events/enable_reply_events)
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1926 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
e7b03e1c82
json object as DI parameter
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1924 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
a18d3cb3f6
corrected (array) to (struct), added (array) in parameters to DI command
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1919 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
997f08be38
supporting recursive arrays in DSM DI action
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1917 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
5873c90a89
fixed passing (array) in DI calls (thanks to Matthew Williams for the fix)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1913 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
59b4ce283b
(array) for DI parameters
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1891 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
d2abff9782
also accept : as var name delimiter
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1890 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
d44e3abaf9
sets action, set with replace parameters
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1889 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
22ba41b066
for outgoing calls, ringing/early/failed events.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1864 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
54453a3946
setInOutPlaylist
...
releaseOwnership function in DSMSession
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1862 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
7c3775ab05
simple star matching
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1815 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
16ea2da5a9
changed expression evaluation: set() does not evaluate expressions, eval() does
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1654 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
3ec30d9ce9
adds simple evaluation of + and - arithmetic ops
...
(slightly fixed) patch by Andreas Granig agranig at sipwise
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1651 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
6d7b4de9a5
logSelects, logParams, logAll actions
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1626 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
23dc8fdfd9
allows setting headers on outgoing B2B- B leg.
...
B2B.clearHeaders()
clear the headers used for outgoing INVITE on B leg
B2B.addHeader(string header)
add a header for outgoing INVITE on B leg
B2B.setHeaders(string headers [, replace_crlf=true|false])
set headers for outgoing INVITE on B leg
replace_crlf=true for replacing \r\n with CRLF
e.g.
B2B.setHeaders("P-One: value\r\nP-Two: anothervalue", true)
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1623 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
b715e74291
revised error handling:
...
- actions set $errno or throw exceptions
- throwOnError() throws exception if $errno set
- $strerror has details, in exception as #text
- documented
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1570 8eb893ce-cfd4-0310-b710-fb5ebe64c474
16 years ago
Stefan Sayer
2bc644353d
updated core module with exceptions instead of errno
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1561 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
e705c19600
removeTimer and removeTimers actions
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1510 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
2e58ba7d15
setVar function (indirection capable) due to messed up set() parameter semantics till set([]=...) available)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1407 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
8d8040164b
var(x=y) function
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1403 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
35e0ec0beb
clearer error message
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1366 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
2d4211cd1a
o function to play a file at the beginning of the playlist (interrupts current playing)
...
o optional option to place separator in front of the playlist
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1349 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
a822abd436
function to send reinvite to re-connect caller leg
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1347 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
c0a6522f6e
simplified dependencies: everything needed for a module is in DSMModule.h
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1340 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
e1a05e966f
substr function
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1339 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
45a58807af
DSM inc() operation
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1334 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
e23d79e3fc
DSM action to clear a variable
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1331 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
18c90ba182
functions to enable and disable DTMF detection
...
This work was kindly sponsored by Teltech Systems Inc.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1326 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
cdaa3e25d3
new core functions:
...
* getRecordLength
* getRecordDataSize
new configuration "set_param_variables" that sets parameters from P-App-Param as variables in DSM session
This work was kindly sponsored by Teltech Systems Inc.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1325 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
3e1065a504
B2BUA functions for DSM. See dsm_syntax.txt for the functions.
...
This work was kindly sponsored by Teltech Systems Inc.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1323 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago