Commit Graph

128 Commits

Author SHA1 Message Date
marian de95fc5171 Added support to create arbitrary named lists of shared vars (separate from Engine's global). Added extra functions to shared vars list. Export in javascript.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6521 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-28 10:55:08 +00:00
marian a27e7f1b9e Added support to track message enqueue/dispatch time. Added support to track the time spent by a message in handler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6513 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 08:02:49 +00:00
paulc 600610a6a3 Added support for resetting the Engine's maxqueue and maxmsgrate after returning them in status.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6500 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-04 13:00:07 +00:00
marian 75d5ecd7ea Added support to set a Regexp in message handler filter. Added missing file to previous commit.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6426 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-22 11:27:09 +00:00
paulc 940911c6ec Added support for configuring a larger number of worker threads.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6411 acf43c95-373e-0410-b603-e72c3f656dc1
2020-06-26 10:29:53 +00:00
paulc 7ac83d9218 Added support for checking if a module is loaded.
Added support for configuration conditionals on module loaded.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6399 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-15 13:50:14 +00:00
paulc 27de15bc48 Fixed compile time bugs and warnings exposed by Visual Studio.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6256 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-07 15:29:32 +00:00
paulc 81eb63826e Added computation and congestion limit for average dequeued messages age.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6217 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-15 15:28:47 +00:00
paulc 70489d5a6f Don't allow included config files to change current section, it is too risky.
Skip over some known backup or temporary files when including a directory.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6180 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-01 14:49:04 +00:00
paulc 97edac55d7 Added support for including other files or directories in configuration files.
Added support for disabling portions of a configuration file.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6178 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-01 13:11:05 +00:00
paulc 887e0cd860 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://yate.null.ro/svn/yate/trunk@6173 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-23 19:53:55 +00:00
paulc e5a8a16f1d 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://yate.null.ro/svn/yate/trunk@6163 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-09 15:04:04 +00:00
paulc fdf908337b Added setting to create more than one worker at a time.
Added setting to automatically enter congested mode over a message rate threshold.
Extended range for some configurable engine limits and made them reloadable.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6162 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-09 13:46:41 +00:00
paulc 58af812b9b Added a "maxmsgrate" to the "status engine" output.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6159 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-29 16:26:27 +00:00
paulc a77f38aaed Added message queue and dispatcher stats to the "status engine" response.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6158 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-29 15:10:30 +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
marian 6d1a1111a6 Debug output can now be hooked using a custom function. Added Debugger method used to relay preformatted strings. Added Engine method used to build a command line from current settings. Added Engine methods used to init and cleanup libyate based applications.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5942 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:32:36 +00:00
paulc 7f38064c6d Added getInt64Value to NamedList and Configuration classes.
Added getIntValue and getBoolValue to Javascript ConfigFile and ConfigSection.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5930 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-22 11:56:16 +00:00
paulc 37a72e4bc1 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://yate.null.ro/svn/yate/trunk@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
paulc 76fdb5ce75 Added support for counting allocated objects for memory leaks troubleshooting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5752 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-04 16:36:23 +00:00
paulc fabd958b61 Added and Engine congestion counter and call accept status override.
Send alarms when entering or exiting congestion state.
The Driver now refuses to route calls while engine is congested or rejecting calls.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5703 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:08:09 +00:00
paulc a8e03e577b No longer require =true on a line that requests to load a module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5617 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-09 12:42:58 +00:00
paulc cf5d0fd71a Changed license terms in each source file to reference an external file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
paulc d5a5d0f8f3 Fixed several race conditions in message post-dispatch hooks and extmodule watchers.
Engine status now reports the number of post-dispatch hooks installed.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5458 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:17:31 +00:00
andrei ef6d1f89ae Added MessageHook and MessageQueue classes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5455 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:54:55 +00:00
andrei 5c9f690da3 Added count() method for Configuration object.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5417 acf43c95-373e-0410-b603-e72c3f656dc1
2013-03-15 11:15:51 +00:00
paulc 598981ef54 Added module that creates a combined CDR of all legs of a call.
Modified cdrfile and register to be able to write combined CDR.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5382 acf43c95-373e-0410-b603-e72c3f656dc1
2013-01-25 11:45:58 +00:00
paulc 89210c61b5 Added a lockable class implementing variables shared between modules.
A static set of such variables is kept in Engine and can be initialized by yate.conf


git-svn-id: http://yate.null.ro/svn/yate/trunk@5159 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-27 17:48: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 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
oana d4c6476cd0 Do load and unload of modules on the main thread. Added the possibility of replacing themain loop of the engine.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4999 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-06 15:27:35 +00:00
oana b6aac097e1 Added support to run the client on the main thread. Run the Qt4 Client on the main thread.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4990 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 12:31:32 +00:00
paulc 25b49afb9c Added support for holding in memory and retrieving events from startup or arbitrary sources.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4887 acf43c95-373e-0410-b603-e72c3f656dc1
2012-02-10 13:59:36 +00:00
paulc ba66ef045b Added marker in Engine for runtime analyzers like callgrind to start collecting data.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4671 acf43c95-373e-0410-b603-e72c3f656dc1
2011-11-03 14:40:58 +00:00
paulc f04d08edb8 Fixed meaning of parameter: clump -> clamp.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4563 acf43c95-373e-0410-b603-e72c3f656dc1
2011-08-23 15:47:01 +00:00
marian 57bff41ad4 String to integer conversion can now check the result against allowed min/max values. Use it in sip module.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4562 acf43c95-373e-0410-b603-e72c3f656dc1
2011-08-23 15:14:28 +00:00
paulc 4bc4db8ee7 Allow Engine::loadPluginDir(), Engine::extraPath() and yate -x to load a single module file, not an entire directory.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4211 acf43c95-373e-0410-b603-e72c3f656dc1
2011-03-24 13:56:10 +00:00
paulc b94f4c4239 Moved DebugEnabler and name from Module to Plugin, made name mandatory.
Added API and command to reload configuration of a single plugin.


git-svn-id: http://yate.null.ro/svn/yate/trunk@4203 acf43c95-373e-0410-b603-e72c3f656dc1
2011-03-23 16:26:25 +00:00
andrei bef3d8f44d Added support for CPU loading notification, and engine call congestion level update, based on CPU loading.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3905 acf43c95-373e-0410-b603-e72c3f656dc1
2010-12-03 16:02:11 +00:00
paulc 91ca986d14 Added a broadcast flag to class Message so it can continue dispatching even if one of the handlers returned true.
Use the broadcast flag in the messages emitted by the engine.


git-svn-id: http://yate.null.ro/svn/yate/trunk@3384 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 11:42:52 +00:00
paulc de974962ac Added a YNOCOPY macro that declares private inaccessible assignment operator and copy constructor to prevent using the compiler generated ones.
Fixed a bug exposed by this change.


git-svn-id: http://yate.null.ro/svn/yate/trunk@3375 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 15:46:06 +00:00
paulc d95cb2fec6 Spelling cleanup of a very common error: Retrive -> Retrieve
git-svn-id: http://yate.null.ro/svn/yate/trunk@3371 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 11:25:10 +00:00
paulc dda44fe281 Made a lot of constructors explicit to prevent undesirable automatic conversions.
Fixed two undesirable automatic conversions exposed by this change.


git-svn-id: http://yate.null.ro/svn/yate/trunk@3366 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-08 15:25:05 +00:00
marian 74e1d159cd Return found configuration section when asked to check or create one.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3303 acf43c95-373e-0410-b603-e72c3f656dc1
2010-05-10 14:02:21 +00:00
paulc fe9c1c1c98 Added a ClientProxy engine run mode for clients with no local UI.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2759 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-14 15:49:20 +00:00
paulc fa955b9342 Documented order of inserting and calling message handlers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2731 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-22 12:30:47 +00:00
paulc bad4b42a73 Added engine config section so individual modules that depend on buggy
libraries are never unloaded from memory, only finalized if possible.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2722 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-18 17:44:48 +00:00
paulc d32ef480a0 Added possibility to disable unloading in modules at build time.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2720 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-18 11:54:07 +00:00
paulc 38dc83a703 Made MessageHandler::cleanup() protected.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2681 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-03 16:07:12 +00:00
paulc 2b1aeea22c Re-enabled MessageRelay::received() but documented that it is not called through polymorphism.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2582 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-15 11:19:49 +00:00