Commit Graph

221 Commits

Author SHA1 Message Date
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 05b643dc6f Allow up to 12 bits for the node ID.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6501 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-16 10:10:00 +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
paulc d0ce160167 Added own PID and if applicable supervisor's PID to the runtime parameters.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6496 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-24 13:47:03 +00:00
paulc 885573a423 Fixed a buffer overflow in the regexroute $(timestamp) function.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6486 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-04 09:31:13 +00:00
paulc fec32b954d Reload main config file after setting runtime parameters.
This allows loading modules conditionally.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6475 acf43c95-373e-0410-b603-e72c3f656dc1
2021-04-02 08:45:47 +00:00
oana aa7f5ce75f Add timestamp to supervisor messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6433 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-01 10:04:15 +00:00
oana 664e1391a6 Add command line argument for running YATE with a required affinity.
Add configuration for affinity of RTPGroup threads.



git-svn-id: http://yate.null.ro/svn/yate/trunk@6430 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-23 13:12:56 +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
oana 9288310de3 Check commands pointer is valid before using it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6378 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-03 15:04:55 +00:00
paulc 2de63bfa8f Added support for adding extra runtime parameters from main config file or Engine command.
For thread safety reason runtime parameters cannot be deleted or modified.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6377 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-01 17:38:17 +00:00
oana 39dc9fa9da Add global node ID information to the engine.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6368 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-13 10:44:03 +00:00
oana fa4721bea7 Avoid generating more than one engine.timer message per second when usleep is interrupted by signals.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6361 acf43c95-373e-0410-b603-e72c3f656dc1
2019-10-25 14:26:49 +00:00
marian 65b8c84c9a Don't check system time jump when plugins are reloaded.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6348 acf43c95-373e-0410-b603-e72c3f656dc1
2019-03-28 13:49:22 +00:00
paulc ecb4c6954b Added option to restart engine if system time jumps around too much.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6291 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-10 12:13:53 +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 c4c9e994f0 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://yate.null.ro/svn/yate/trunk@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +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 4e0fa17e7f Added option (default enabled) to display some engine stats when aborting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6199 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-02 11:03:48 +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 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