Commit Graph

69 Commits

Author SHA1 Message Date
paulc 2b1a2a9fea Fixed new match after end of previous block with no spaces in between.
git-svn-id: http://voip.null.ro/svn/yate@6289 acf43c95-373e-0410-b603-e72c3f656dc1
2018-01-05 12:20:26 +00:00
paulc 8664d4bcc2 Added $(message,retval) function, retval and noop targets.
git-svn-id: http://voip.null.ro/svn/yate@6165 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-17 15:47:54 +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 7e32eba190 Added debug output target and function to return log style timestamp.
git-svn-id: http://voip.null.ro/svn/yate@6142 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-27 18:11:51 +00:00
paulc b4fba4436e Limit the result of regexroute function $(variables,list) so it doesn't crash when there is a very large number of variables.
git-svn-id: http://voip.null.ro/svn/yate@5931 acf43c95-373e-0410-b603-e72c3f656dc1
2015-01-07 17:14:32 +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 2d17c0c641 Added "status" command to regexroute.
Added internal functions to count and list global variables.
Reorganized and cleaned up the code a bit.


git-svn-id: http://voip.null.ro/svn/yate@5745 acf43c95-373e-0410-b603-e72c3f656dc1
2014-01-29 13:23:56 +00:00
marian 2ab24ed2e2 Changed im.execute relay id. Removed im.route message relay. Route chat using call.route message.
git-svn-id: http://voip.null.ro/svn/yate@5618 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-13 07:54:00 +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 d23fcafcee Added possibility to sepcify the hexa separator in regexroute.
Accelerated function name comparations in regexroute.


git-svn-id: http://voip.null.ro/svn/yate@5597 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-01 15:23:59 +00:00
paulc bd28d52b19 Log a warning if the target context of a jump or include is missing.
Added @ prefixed versions to suppress the warning if needed.


git-svn-id: http://voip.null.ro/svn/yate@5385 acf43c95-373e-0410-b603-e72c3f656dc1
2013-01-25 16:39:42 +00:00
paulc f11818cb93 Fixed several signed/unsigned formatting mismatches.
git-svn-id: http://voip.null.ro/svn/yate@5201 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-16 12:39:57 +00:00
paulc 87ff95b740 Do not set context "-" or "error" from [contexts] in regexroute, return message value instead.
This allows properly rejecting calls from preroute stage.


git-svn-id: http://voip.null.ro/svn/yate@5175 acf43c95-373e-0410-b603-e72c3f656dc1
2012-07-02 15:32:56 +00:00
paulc 6b0b7dcfb7 Changed trackparam to be default on in regexroute.
git-svn-id: http://voip.null.ro/svn/yate@5111 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 07:21:13 +00:00
paulc 66d29c8b72 Add to tracking (if enabled) the extra regexroute handlers.
git-svn-id: http://voip.null.ro/svn/yate@5109 acf43c95-373e-0410-b603-e72c3f656dc1
2012-06-13 00:01:30 +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 50d6009be2 Added logical OR operation and message information functions.
git-svn-id: http://voip.null.ro/svn/yate@5069 acf43c95-373e-0410-b603-e72c3f656dc1
2012-05-21 10:31:03 +00:00
paulc cf0d11c435 Allow returning true but not setting retValue from regexroute.
git-svn-id: http://voip.null.ro/svn/yate@4976 acf43c95-373e-0410-b603-e72c3f656dc1
2012-03-26 00:28:33 +00:00
paulc e00cce62b9 Addded capability to read parameters from main engine config file.
git-svn-id: http://voip.null.ro/svn/yate@4640 acf43c95-373e-0410-b603-e72c3f656dc1
2011-10-06 11:41:25 +00:00
paulc 4de861e598 Added a default regexp to apply where it is missing in a rule.
Greatly simplifies checking for booleans or non-empty strings.


git-svn-id: http://voip.null.ro/svn/yate@4626 acf43c95-373e-0410-b603-e72c3f656dc1
2011-09-20 12:19:58 +00:00
paulc 07132042d0 Added class for pseudo random number generation.
Replace library ::random() and ::rand() calls with shared Random method.


git-svn-id: http://voip.null.ro/svn/yate@4470 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-29 11:19:02 +00:00
paulc 1ee32baee8 Added setting to control the maximum depth of regexroute jumps and includes.
git-svn-id: http://voip.null.ro/svn/yate@4457 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-15 13:20:12 +00:00
paulc c18e7fae9a Added "strpos" function to regexroute.
git-svn-id: http://voip.null.ro/svn/yate@4456 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-15 13:12:09 +00:00
paulc 8e61c980ee Moved DebugEnabler and name from Module to Plugin, made name mandatory.
Added API and command to reload configuration of a single plugin.


git-svn-id: http://voip.null.ro/svn/yate@4203 acf43c95-373e-0410-b603-e72c3f656dc1
2011-03-23 16:26:25 +00:00
paulc 5d72d95c5d Added a special target "if" to regexroute so a logic AND can be easily constructed on a single line.
git-svn-id: http://voip.null.ro/svn/yate@4099 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-05 09:59:27 +00:00
paulc d41deef904 Added a hexadecimal conversion function in regexroute.
git-svn-id: http://voip.null.ro/svn/yate@4098 acf43c95-373e-0410-b603-e72c3f656dc1
2011-02-04 16:50:27 +00:00
paulc 6e7460ed4c Support the ${param$defvalue} syntax in parameter matching similar to parameter expansions.
Original patch by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3387 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 14:15:44 +00:00
paulc 3878b24178 Fixed a leftover comment.
git-svn-id: http://voip.null.ro/svn/yate@3383 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 10:50:24 +00:00
paulc 6404b73e70 Improved regexroute by allowing multiple extra handlers with different priorities and target contexts.
A match parameter can be specified for such an extra handler.
Original patch (that changed config syntax) by Allan Sandfeld Jensen.


git-svn-id: http://voip.null.ro/svn/yate@3382 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-16 10:46:22 +00:00
paulc 3319fb7dfb Destroy regexroute handlers before locking the mutex to avoid deadlock. Handlers are protected internally.
Initialize regexroute variables before installing new handlers.


git-svn-id: http://voip.null.ro/svn/yate@3002 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-04 16:11:48 +00:00
paulc 0589439edf Added regexroute function to retrieve Engine runtime parameters.
Better error checking before assuming a regexroute variable is requested.


git-svn-id: http://voip.null.ro/svn/yate@2953 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-18 13:20:52 +00:00
paulc 6a2f995663 Properly handle binary operators if one or both operands are empty strings.
git-svn-id: http://voip.null.ro/svn/yate@2952 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-18 12:56:56 +00:00
paulc 60cf47186b Detect and report malformed function calls that caused a forever loop.
git-svn-id: http://voip.null.ro/svn/yate@2841 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-15 14:18:23 +00:00
paulc 492bf3ac57 Added new setting "prerouteall" to bypass context and caller check.
Documented the other global settings in section [priorities].


git-svn-id: http://voip.null.ro/svn/yate@2793 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-14 16:27:46 +00:00
paulc 6b95f4810f Added $(threadname) function to help in tracing and debugging.
git-svn-id: http://voip.null.ro/svn/yate@2639 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-20 14:33:45 +00:00
paulc 692c726abd Added mutex names to most Yate modules.
git-svn-id: http://voip.null.ro/svn/yate@2613 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-05 14:06:39 +00:00
paulc 311b866b0f Added new special target "dispatch" to dispatch a new message synchronously.
Reentrance is now possible and detectable by the $(dispatching) function.


git-svn-id: http://voip.null.ro/svn/yate@2605 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-30 10:30:51 +00:00
paulc ed09472688 Replace captured regular expressions only after breaking the line at semicolons.
Fixes parsing bug when captured expression contains a semicolon.


git-svn-id: http://voip.null.ro/svn/yate@2572 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-10 11:56:25 +00:00
paulc 191995a019 Added regexroute functions '$' and 'chr'.
git-svn-id: http://voip.null.ro/svn/yate@2536 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-24 16:00:33 +00:00
paulc 3b9b063351 Added node name (for clustering) and use it in heartbeat and regexroute.
git-svn-id: http://voip.null.ro/svn/yate@1651 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-19 11:19:52 +00:00
paulc f670fcd6ec Fixed zero-padding of negative math operation results.
git-svn-id: http://voip.null.ro/svn/yate@1465 acf43c95-373e-0410-b603-e72c3f656dc1
2007-10-29 17:53:22 +00:00
paulc 34074b277f Added action on non-matching regexp capability.
git-svn-id: http://voip.null.ro/svn/yate@1388 acf43c95-373e-0410-b603-e72c3f656dc1
2007-07-09 19:20:17 +00:00
paulc b4350bddd5 Use TelEngine::destruct(obj) or GenObject::destruct() wherever applicable.
git-svn-id: http://voip.null.ro/svn/yate@1325 acf43c95-373e-0410-b603-e72c3f656dc1
2007-05-15 15:40:50 +00:00
paulc 5a1be97e8f Added new features: matching by function, message renaming, new message.
git-svn-id: http://voip.null.ro/svn/yate@1306 acf43c95-373e-0410-b603-e72c3f656dc1
2007-05-09 22:47:18 +00:00
paulc 65cb88d817 Added transcoding information function.
git-svn-id: http://voip.null.ro/svn/yate@1239 acf43c95-373e-0410-b603-e72c3f656dc1
2007-03-28 22:12:21 +00:00
paulc aacaeffab0 Added arithmetical comparation and engine runid functions.
git-svn-id: http://voip.null.ro/svn/yate@1153 acf43c95-373e-0410-b603-e72c3f656dc1
2007-01-02 08:20:48 +00:00
paulc 1252925558 Added global variables and more functions including list rotation.
git-svn-id: http://voip.null.ro/svn/yate@913 acf43c95-373e-0410-b603-e72c3f656dc1
2006-06-29 15:53:25 +00:00
paulc 9ab4fa2e47 Fixed bug in handling of malformed parameter replacement.
git-svn-id: http://voip.null.ro/svn/yate@911 acf43c95-373e-0410-b603-e72c3f656dc1
2006-06-29 10:38:55 +00:00
paulc a99c369748 Added function that generates the ';' character.
git-svn-id: http://voip.null.ro/svn/yate@856 acf43c95-373e-0410-b603-e72c3f656dc1
2006-06-11 10:33:18 +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