Commit Graph

202 Commits

Author SHA1 Message Date
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 5af40e1419 Added command line option to set supervisor's sanity points pool.
This allows controlling how long a child can hang before being killed.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6156 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-20 14:40:04 +00:00
paulc 3ec80e12bb Support absolute directory names in -x argument and in yate.conf extrapath.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6088 acf43c95-373e-0410-b603-e72c3f656dc1
2016-02-08 09:24:21 +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 d7fbffc6b5 Added command line option to have supervisor sleep after creating PID file but before starting child.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6080 acf43c95-373e-0410-b603-e72c3f656dc1
2015-12-27 11:22:55 +00:00
paulc d4767d0c9e Added a setting for the number of message workers to create at start.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6060 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-11 11:09:51 +00:00
paulc e1b0914d05 Fixed behavior of -Dx command line, was stopping too early.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6031 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-07 13:32:35 +00:00
marian 702cf6fd7a Make an explicit conversion to satisfy the Windows compiler.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5943 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:42:47 +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 9d5ead567d Made -DZ the default log timestamping, added -Dn to disable timestamps.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5912 acf43c95-373e-0410-b603-e72c3f656dc1
2014-09-16 12:37:34 +00:00
paulc 08fe54e27a Added YIGNORE macro to silence compiler warnings about unused values.
Cleaned up a number of compiler warnings.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5888 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-31 12:13:52 +00:00
paulc 63bd81f41e Force a counter switch when initializing a plugin so its threads inherit the proper counter.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5786 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-24 13:40:55 +00:00
paulc ed9f8d7707 Added separate object counter for worker threads.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5784 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-24 12:46:39 +00:00
paulc 11a07cc613 Added object counter for main engine thread.
Fixed counter allocation reentrancy problem.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5780 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-19 11:40:50 +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 aeb005c54e Handle the "control" command in engine like rmanager does.
This allows other modules to easily perform control operations.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5641 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-06 11:07:39 +00:00
paulc f7b7c4ef91 Make the SVN revision accessible to engine, rmanager, SNMP.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5639 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-03 16:10:18 +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 c371a7037c Separated 32 and 64 bit constructors and assignments for String.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5611 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 15:42:44 +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 7a41d92af8 Make sure captured events have some form of timestamp.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5567 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-08 10:55:21 +00:00
paulc 6053283c1d Fixed comparation in new worker thread alarm level.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5565 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 13:47:11 +00:00
paulc 863247ff31 Send Alarm from several places instead of just Debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5563 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 12:49:44 +00:00
paulc b65b5a40e2 Removed a spurious warning at shutdown.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5547 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-14 15:29:50 +00:00
paulc 2cf95d0cf8 Return -1 to the Mutex or Semaphore count if they are not counted (started without -Dd).
Don't include them in Engine status if not counted.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5545 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-14 13:08:30 +00:00
paulc 347829548c Invert the action of -Dd command line option, favor performance by default.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5541 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-13 09:27:03 +00:00
paulc b992373d2d Added support for inserting separators in log timestamps.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5467 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-17 15:26:03 +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
paulc 3b49b78ecb Added a shared static list of Atom strings and an YATOM macro.
This speeds up signifficantly the Yate RTTI on compilers that HAVE_BLOCK_RETURN.
Made the String comparison operator inline to shave off a few cycles.
Fast handle the comparison in identity case.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5449 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:19:14 +00:00
oana aa37371c12 Reset valgrind statistics after the first initialization of the modules.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5435 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:19:04 +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 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 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 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 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 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
marian 82513bee25 Fixed Engine method call on Windows.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4993 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 15:06:26 +00:00
paulc 2f44d0c9ac Added an alias and a variation to the events command.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4992 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 13:06:46 +00:00
oana 5fe9e0dd4f Detect Mac OS X user path using Mac OS X Foundation API. Modified the build system to build and link Objective-C code.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4991 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 12:46:24 +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 2c9656adf5 Skip over Mac OS X process serial number -psn_X_Y on command line.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4966 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-15 17:01:01 +00:00
paulc 73a11b49e1 Add node name if missing from module.update messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4965 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-15 16:20:51 +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