Commit Graph

15 Commits

Author SHA1 Message Date
oana 71206f078c Add support for building and running multiple instances of the same script.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6542 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-09 10:59:28 +00:00
oana 63eb336324 Add tracking for Javascript object creation and destruction.
Add command that reports how many objects are still alive that have been created at the reported code line.
Fix constructor for ConfigFile.



git-svn-id: http://yate.null.ro/svn/yate/trunk@6442 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-21 11:01:31 +00:00
paulc 166aa682f4 Added setting to track created objects per script instead of whole module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6438 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-14 13:24:46 +00:00
marian 899c7425a7 Added separate mutex to protect the scripts list and operations. Avoids locking the module if script parse is taking a long time.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6376 acf43c95-373e-0410-b603-e72c3f656dc1
2019-12-19 12:21:42 +00:00
paulc f37f408a2f Made maximum loadable JS file size configurable.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6116 acf43c95-373e-0410-b603-e72c3f656dc1
2016-05-18 13:31:47 +00:00
paulc 79dbe9f241 Added API method for checking if the Engine has finished starting up, expose it to JS.
Added separate javascript.conf section that loads scripts after the engine.start message.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6081 acf43c95-373e-0410-b603-e72c3f656dc1
2016-01-04 12:49:52 +00:00
paulc 771ee63ff3 Added support for creating scripting extensions in other modules.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5902 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-06 08:08:06 +00:00
paulc 0e603be619 Added and extra include path (defaulting to config dir) for JS scripts.
Engine runtime parameters can be used in javascript.conf for script paths.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5799 acf43c95-373e-0410-b603-e72c3f656dc1
2014-03-14 14:45:41 +00:00
paulc 6be6a2385f Enable the Eliza chat bot in rmanager in the sample Javascript config file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5777 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-12 13:02:49 +00:00
paulc b3c4c0c694 Added support for tracing Javascript execution in KCacheGrind format.
Fixed line counting for a possible keyword or identifier at end of line.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5439 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:46:21 +00:00
oana 2d65f043cb Do linking (jump resolving) for Javascript code.
Added configuration parameter to enable/disable linking.



git-svn-id: http://yate.null.ro/svn/yate/trunk@5407 acf43c95-373e-0410-b603-e72c3f656dc1
2013-02-14 14:37:20 +00:00
paulc 20b149f704 Added setting to allow DebugFail from Javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5331 acf43c95-373e-0410-b603-e72c3f656dc1
2012-11-20 16:08:25 +00:00
paulc f5e76ddb6b Changed the way callback JS functions are called.
Added a global Javascript loader.
Moved the main routing script to the [global] section.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5127 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-16 23:21:13 +00:00
paulc a242f792c5 Updated scripting code.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4921 acf43c95-373e-0410-b603-e72c3f656dc1
2012-02-17 16:19:17 +00:00
paulc 5b773e7c5a Added partial universal scripting implementation with Javascript support.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4892 acf43c95-373e-0410-b603-e72c3f656dc1
2012-02-10 14:53:55 +00:00