Commit Graph

202 Commits

Author SHA1 Message Date
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
paulc 5a35758057 Removed a spurious warning at shutdown.
git-svn-id: http://voip.null.ro/svn/yate@5547 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-14 15:29:50 +00:00
paulc c7edcc237e 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://voip.null.ro/svn/yate@5545 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-14 13:08:30 +00:00
paulc 4e7c865011 Invert the action of -Dd command line option, favor performance by default.
git-svn-id: http://voip.null.ro/svn/yate@5541 acf43c95-373e-0410-b603-e72c3f656dc1
2013-06-13 09:27:03 +00:00
paulc d6fec3d6d8 Added support for inserting separators in log timestamps.
git-svn-id: http://voip.null.ro/svn/yate@5467 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-17 15:26:03 +00:00
paulc d23655dace 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://voip.null.ro/svn/yate@5458 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 14:17:31 +00:00
andrei c8acd6ee0a Added MessageHook and MessageQueue classes.
git-svn-id: http://voip.null.ro/svn/yate@5455 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:54:55 +00:00
paulc 7c8b2d4c38 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://voip.null.ro/svn/yate@5449 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 13:19:14 +00:00
oana 181730cc0d Reset valgrind statistics after the first initialization of the modules.
git-svn-id: http://voip.null.ro/svn/yate@5435 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:19:04 +00:00
paulc 855c963e53 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://voip.null.ro/svn/yate@5159 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-27 17:48:50 +00:00
paulc 355994e7e7 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://voip.null.ro/svn/yate@5133 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-19 10:59:11 +00:00
paulc 800bb39870 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://voip.null.ro/svn/yate@5124 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 11:36:12 +00:00
paulc 42e83cdc11 Fixed bug in help system, was blocking specific help.
git-svn-id: http://voip.null.ro/svn/yate@5122 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-15 11:15:20 +00:00
paulc 5e7a72f060 Raised default maxevents to 25.
git-svn-id: http://voip.null.ro/svn/yate@5110 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 06:51:17 +00:00
paulc 7e77fd2cfb Added possibility to track message progress through handlers.
git-svn-id: http://voip.null.ro/svn/yate@5107 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-12 23:47:01 +00:00
oana 962647b836 Do load and unload of modules on the main thread. Added the possibility of replacing themain loop of the engine.
git-svn-id: http://voip.null.ro/svn/yate@4999 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-06 15:27:35 +00:00
marian 4b92364391 Fixed Engine method call on Windows.
git-svn-id: http://voip.null.ro/svn/yate@4993 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 15:06:26 +00:00
paulc 42f96f29ae Added an alias and a variation to the events command.
git-svn-id: http://voip.null.ro/svn/yate@4992 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 13:06:46 +00:00
oana df8496ae28 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://voip.null.ro/svn/yate@4991 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 12:46:24 +00:00
oana 3d323905a0 Added support to run the client on the main thread. Run the Qt4 Client on the main thread.
git-svn-id: http://voip.null.ro/svn/yate@4990 acf43c95-373e-0410-b603-e72c3f656dc1
2012-04-04 12:31:32 +00:00
paulc d8650afa26 Skip over Mac OS X process serial number -psn_X_Y on command line.
git-svn-id: http://voip.null.ro/svn/yate@4966 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-15 17:01:01 +00:00
paulc 818d7dfae8 Add node name if missing from module.update messages.
git-svn-id: http://voip.null.ro/svn/yate@4965 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-15 16:20:51 +00:00
paulc a7198f5e6b Added support for holding in memory and retrieving events from startup or arbitrary sources.
git-svn-id: http://voip.null.ro/svn/yate@4887 acf43c95-373e-0410-b603-e72c3f656dc1
2012-02-10 13:59:36 +00:00