Commit Graph

53 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 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 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 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 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
paulc 3d456a5a86 No longer compile out message performance checking, it can be fully disabled at runtime.
Fixed the display of message performance warning and made it similar to sniffer.


git-svn-id: http://voip.null.ro/svn/yate@5447 acf43c95-373e-0410-b603-e72c3f656dc1
2013-04-12 12:58:04 +00:00
paulc dad389aee0 Fixed a crash caused by removing the last handler from within a message handler.
git-svn-id: http://voip.null.ro/svn/yate@5142 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-21 12:36:31 +00:00
paulc a2970a5f6c Add the handler's name to "handlers" before calling the handler.
This reduces confusion for reentrant messages (lateroute).


git-svn-id: http://voip.null.ro/svn/yate@5113 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 08:23:50 +00:00
paulc bd4b52d949 Add :priority to track name even if priority is zero.
git-svn-id: http://voip.null.ro/svn/yate@5112 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 07:29:43 +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
paulc 471dd0d96d New YSTRING macro that creates an ad-hoc static const String to speed up comparations and conversions from literal strings.
On unsupported compilers the literal string is returned unchanged.


git-svn-id: http://voip.null.ro/svn/yate@4423 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-03 12:26:53 +00:00
paulc 0cdbe20050 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://voip.null.ro/svn/yate@3384 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 11:42:52 +00:00
paulc 7f4f0a651a Backstep when a jump is needed in the handler list since the scanning loop will move to the next handler.
Should fix some hard to explain missed handler calls.


git-svn-id: http://voip.null.ro/svn/yate@2758 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-14 13:33:02 +00:00
paulc 5227505c00 Added names to the Mutex class to ease debugging of deadlocks.
git-svn-id: http://voip.null.ro/svn/yate@2611 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-05 12:25:31 +00:00
paulc ae8b713d5d Wait for a message handler to become safe to destroy when uninstalling it.
Make MessageRelay become safe early so it can be uninstalled from its receiver.


git-svn-id: http://voip.null.ro/svn/yate@2581 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-15 10:05:25 +00:00
paulc 0cce6d2d2c Improved debugging mode messages.
git-svn-id: http://voip.null.ro/svn/yate@2579 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-14 20:06:48 +00:00
paulc b7536dbf55 Fixed String::msgUnescape to always unescape "%z" as ":" since msgEscape
always escapes the other way around.


git-svn-id: http://voip.null.ro/svn/yate@1369 acf43c95-373e-0410-b603-e72c3f656dc1
2007-06-21 12:47:56 +00:00
paulc 28cf72b0cf Message handlers are removed from dispatcher before being destroyed.
git-svn-id: http://voip.null.ro/svn/yate@1220 acf43c95-373e-0410-b603-e72c3f656dc1
2007-03-19 21:05:41 +00:00
paulc 3a1938c2c7 Updated copyright and FSF address.
git-svn-id: http://voip.null.ro/svn/yate@815 acf43c95-373e-0410-b603-e72c3f656dc1
2006-05-27 15:08:43 +00:00
paulc 27af822dd2 Added configuration parameter for excessive message dispatch time.
git-svn-id: http://voip.null.ro/svn/yate@739 acf43c95-373e-0410-b603-e72c3f656dc1
2006-04-04 15:39:54 +00:00
paulc 580ad07505 Added copy constructors for NamedList and Message
git-svn-id: http://voip.null.ro/svn/yate@696 acf43c95-373e-0410-b603-e72c3f656dc1
2006-02-21 14:56:39 +00:00
paulc f23770b79d Added a virtual destructor to please the compilers.
git-svn-id: http://voip.null.ro/svn/yate@694 acf43c95-373e-0410-b603-e72c3f656dc1
2006-02-19 01:24:03 +00:00
paulc e7e9d8a560 Avoiding a potential performance loss in unused message notifiers.
git-svn-id: http://voip.null.ro/svn/yate@678 acf43c95-373e-0410-b603-e72c3f656dc1
2006-02-02 14:15:29 +00:00
paulc 10a75ea364 Asynchronous processing of messages by using notifiers.
git-svn-id: http://voip.null.ro/svn/yate@677 acf43c95-373e-0410-b603-e72c3f656dc1
2006-02-01 22:45:43 +00:00
paulc e0ba130c08 Fixed userData to no longer hold pointers to dead objects.
git-svn-id: http://voip.null.ro/svn/yate@660 acf43c95-373e-0410-b603-e72c3f656dc1
2006-01-20 18:39:31 +00:00
paulc df033e3e87 Fixed interlocking problem in message post-hook.
Fixed transport cleanup in RTP session.


git-svn-id: http://voip.null.ro/svn/yate@627 acf43c95-373e-0410-b603-e72c3f656dc1
2005-12-30 17:45:30 +00:00
paulc ca2ef8cf29 Added common pre-answer timeout in class Channel.
Fixed bugs in disconnecting wave sources.
Added option settings for external modules.


git-svn-id: http://voip.null.ro/svn/yate@559 acf43c95-373e-0410-b603-e72c3f656dc1
2005-11-04 19:30:47 +00:00
paulc 5953dfd62c Fixed a bug in parsing message time from external modules.
Better time display in message sniffer.


git-svn-id: http://voip.null.ro/svn/yate@556 acf43c95-373e-0410-b603-e72c3f656dc1
2005-11-02 04:10:15 +00:00
paulc 009b467815 Changed escaping of message strings to always escape colon.
Proper passing of SIP dialog tags to custom handlers.


git-svn-id: http://voip.null.ro/svn/yate@511 acf43c95-373e-0410-b603-e72c3f656dc1
2005-09-13 16:11:30 +00:00
paulc bb0d8d4650 Added engine restart method, increased message warn time.
git-svn-id: http://voip.null.ro/svn/yate@465 acf43c95-373e-0410-b603-e72c3f656dc1
2005-07-29 23:32:19 +00:00
paulc 0bcd7af586 Removed old Gtk-1 and Qt clients, added hashed lists.
git-svn-id: http://voip.null.ro/svn/yate@447 acf43c95-373e-0410-b603-e72c3f656dc1
2005-07-15 20:48:06 +00:00
paulc bdb7cf1a7a Fixed DirectSound and OpenH323 modules for Windows.
git-svn-id: http://voip.null.ro/svn/yate@440 acf43c95-373e-0410-b603-e72c3f656dc1
2005-07-09 18:27:49 +00:00
paulc 426980dcdc Added counts for dispatcher handlers and messages.
git-svn-id: http://voip.null.ro/svn/yate@389 acf43c95-373e-0410-b603-e72c3f656dc1
2005-06-07 16:12:25 +00:00
paulc aa2cb0417f Updated copyright years, fixed %ll formatting.
git-svn-id: http://voip.null.ro/svn/yate@320 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-29 22:05:07 +00:00
paulc 885f3646ac *** empty log message ***
git-svn-id: http://voip.null.ro/svn/yate@308 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-24 01:08:51 +00:00
paulc 31d8311e8f *** empty log message ***
git-svn-id: http://voip.null.ro/svn/yate@306 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-23 19:33:37 +00:00
paulc 8792ca6e5e Ported bugfixes and timestamps from 0.8
git-svn-id: http://voip.null.ro/svn/yate@304 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-22 20:07:26 +00:00
paulc fc7a3abd77 no message
git-svn-id: http://voip.null.ro/svn/yate@294 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-14 03:14:20 +00:00
paulc 6b9e48dc26 no message
git-svn-id: http://voip.null.ro/svn/yate@283 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-10 21:42:49 +00:00
paulc 07c35dddb1 Added VC++6 projects and lots of porting changes
git-svn-id: http://voip.null.ro/svn/yate@272 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-02 00:49:38 +00:00
paulc bd55e02e85 Workin' hard - lots'o'changes
git-svn-id: http://voip.null.ro/svn/yate@266 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-28 22:27:26 +00:00
paulc 693903daf2 *** empty log message ***
git-svn-id: http://voip.null.ro/svn/yate@265 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-28 00:58:26 +00:00
paulc 35c262f8ed Added Channel and Driver classes, beautified source a little.
git-svn-id: http://voip.null.ro/svn/yate@263 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-20 03:11:53 +00:00
paulc f6fb8b6c0f Moved the engine away, added install-noapi
git-svn-id: http://voip.null.ro/svn/yate@260 acf43c95-373e-0410-b603-e72c3f656dc1
2005-03-18 18:16:59 +00:00
paulc 3a8e0a6406 Many stability improvments.
git-svn-id: http://voip.null.ro/svn/yate@132 acf43c95-373e-0410-b603-e72c3f656dc1
2004-12-20 04:11:29 +00:00
paulc c342cff931 Added context jumping and message parameter setting to regexroute.
Added DDebug and NDebug macros to keep down the number of #define.


git-svn-id: http://voip.null.ro/svn/yate@116 acf43c95-373e-0410-b603-e72c3f656dc1
2004-11-29 21:01:04 +00:00
paulc 083fbe1a89 Added copyright notice.
git-svn-id: http://voip.null.ro/svn/yate@114 acf43c95-373e-0410-b603-e72c3f656dc1
2004-11-29 03:56:41 +00:00