Commit Graph

21 Commits

Author SHA1 Message Date
paulc e57c6dc740 Deep copy inline objects and arrays when placing them in a context.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5154 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-26 16:40:38 +00:00
paulc 5bbbe0ead9 Fixed the call context creation, was double wrapping the scope and this objects.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5152 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-26 13:31:30 +00:00
paulc 87ca03bec0 Added method Channel.answered() to check if the call leg was answered.
Allow the onDisconnected() function to override the default reroute behavior.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5147 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-22 14:42:41 +00:00
paulc 788ed299f7 Fixed parsing of { objects } as expressions.
Fixed parsing of "var" declarations.
Fixed indexing and fields of expressions.
Small improvement to speed up the simplification of large code.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5146 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-22 14:06:16 +00:00
paulc 52c2e0a004 Implemented pseudo-linear execution flow for channel routing.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5145 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-22 09:38:51 +00:00
paulc 9bffbe6d90 Took call.preroute out of the main code flow.
Allow call.ringing and call.answered handlers to stop the message.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5141 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-20 15:54:43 +00:00
paulc 128acd4367 Linked the call.preroute, call.route and chan.disconnected to Channel.message.
Added some run time reporting in DEBUG compile mode.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5138 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-20 14:02:18 +00:00
paulc da0444345d Fixed undefining message parameters.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5136 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-19 19:28:30 +00:00
paulc 80bc17ebe7 Added support for non-JS NamedList in JsObject that is overriden in JsMessage.
Separate method is used to store the key names for iterating over unsafe lists.
Implemented handling of Yate messages and their parameters in module.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5135 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-19 18:55:45 +00:00
paulc a5a434f6cb Keep the prototype as an internal __proto__ property.
Exclude properties starting with two underlines from iterators.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5131 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-18 17:17:43 +00:00
paulc c446eb8d2e Changed the way native objects' constructors are called.
Added proper cleanup in module.
Added script unload hook onUnload() that just needs be defined.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5128 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-18 13:52:21 +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 bf57830c7f Added possibility to track message progress through handlers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5107 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-12 23:47:01 +00:00
paulc 64c9808103 Fixed object assignment to object fields.
Added dump_r and print_r methods of Engine to aid in debugging.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5078 acf43c95-373e-0410-b603-e72c3f656dc1
2012-05-30 08:32:47 +00:00
paulc 97c2a7e6bb Moved helper functions to static methods of JsObject so code can be reused.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5063 acf43c95-373e-0410-b603-e72c3f656dc1
2012-05-15 14:43:15 +00:00
paulc 1eec7eb43b Moved some Js objects implementation in another file.
Renamed Engine.Debug and Engine.Output to lower case to avoid confusion with constants.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5035 acf43c95-373e-0410-b603-e72c3f656dc1
2012-05-02 15:11:48 +00:00
paulc 6a19d73e58 Fixed a compile conversion warning.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4955 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-05 17:14:16 +00:00
paulc 49e1f5586d Moved declaration of some of the JS methods in the proper static initializer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4954 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-05 09:53:31 +00:00
paulc ed193a3432 Got rid of the useless ScriptEvaluator class, made instead some ExpEvaluator methods public.
Fixed parsing of function declarations.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4933 acf43c95-373e-0410-b603-e72c3f656dc1
2012-02-20 15:46:19 +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