paulc
78d4083555
Fixed a memory leak in switch/case matching.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5158 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-27 15:16:34 +00:00
paulc
8ca7c90e8a
Fixed deep copying member functions of inline objects.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5157 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-27 14:44:05 +00:00
paulc
92efe58739
Added "message" variable in routing scope context.
...
Removed current message parameters from routing scope context.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5156 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-27 12:57:18 +00:00
paulc
ee8ca1d7d8
Added encoding and decoding for (Original) Called IN Number.
...
Added just parameter names for UID indicators.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5155 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-27 12:43:42 +00:00
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
oana
143fafe471
Bug fix: use ObjList::skipNext() instead of ObjList::next() in order to avoid segmentation fault.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5153 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-26 13:49:53 +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
933a4dfcc7
Clear the RTP session's processor only after removing the session from the thread.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5151 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-26 11:27:52 +00:00
paulc
9fd97b798a
Encode and decode L1 bearer capability H.223 + H.245 (video calls).
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5150 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-26 07:44:40 +00:00
paulc
207552e4ea
Fixed Array.push() method that was not copying objects correctly and not copying non-objects at all.
...
Added some more XDEBUG for iterators.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5149 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-25 15:41:47 +00:00
oana
1d97a1eb67
Bug fix: set media source in a thread safe way. Use new CallEndpoint API.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5148 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-25 12:57:36 +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
5c0ea47ea4
Added helper methods to check if a value is null or undefined.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5144 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-22 08:31:22 +00:00
paulc
2df0b6d33f
Added support for asynchronous execution from the script.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5143 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-21 13:26:11 +00:00
paulc
a67b9f560b
Fixed a crash caused by removing the last handler from within a message handler.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5142 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-21 12:36:31 +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
3eea280e85
Fixed line counting in /* ... */ comments.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5140 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-20 15:49:27 +00:00
paulc
8be6ed4c46
Added public method to pause a script.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5139 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-20 15:48:03 +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
2caa4e7f56
Only install global functions during code initialization if they are not installed.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5137 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-20 13:25:36 +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
0b51756bf2
Added SVN ignore for the Python build dir created during install.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5134 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-19 13:18:28 +00:00
paulc
67e06e890a
Initialize and display the proper default config file name in help output.
...
Allow -OPT=param in addition to -OPT param, simplifies writing wrapper scripts.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5133 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-19 10:59:11 +00:00
paulc
67d31320e2
Added long time missing flow.py library file.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5132 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-19 09:53:12 +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
andrei
9826917545
Detect zombie sctp sockets and reconnect them.
...
Fixed sctp stream listener logic.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5130 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-18 17:09:11 +00:00
andrei
99c6af539f
Restart transport if a m2pa link is unstabile.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5129 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-18 16:17:16 +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
808b738e60
Fixed one letter typo.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5126 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-16 23:17:27 +00:00
paulc
0e96a42e96
Fixed handling of function arguments.
...
Added separate function for calling a script function.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5125 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-16 21:03:40 +00:00
paulc
bff1af2e1f
All handlers except msgsniff should have numeric priority 1 or higher.
...
This allows the message sniffer to display the messages unaltered.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5124 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 11:36:12 +00:00
paulc
a1ec767e08
Allow setting the handler tracking name by individual external scripts.
...
This must be set before installing the handlers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5123 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 11:19:31 +00:00
paulc
ff1f72d1cb
Fixed bug in help system, was blocking specific help.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5122 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 11:15:20 +00:00
paulc
1ae6c15289
Set the call leg "direction" parameter in channel messages.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5121 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 10:52:12 +00:00
paulc
6c7cd05970
Implemented for (variable of object) that iterates over values, not keys.
...
Improved debugging when compiled with DEBUG or XDEBUG.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5120 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 10:43:48 +00:00
paulc
b9b8249d9a
Always use the full setParam replacement when doing assignment in a script.
...
Fixes the impossibility to replace an object or function with a simple type.
NamedList::setParam(const char*,const char*) does not replace an existing parameter which may be a subclass of NamedString.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5119 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 10:40:06 +00:00
paulc
63981eda80
Don't copy the "handlers" parameter from user.auth
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5118 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-14 17:58:58 +00:00
paulc
9da1a5e3db
Implemented conditional and iterative for instruction.
...
Fixed parsing of semicolons.
Improved debugging information.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5117 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-14 15:31:45 +00:00
paulc
d56df7706e
Fixed parsing of { object } subexpressions.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5116 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 15:10:35 +00:00
paulc
85a1524c79
Implemented switch instruction that can match RegExp or dialplan pattern.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5115 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 14:44:41 +00:00
paulc
26020fb6ad
Fixed documentation comments
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5114 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 14:11:37 +00:00
paulc
da4ff77c26
Add the handler's name to "handlers" before calling the handler.
...
This reduces confusion for reentrant messages (lateroute).
git-svn-id: http://yate.null.ro/svn/yate/trunk@5113 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 08:23:50 +00:00
paulc
4992e68d53
Add :priority to track name even if priority is zero.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5112 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 07:29:43 +00:00
paulc
77040518d0
Changed trackparam to be default on in regexroute.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5111 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 07:21:13 +00:00
paulc
1f4a428278
Raised default maxevents to 25.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5110 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 06:51:17 +00:00
paulc
9419303ee2
Add to tracking (if enabled) the extra regexroute handlers.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@5109 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 00:01:30 +00:00