Commit Graph

185 Commits

Author SHA1 Message Date
oana 4030ca583e Allow using JS Message object for Engine.replaceParams() implementation.
git-svn-id: http://voip.null.ro/svn/yate@6297 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-12 12:07:25 +00:00
oana 7ced583b1f Add DNS.dscp() method to validate given DSCP values from Javascript.
git-svn-id: http://voip.null.ro/svn/yate@6281 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-17 15:57:31 +00:00
paulc 2cc4f0d77c Added support for recursively dispatching a handled message.
git-svn-id: http://voip.null.ro/svn/yate@6275 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-01 16:37:48 +00:00
oana a1867ea521 Add count() method to Javascript implementation of HashList.
git-svn-id: http://voip.null.ro/svn/yate@6269 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-29 14:52:33 +00:00
marian 93b2d89e82 Fixed bug: avoid dumping ExpFunction when JSON stringifying an object.
git-svn-id: http://voip.null.ro/svn/yate@6267 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-19 13:56:24 +00:00
paulc 018a1a65a5 Don't attempt to DNS resolve empty, null or undefined names.
Added helper functions to check if an operator is missing or empty.


git-svn-id: http://voip.null.ro/svn/yate@6266 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-18 13:03:30 +00:00
oana 8267d6863a Added support for a native implementation of a Javascript HashList.
When generating iterator for JsObjects avoid checking that were not setting duplicates in the iterator. JsObject does not allow setting duplicates.



git-svn-id: http://voip.null.ro/svn/yate@6264 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-18 12:14:44 +00:00
andrei b6a14b2377 BugFix. Clear JsContext parameters before destructor is reached.
Clear ScriptRun stack and async tasks, before destroying the script context.
Fixed JsSemaphore prototype.


git-svn-id: http://voip.null.ro/svn/yate@6252 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-02 13:48:40 +00:00
paulc 277e34b576 Renamed DebugGoOn to DebugCrit so it better matches its purpose.
Swapped order of DebugCall and DebugNote so DebugCall is less visible.
Changed default debug level to DebugNote.
Modified a few inadequate uses of DebugCrit.


git-svn-id: http://voip.null.ro/svn/yate@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
andrei d6d72562a5 Added support for Semaphore in JS.
git-svn-id: http://voip.null.ro/svn/yate@6248 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 06:20:58 +00:00
paulc d407212682 Added support for setting "debug level N+" or "debug level N-"
git-svn-id: http://voip.null.ro/svn/yate@6226 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-05 12:33:38 +00:00
oana 1cacf5c9d0 Added Message.copyParams() method to Javascript support.
git-svn-id: http://voip.null.ro/svn/yate@6219 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-22 12:37:22 +00:00
oana 281a714549 Do not attempt to build an JS XML object from another object when the expected parameter should be a string.
git-svn-id: http://voip.null.ro/svn/yate@6215 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-08 09:04:33 +00:00
oana de57f5bb99 Build JS Message objects with properly set prototypes.
git-svn-id: http://voip.null.ro/svn/yate@6214 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-08 09:03:05 +00:00
andrei a6727342d4 Fixed deadlock while destroying JsEngineWorker.
git-svn-id: http://voip.null.ro/svn/yate@6212 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-03 08:39:48 +00:00
andrei dafecd99f0 Added option to get the age of a message.
git-svn-id: http://voip.null.ro/svn/yate@6211 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-27 12:30:45 +00:00
paulc cae4dd2755 Added JS Engine method to retrieve exiting state from a script.
Moved engine.halt handler that unloads global JS scripts to priority 120.


git-svn-id: http://voip.null.ro/svn/yate@6210 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-27 10:31:07 +00:00
oana 9b19ba3018 Extend JS Message constructor to copy parameters from a given object.
Fix function that was copying properties to message to not copy objects, null or undefined.



git-svn-id: http://voip.null.ro/svn/yate@6209 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-26 15:53:15 +00:00
andrei 89b669ba53 Fixed deadlock at JS script instance destruction.
git-svn-id: http://voip.null.ro/svn/yate@6208 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-26 10:40:04 +00:00
paulc a67c8d4922 Added support for using JS method msgTime(newTime) to alter creation time of a message.
git-svn-id: http://voip.null.ro/svn/yate@6207 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-21 14:06:16 +00:00
paulc b2c0b343a5 Keep the JS global object locked while cleaning up its attributes.
This fixes a race condition crash in scripts destruction.


git-svn-id: http://voip.null.ro/svn/yate@6174 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-24 18:53:16 +00:00
paulc 3e15d042df Fixed a JS deadlock caused by uninstalling a message handler from itself (even indirectly).
This required exposing some internal methods of MessageHandler.


git-svn-id: http://voip.null.ro/svn/yate@6173 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-23 19:53:55 +00:00
paulc 6827334d19 Added methods getParam and setParam to Javascript Message object.
These allow manipulating parameters whose name clashes with a method.


git-svn-id: http://voip.null.ro/svn/yate@6170 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 15:16:19 +00:00
paulc 1fa082c0f1 Added Engine methods for retrieving uptime from Javascript.
git-svn-id: http://voip.null.ro/svn/yate@6169 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 13:28:58 +00:00
paulc 2c615905ef Added setting to automatically enter congested mode over a queue size threshold.
Added access to Engine's call accept state from Javascript and regexroute.
Optimized MessageDispatcher::messageCount() using the enqueue / dequeue counters.


git-svn-id: http://voip.null.ro/svn/yate@6163 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-09 15:04:04 +00:00
paulc 3c793da675 Fixed a rather harmless shutdown time memory leak.
git-svn-id: http://voip.null.ro/svn/yate@6147 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-07 18:20:07 +00:00
paulc ceeb2a87a6 Made maximum loadable JS file size configurable.
git-svn-id: http://voip.null.ro/svn/yate@6116 acf43c95-373e-0410-b603-e72c3f656dc1
2016-05-18 13:31:47 +00:00
marian f1ddfd1e5f Added function used to obtain XML attributes. Extended setAttribute() to allow setting multiple attributes.
git-svn-id: http://voip.null.ro/svn/yate@6091 acf43c95-373e-0410-b603-e72c3f656dc1
2016-02-15 15:06:10 +00:00
marian 9a9f3b07b7 JsXML: properly check namespace parameter pointer before using it.
git-svn-id: http://voip.null.ro/svn/yate@6090 acf43c95-373e-0410-b603-e72c3f656dc1
2016-02-15 12:44:43 +00:00
paulc d02f2087b9 Fixed a GCC 6 build error: C++11 requires a space between literal and string macro.
git-svn-id: http://voip.null.ro/svn/yate@6084 acf43c95-373e-0410-b603-e72c3f656dc1
2016-01-20 10:23:35 +00:00
paulc bb7da7914b 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://voip.null.ro/svn/yate@6081 acf43c95-373e-0410-b603-e72c3f656dc1
2016-01-04 12:49:52 +00:00
paulc 8b6aa917e5 Allow setting extra parameters in JS Channel.hangup()
git-svn-id: http://voip.null.ro/svn/yate@6068 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-24 15:38:35 +00:00
paulc 8c420d6d11 Put the disconnect reason in the proper message parameter.
git-svn-id: http://voip.null.ro/svn/yate@6065 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-17 13:31:15 +00:00
paulc c6272546c3 Added onPostExecute hook that gets called by channel scripts when call.execute returns.
git-svn-id: http://voip.null.ro/svn/yate@6063 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-12 21:29:55 +00:00
paulc 73b242e0dc Make sure a JsAssist is not created for outbound call legs.
git-svn-id: http://voip.null.ro/svn/yate@6062 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-12 21:15:26 +00:00
paulc abc755f814 Added support for specifying the mode to mkdir.
git-svn-id: http://voip.null.ro/svn/yate@6061 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-11 17:58:05 +00:00
paulc 234fb3a37f Convert binary database message results to hexadecimal strings.
git-svn-id: http://voip.null.ro/svn/yate@6058 acf43c95-373e-0410-b603-e72c3f656dc1
2015-10-29 08:33:09 +00:00
paulc b5ca487c11 Escape same control characters as ExpEvaluator::getEscape() when stringifying JSON.
git-svn-id: http://voip.null.ro/svn/yate@6049 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-30 08:42:47 +00:00
paulc d434b4ba3e Consider undefined and null as missing name or namespace for finding XML childs.
Refuse to create an XML child with an empty or null tag.
Added constants for XML put methods.


git-svn-id: http://voip.null.ro/svn/yate@6032 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-09 13:05:34 +00:00
paulc fa8a1d16ba Added static Engine.replaceParams() that replaces object properties in a ${template} string.
git-svn-id: http://voip.null.ro/svn/yate@6030 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-04 20:04:02 +00:00
paulc 6291d5b951 Added support for copy constructing a JS XML.
git-svn-id: http://voip.null.ro/svn/yate@6027 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-31 11:05:58 +00:00
paulc 5442b7545b Added a version of the JS XML constructor that takes element name and optional text.
git-svn-id: http://voip.null.ro/svn/yate@6026 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-31 08:09:15 +00:00
paulc b83f745c6b Add a JS Engine.name property so scripts can know how they were started.
git-svn-id: http://voip.null.ro/svn/yate@6024 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-27 10:58:42 +00:00
paulc 093e51fc39 Added support for JS getIntValue() min/max/clamp parameters.
git-svn-id: http://voip.null.ro/svn/yate@6023 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-27 10:56:06 +00:00
marian ca9e87c0ba Added addValue() method to ConfigFile.
git-svn-id: http://voip.null.ro/svn/yate@6022 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-25 10:18:26 +00:00
marian ae8c5cef7c Added clearSection() method to ConfigFile. Added addValue() method to ConfigSection.
git-svn-id: http://voip.null.ro/svn/yate@6021 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-25 09:37:59 +00:00
paulc 9bb6e439e1 Added prototypes to parsed JSON objects and arrays.
git-svn-id: http://voip.null.ro/svn/yate@6020 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-21 13:07:19 +00:00
paulc 1580dfbbab Added JS method to restart the Yate engine (only if allow_abort is configured).
git-svn-id: http://voip.null.ro/svn/yate@6019 acf43c95-373e-0410-b603-e72c3f656dc1
2015-08-18 16:09:40 +00:00
paulc 30d2d5af03 Refuse to JSON.stringify functions, return undefined for undefined and functions.
Completely remove from JSON object properties that are functions or undefined.


git-svn-id: http://voip.null.ro/svn/yate@5938 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-10 12:43:05 +00:00
paulc c47e08f97a Added NIST FIPS 186-2 change notice 1 Pseudo Random Function with 160 bits SHA-1.
git-svn-id: http://voip.null.ro/svn/yate@5936 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-05 17:58:39 +00:00
oana 69bf1bf2f5 Do not keep reajusting the relative path of a dinamically loaded script.
Avoids unloading and reloading of the script at YATE reinit/javascript reload even if the script didn't change.



git-svn-id: http://voip.null.ro/svn/yate@5934 acf43c95-373e-0410-b603-e72c3f656dc1
2015-01-30 13:39:52 +00:00
paulc 6f941b4282 Added getInt64Value to NamedList and Configuration classes.
Added getIntValue and getBoolValue to Javascript ConfigFile and ConfigSection.


git-svn-id: http://voip.null.ro/svn/yate@5930 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-22 11:56:16 +00:00
paulc 2659c482e0 Added engine and Javascript methods for packing and unpacking IP addresses.
git-svn-id: http://voip.null.ro/svn/yate@5929 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-18 15:11:42 +00:00
paulc 0b17897104 Preserve correct path when reloading JS scripts that were loaded on demand.
git-svn-id: http://voip.null.ro/svn/yate@5926 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-09 11:33:04 +00:00
paulc 92c50487f2 Allow retrieving a pointer to native objects in JS Message, ConfigFile and XML.
git-svn-id: http://voip.null.ro/svn/yate@5921 acf43c95-373e-0410-b603-e72c3f656dc1
2014-10-29 16:32:20 +00:00
paulc 4a817693cd Added optional parameter to XML.xmlText() to indent with spaces.
git-svn-id: http://voip.null.ro/svn/yate@5920 acf43c95-373e-0410-b603-e72c3f656dc1
2014-10-29 16:30:02 +00:00
paulc d381628777 Removed a harmless extra pair of brackets.
git-svn-id: http://voip.null.ro/svn/yate@5919 acf43c95-373e-0410-b603-e72c3f656dc1
2014-10-29 16:27:35 +00:00
oana bc1d7a15e5 Add option to dinamically load JS scripts through engine.command.
git-svn-id: http://voip.null.ro/svn/yate@5917 acf43c95-373e-0410-b603-e72c3f656dc1
2014-10-16 12:39:59 +00:00
paulc da2f9d75d8 Added DNS.resolve() and DNS.local() methods in Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5909 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-26 17:21:36 +00:00
paulc f48a24030a Fixed a pushed down row in Javascript tabelar output functions.
git-svn-id: http://voip.null.ro/svn/yate@5908 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-22 10:43:37 +00:00
paulc ae3c0cabcd Fixed rows alignment in Javascript tabelar output functions.
git-svn-id: http://voip.null.ro/svn/yate@5907 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-20 15:03:30 +00:00
paulc e442fdd17f Added JS methods to build or print a table from Array of Object or Object of Array.
git-svn-id: http://voip.null.ro/svn/yate@5904 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-06 14:38:28 +00:00
paulc b0e7f8dcab Added support for creating scripting extensions in other modules.
git-svn-id: http://voip.null.ro/svn/yate@5902 acf43c95-373e-0410-b603-e72c3f656dc1
2014-08-06 08:08:06 +00:00
paulc 6ad019ac9c Store TTL in retrieved DNS records.
Add ttl, order and preference to JS returned NAPTR and SRV records.


git-svn-id: http://voip.null.ro/svn/yate@5889 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-31 13:32:54 +00:00
paulc 12004691ca Added Message.handlers() function to return list of installed message handlers.
git-svn-id: http://voip.null.ro/svn/yate@5878 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-24 13:03:16 +00:00
paulc f8a1811b6c Use the proper JsObject constructor with prototype where applicable.
git-svn-id: http://voip.null.ro/svn/yate@5876 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:41:55 +00:00
paulc 1dc820fa44 Added DNS resolver object in Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5875 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:04:28 +00:00
paulc 583fecb7ce Fixed crash in JSON.stringify() for objects having no "__proto__".
git-svn-id: http://voip.null.ro/svn/yate@5872 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-21 15:33:46 +00:00
paulc d92a383e0f Added native JSON parser and stringifier.
git-svn-id: http://voip.null.ro/svn/yate@5869 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-14 08:06:41 +00:00
paulc 08e8bec9e3 Extract native function arguments only after recognizing the function name.
This allows falling back to the native JsObject methods.


git-svn-id: http://voip.null.ro/svn/yate@5868 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-11 16:54:28 +00:00
marian 9650a7890c Added support for (un)hexify functions: btoh and htob.
git-svn-id: http://voip.null.ro/svn/yate@5865 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-07 07:52:42 +00:00
marian 39cd37a17e Use a boolean parameter to indicate hexified data in Hasher update and hmac methods.
git-svn-id: http://voip.null.ro/svn/yate@5843 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 12:59:46 +00:00
marian 2c49317fd0 Added Hasher object exposing Engine Hasher class methods.
git-svn-id: http://voip.null.ro/svn/yate@5842 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 12:18:01 +00:00
marian e32ebe0ae2 Return null object from XML constructor if parse fails.
git-svn-id: http://voip.null.ro/svn/yate@5831 acf43c95-373e-0410-b603-e72c3f656dc1
2014-05-14 09:06:36 +00:00
paulc 6e84797148 Added objects and methods for accessing COnfiguration files from Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5811 acf43c95-373e-0410-b603-e72c3f656dc1
2014-04-01 11:27:51 +00:00
paulc faa3e6c09c Added Base64 handling methods to Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5807 acf43c95-373e-0410-b603-e72c3f656dc1
2014-03-26 10:45:01 +00:00
paulc f869586d43 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://voip.null.ro/svn/yate@5799 acf43c95-373e-0410-b603-e72c3f656dc1
2014-03-14 14:45:41 +00:00
oana 785ea24117 Bug fix: properly set prototype property on JS Array objects.
Added JsObject::setPrototype() in order to set an objects prototype from given context.
Added new JsArray constructor which set its own prototype. Replaced use of constructor which returned Array prototype with this contructor.



git-svn-id: http://voip.null.ro/svn/yate@5796 acf43c95-373e-0410-b603-e72c3f656dc1
2014-03-13 13:10:56 +00:00
paulc 5256f1c92e Added an optional 2nd argument to callTo() and callJust() to set parameters.
Made callTo() and callJust() to be callable from pretty much anywhere.
Solves bug #338.


git-svn-id: http://voip.null.ro/svn/yate@5791 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-26 14:57:57 +00:00
paulc d94456c115 Keep executing a channel script until callTo, callJust or hangup.
A different non-blocking function does not exit the script.
Fixes bug #336.


git-svn-id: http://voip.null.ro/svn/yate@5790 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-26 14:51:15 +00:00
paulc d56cecb40e Added copyright notices to sources and scripts missing them.
Updated copyright notices for 2014.
Fixed end of lines in many files.


git-svn-id: http://voip.null.ro/svn/yate@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
marian cbfcd12643 Added setText function to XML object. Added optional third argument to XML constructor used to take the xml from list parameter instead of making a copy.
git-svn-id: http://voip.null.ro/svn/yate@5712 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-10 11:55:36 +00:00
paulc bb1f9b709d Added JS static method Engine.runParams() and Message member msgTime()
git-svn-id: http://voip.null.ro/svn/yate@5688 acf43c95-373e-0410-b603-e72c3f656dc1
2013-11-05 15:50:09 +00:00
paulc c630a3651a Limit Javascript debug output to DebugTest, not DebugGoOn.
git-svn-id: http://voip.null.ro/svn/yate@5687 acf43c95-373e-0410-b603-e72c3f656dc1
2013-11-01 14:36:18 +00:00
oana 50693ae1cf Fixed compile warnings which appear when compiling with xdebug.
git-svn-id: http://voip.null.ro/svn/yate@5642 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-09 15:26:27 +00:00
paulc 0b869b4437 Check the timestamps of all files included in Javascript.
On initialization reload scripts if any included file has changed.
Reload routing script only if it has changed.


git-svn-id: http://voip.null.ro/svn/yate@5631 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-28 13:19:42 +00:00
paulc c572fbbce3 Fixed warnings - mostly conversions - exposed by Visual C++ compiler.
git-svn-id: http://voip.null.ro/svn/yate@5614 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 11:24:10 +00:00
paulc 751937b0ec More fixes related to 32 and 64 bit types usage in JS.
git-svn-id: http://voip.null.ro/svn/yate@5613 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 10:18:23 +00:00
paulc e498bdc20f Fixed 64 bit types usage in Javascript, was broken on 32 bit machines.
git-svn-id: http://voip.null.ro/svn/yate@5612 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-07 09:49:52 +00:00
paulc 18e10bfd69 Changed license terms in each source file to reference an external file.
git-svn-id: http://voip.null.ro/svn/yate@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
paulc f777b559d2 Added Javascript methods for enabling and controlling debug levels.
git-svn-id: http://voip.null.ro/svn/yate@5605 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-05 09:56:52 +00:00
paulc 49a0fea2cc Added Engine.alarm() method in Javascript.
git-svn-id: http://voip.null.ro/svn/yate@5564 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 12:50:18 +00:00
paulc af2bdbb374 Added method to set the debug name of Javascript instances.
Implemented reentrant operation mode for JS Message.dispatch()


git-svn-id: http://voip.null.ro/svn/yate@5465 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 15:18:50 +00:00
andrei cf3c4b4529 Added support for timeouts and interval in JavaScript.
git-svn-id: http://voip.null.ro/svn/yate@5457 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:00:39 +00:00
andrei 2a2ee2471d Added MessageQueue support in JavaScript.
git-svn-id: http://voip.null.ro/svn/yate@5456 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:56:00 +00:00
paulc defe99e7c7 Added static method to set or retrieve the tracker name in JS handlers.
git-svn-id: http://voip.null.ro/svn/yate@5445 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:55:51 +00:00
paulc d8759879e5 Store ExpOperations in JsObjects so the value type is preserved.
Automatically convert database results to numbers if possible.
Added faster method ExpOperation::typeOf()


git-svn-id: http://voip.null.ro/svn/yate@5444 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:54:30 +00:00
paulc e4c9ce4c9a Allow specifying a filter for Javascript message handlers.
Mask message handlers early enough to avoid trace file races at shutdown.


git-svn-id: http://voip.null.ro/svn/yate@5443 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:53:10 +00:00
paulc 521146c088 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://voip.null.ro/svn/yate@5439 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:46:21 +00:00
paulc 9922cbf866 Allow manually evaluating JS expressions in a specific context.
git-svn-id: http://voip.null.ro/svn/yate@5437 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:41:47 +00:00