Commit Graph

224 Commits

Author SHA1 Message Date
marian 39815923a3 Apply module debug from main config file when initializing plugins at startup. This allows a module to show debug messages on first init.
git-svn-id: http://voip.null.ro/svn/yate@6574 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 06:57:11 +00:00
oana 664f85e763 Add support for read-write lock.
git-svn-id: http://voip.null.ro/svn/yate@6570 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-27 13:51:32 +00:00
marian 8a46774099 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://voip.null.ro/svn/yate@6521 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-28 10:55:08 +00:00
marian bb26b4e217 Added support to track message enqueue/dispatch time. Added support to track the time spent by a message in handler.
git-svn-id: http://voip.null.ro/svn/yate@6513 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 08:02:49 +00:00
paulc 18220252b4 Allow up to 12 bits for the node ID.
git-svn-id: http://voip.null.ro/svn/yate@6501 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-16 10:10:00 +00:00
paulc 71014c9de7 Added support for resetting the Engine's maxqueue and maxmsgrate after returning them in status.
git-svn-id: http://voip.null.ro/svn/yate@6500 acf43c95-373e-0410-b603-e72c3f656dc1
2021-06-04 13:00:07 +00:00
paulc b98b7ff642 Added own PID and if applicable supervisor's PID to the runtime parameters.
git-svn-id: http://voip.null.ro/svn/yate@6496 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-24 13:47:03 +00:00
paulc ad17f7adb7 Fixed a buffer overflow in the regexroute $(timestamp) function.
git-svn-id: http://voip.null.ro/svn/yate@6486 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-04 09:31:13 +00:00
paulc bf14cf9f27 Reload main config file after setting runtime parameters.
This allows loading modules conditionally.


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



git-svn-id: http://voip.null.ro/svn/yate@6430 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-23 13:12:56 +00:00
paulc 22ebf95683 Added support for configuring a larger number of worker threads.
git-svn-id: http://voip.null.ro/svn/yate@6411 acf43c95-373e-0410-b603-e72c3f656dc1
2020-06-26 10:29:53 +00:00
oana 1d04f8a45f Check commands pointer is valid before using it.
git-svn-id: http://voip.null.ro/svn/yate@6378 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-03 15:04:55 +00:00
paulc 5f1c43af00 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://voip.null.ro/svn/yate@6377 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-01 17:38:17 +00:00
oana 93677a25be Add global node ID information to the engine.
git-svn-id: http://voip.null.ro/svn/yate@6368 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-13 10:44:03 +00:00
oana edc09c0bcc Avoid generating more than one engine.timer message per second when usleep is interrupted by signals.
git-svn-id: http://voip.null.ro/svn/yate@6361 acf43c95-373e-0410-b603-e72c3f656dc1
2019-10-25 14:26:49 +00:00
marian 46d8b6fcb5 Don't check system time jump when plugins are reloaded.
git-svn-id: http://voip.null.ro/svn/yate@6348 acf43c95-373e-0410-b603-e72c3f656dc1
2019-03-28 13:49:22 +00:00
paulc fcf945b0bf Added option to restart engine if system time jumps around too much.
git-svn-id: http://voip.null.ro/svn/yate@6291 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-10 12:13:53 +00:00
paulc 23947f2f01 Fixed compile time bugs and warnings exposed by Visual Studio.
git-svn-id: http://voip.null.ro/svn/yate@6256 acf43c95-373e-0410-b603-e72c3f656dc1
2017-09-07 15:29:32 +00:00
paulc 277e34b576 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://voip.null.ro/svn/yate@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
paulc d57fe18d4d Added computation and congestion limit for average dequeued messages age.
git-svn-id: http://voip.null.ro/svn/yate@6217 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-15 15:28:47 +00:00
paulc d22f6568a8 Added option (default enabled) to display some engine stats when aborting.
git-svn-id: http://voip.null.ro/svn/yate@6199 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-02 11:03:48 +00:00
paulc 2c615905ef 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://voip.null.ro/svn/yate@6163 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-09 15:04:04 +00:00
paulc e043cf9378 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://voip.null.ro/svn/yate@6162 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-09 13:46:41 +00:00
paulc 9b19906f3f Added a "maxmsgrate" to the "status engine" output.
git-svn-id: http://voip.null.ro/svn/yate@6159 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-29 16:26:27 +00:00
paulc 2d20aae81a Added message queue and dispatcher stats to the "status engine" response.
git-svn-id: http://voip.null.ro/svn/yate@6158 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-29 15:10:30 +00:00
paulc 5aaef1eca7 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://voip.null.ro/svn/yate@6156 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-20 14:40:04 +00:00
paulc d05cc95e65 Support absolute directory names in -x argument and in yate.conf extrapath.
git-svn-id: http://voip.null.ro/svn/yate@6088 acf43c95-373e-0410-b603-e72c3f656dc1
2016-02-08 09:24:21 +00:00
paulc bb7da7914b 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://voip.null.ro/svn/yate@6081 acf43c95-373e-0410-b603-e72c3f656dc1
2016-01-04 12:49:52 +00:00
paulc d40803015d Added command line option to have supervisor sleep after creating PID file but before starting child.
git-svn-id: http://voip.null.ro/svn/yate@6080 acf43c95-373e-0410-b603-e72c3f656dc1
2015-12-27 11:22:55 +00:00
paulc 0d5c021aad Added a setting for the number of message workers to create at start.
git-svn-id: http://voip.null.ro/svn/yate@6060 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-11 11:09:51 +00:00
paulc b7e259cfc3 Fixed behavior of -Dx command line, was stopping too early.
git-svn-id: http://voip.null.ro/svn/yate@6031 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-07 13:32:35 +00:00
marian 3cd286e39f Make an explicit conversion to satisfy the Windows compiler.
git-svn-id: http://voip.null.ro/svn/yate@5943 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:42:47 +00:00
marian 1960b82520 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://voip.null.ro/svn/yate@5942 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:32:36 +00:00
paulc 65b5a4fe45 Made -DZ the default log timestamping, added -Dn to disable timestamps.
git-svn-id: http://voip.null.ro/svn/yate@5912 acf43c95-373e-0410-b603-e72c3f656dc1
2014-09-16 12:37:34 +00:00
paulc f4a12d2bc4 Added YIGNORE macro to silence compiler warnings about unused values.
Cleaned up a number of compiler warnings.


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


git-svn-id: http://voip.null.ro/svn/yate@5780 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-19 11:40:50 +00:00
paulc d56cecb40e 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://voip.null.ro/svn/yate@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
paulc 424feb6aad Added support for counting allocated objects for memory leaks troubleshooting.
git-svn-id: http://voip.null.ro/svn/yate@5752 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-04 16:36:23 +00:00
paulc 2c78e79121 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://voip.null.ro/svn/yate@5703 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-07 16:08:09 +00:00
paulc c9d215e1dd Handle the "control" command in engine like rmanager does.
This allows other modules to easily perform control operations.


git-svn-id: http://voip.null.ro/svn/yate@5641 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-06 11:07:39 +00:00
paulc da947b7370 Make the SVN revision accessible to engine, rmanager, SNMP.
git-svn-id: http://voip.null.ro/svn/yate@5639 acf43c95-373e-0410-b603-e72c3f656dc1
2013-09-03 16:10:18 +00:00
paulc 888654b983 No longer require =true on a line that requests to load a module.
git-svn-id: http://voip.null.ro/svn/yate@5617 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-09 12:42:58 +00:00
paulc 86ef36ca7f Separated 32 and 64 bit constructors and assignments for String.
git-svn-id: http://voip.null.ro/svn/yate@5611 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 15:42:44 +00:00
paulc 18e10bfd69 Changed license terms in each source file to reference an external file.
git-svn-id: http://voip.null.ro/svn/yate@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
paulc b62e8880ff Make sure captured events have some form of timestamp.
git-svn-id: http://voip.null.ro/svn/yate@5567 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-08 10:55:21 +00:00
paulc ac26f45ce9 Fixed comparation in new worker thread alarm level.
git-svn-id: http://voip.null.ro/svn/yate@5565 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 13:47:11 +00:00
paulc b3e87ed1a6 Send Alarm from several places instead of just Debug.
git-svn-id: http://voip.null.ro/svn/yate@5563 acf43c95-373e-0410-b603-e72c3f656dc1
2013-07-05 12:49:44 +00:00