Commit Graph

1054 Commits

Author SHA1 Message Date
marian 67ca493a9c Added support for new include directive '': do not warn when file/directory fails to be included.
git-svn-id: http://voip.null.ro/svn/yate@6552 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-16 13:47:44 +00:00
marian 32d6eccf84 Fixed XPath copy: missing predicates copy. Added predicate used to select last node child.
git-svn-id: http://voip.null.ro/svn/yate@6550 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-08 11:36:39 +00:00
marian 38368b8228 Warn (single time per loaded file) if a configuration line exceeds internal buffer length.
git-svn-id: http://voip.null.ro/svn/yate@6544 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-21 13:58:26 +00:00
oana 24711be282 Implemented NamedCounter method that allows adding a specific value to the counter.
git-svn-id: http://voip.null.ro/svn/yate@6541 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-03 15:49:57 +00:00
marian 9976ba64a8 Added XPath method used to escape XPath strings.
git-svn-id: http://voip.null.ro/svn/yate@6539 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-01 10:30:09 +00:00
marian 39caf13ccb Added XPath object describing search and/or match XML element items (children, attributes, texts).
git-svn-id: http://voip.null.ro/svn/yate@6535 acf43c95-373e-0410-b603-e72c3f656dc1
2022-01-11 09:01:33 +00:00
marian 8862918e65 Added extra parameter used to set relay filter in module install relay.
git-svn-id: http://voip.null.ro/svn/yate@6531 acf43c95-373e-0410-b603-e72c3f656dc1
2021-12-16 11:37:39 +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 f2f2a779be Fixed bug: put parantheses in regexp matching full application mime body.
git-svn-id: http://voip.null.ro/svn/yate@6518 acf43c95-373e-0410-b603-e72c3f656dc1
2021-09-02 07:23:58 +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
marian 2f04202afb Added String::insert().
git-svn-id: http://voip.null.ro/svn/yate@6512 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 06:40:44 +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
marian 9512084039 Added NamedList method used to retrieve an unsigned 64bit parameter value.
git-svn-id: http://voip.null.ro/svn/yate@6487 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-14 07:12:02 +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
marian f6caa100f0 Mark 2*slin format info as valid candidate for conversion.
git-svn-id: http://voip.null.ro/svn/yate@6481 acf43c95-373e-0410-b603-e72c3f656dc1
2021-04-19 09:31:35 +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
paulc d346bd1f25 Added more operators for the config file conditionals.
git-svn-id: http://voip.null.ro/svn/yate@6474 acf43c95-373e-0410-b603-e72c3f656dc1
2021-04-01 16:15:23 +00:00
paulc 8efa8d07cd Fixed several issues exposed by the Microsoft compiler.
git-svn-id: http://voip.null.ro/svn/yate@6459 acf43c95-373e-0410-b603-e72c3f656dc1
2021-02-09 14:08:19 +00:00
oana 100d644ce6 Add methods to HashList that allow adding and removing of an object with arbitrary associated hashes.
git-svn-id: http://voip.null.ro/svn/yate@6441 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-21 10:44:33 +00:00
marian a7ccbc9803 Fixed bug: skip empty line when parsing headers inside multipart. Added more mime types to be decoded as string.
git-svn-id: http://voip.null.ro/svn/yate@6435 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-06 08:32:11 +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
oana 8bb8e83faf Add YATE library support for setting and getting the affinity of a thread.
git-svn-id: http://voip.null.ro/svn/yate@6429 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-23 15:26:34 +00:00
marian 33573bc840 Added support to set a Regexp in message handler filter.
git-svn-id: http://voip.null.ro/svn/yate@6425 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-22 11:25:41 +00:00
paulc c593990189 Made DNS resolver work with libc versions that don't define __NAMESER.
Initialize the resolver in JS DNS and return null if initialization fails.


git-svn-id: http://voip.null.ro/svn/yate@6422 acf43c95-373e-0410-b603-e72c3f656dc1
2020-08-27 09:54:46 +00:00
oana aaf34c810a Add String::toUInt64() method which parses an uint64_t from a string.
git-svn-id: http://voip.null.ro/svn/yate@6418 acf43c95-373e-0410-b603-e72c3f656dc1
2020-08-05 13:02:53 +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
marian 21b9d6a32c Added separate (global) mutex used to protect access to Channel::m_status. Removed unsafe public method used to obtain it. Added methods used to safely obtain a copy of it.
git-svn-id: http://voip.null.ro/svn/yate@6410 acf43c95-373e-0410-b603-e72c3f656dc1
2020-05-29 14:03:35 +00:00
oana 7ef83087a6 Add tracing and propagation of trace ID in CallEndpoint and Channel.
git-svn-id: http://voip.null.ro/svn/yate@6404 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:36:46 +00:00
oana 326e4941d7 Add a trace ID to objects.
Add debugging methods variants that print the trace ID.



git-svn-id: http://voip.null.ro/svn/yate@6402 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:00:37 +00:00
oana 47908cf938 Add option to stop execution of an outgoing call.
Propagate that parameter in dumb channel, tone generator and wave file.
In SIP, simulate going through the whole SIP stack before stopping execution of the call.



git-svn-id: http://voip.null.ro/svn/yate@6401 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 10:59:48 +00:00
paulc f099430479 Added support for checking if a module is loaded.
Added support for configuration conditionals on module loaded.


git-svn-id: http://voip.null.ro/svn/yate@6399 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-15 13:50:14 +00:00
paulc 1fd6d25f05 Added support for retrieving the timezone at any time, not just now.
Fixed the Javascript Date getTimezoneOffset() result.


git-svn-id: http://voip.null.ro/svn/yate@6396 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-01 07:38:14 +00:00
marian 2775f7bec8 Added String split method using a regular expression to match the delimiter.
git-svn-id: http://voip.null.ro/svn/yate@6382 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-21 14:13:44 +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
marian 88d48a9b0b Silenced antialising compiler warning related to pointer conversion.
git-svn-id: http://voip.null.ro/svn/yate@6375 acf43c95-373e-0410-b603-e72c3f656dc1
2019-12-11 06:47:59 +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
marian e7c575815e Added Time methods used to encode to and parse from string containing internet/javascript date and time.
git-svn-id: http://voip.null.ro/svn/yate@6364 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-08 11:07:12 +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
paulc b83c8ca3ae Reset the message time and handlers list when renaming call preroute -> route -> execute.
git-svn-id: http://voip.null.ro/svn/yate@6355 acf43c95-373e-0410-b603-e72c3f656dc1
2019-06-28 12:59:33 +00:00
marian b55aeef403 Constifyed String::encodeFlags() methods.
git-svn-id: http://voip.null.ro/svn/yate@6349 acf43c95-373e-0410-b603-e72c3f656dc1
2019-03-28 13:55:51 +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
marian bbde14b1f4 Fixed TokenDict arrays not ending with token and value set to 0.
git-svn-id: http://voip.null.ro/svn/yate@6342 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-18 09:46:21 +00:00
sabina 70c892c42c Implementation of encodeFlags() and decodeFlags functions.
git-svn-id: http://voip.null.ro/svn/yate@6341 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-17 15:24:55 +00:00
marian a0307d368f Added TokenDict64 structure and lookup functions.
git-svn-id: http://voip.null.ro/svn/yate@6340 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 14:57:27 +00:00
marian cc4f86d64b Added Channel parameters list to be set in all Channel messages. Update it from routing and chan.control.
git-svn-id: http://voip.null.ro/svn/yate@6339 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 09:54:04 +00:00
marian b60d9d067c Added Time methods for 32bit NTP time conversion.
git-svn-id: http://voip.null.ro/svn/yate@6338 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 09:19:22 +00:00