Commit Graph

6306 Commits

Author SHA1 Message Date
marian 4c2de15148 Added String methods used to append using printf.
Added static String methods to be used with plain C strings: starts/end check, skip string or characters in given set.
Added support to build an AutoGenObject not owning the pointer.
MatchingItem: added dump support, added matching parameters, added random matching.
2023-05-18 15:10:38 +03:00
marian 4b9310defc Added missing virtual to Socket::accept(). 2023-05-18 14:48:26 +03:00
Ioana Stanciu 75bd7e1ee6 Add base class for capture packet class.
Add base classes for capturing packets: CaptureInfo and Capture.
Allow installing filter in sockets for sending packets also.
2023-05-15 16:47:07 +03:00
marian c7e3515eed Fixed return of matching item description. 2023-03-31 13:22:08 +03:00
marian ebf8bcc9b2 Added support for multiple filters in MessageHandler.
Added javascript matching item class.
Added javascript support to set multiple filters when installing message handlers.
2023-03-27 16:07:39 +03:00
marian e53907837b Added matching item classes to be used for multiple parameter(s) matching.
Includes support to match using regular expressions and list of matching items.
Conditions may be negated.
2023-03-27 15:55:48 +03:00
marian 3555ac0631 Fixed ObjVector::resize bug: properly calculate number of elements to resize. 2023-03-23 10:41:34 +02:00
marian 3436092371 Added javascript support for callback function set when a message is enqueued by a script. Call the function after message was dispatched. 2023-03-15 16:58:21 +02:00
Ioana Stanciu cc9c0fc206 Re-written the Wireshark message sniffer module. 2023-03-10 13:57:59 +02:00
Ioana Stanciu c55039b3eb Ignore .git directory when creating a tarball.
Fix writing of current hash in file when generating a tarball.
2023-03-09 14:19:46 +02:00
Ioana Stanciu 53ef2e0492 Add forgotten dependencies to srpm-tag and rpm-tag build targets. 2023-03-07 18:33:02 +02:00
Ioana Stanciu 1333ca6680 Adapt build system and RPM build to Git. 2023-03-07 17:53:22 +02:00
Ioana Stanciu ca6bd39302 Add .gitigore for API generated files. 2023-03-07 16:08:29 +02:00
marian ac720b2209 Update number of instances in script's context.
Added support for scripts to install a 'reinit' event callback (allowed for global instances only, called on javascript module init). This will allow them to detect instance count changes.
2023-03-06 16:46:39 +02:00
marian 5ed7e84f2c Added javascript support to install message handlers running a separate context for each handled message.
Handlers can be installed from a global script or separate config section.
Added support to share objects (JsObject descendants implementing cloneForCopy() method) between scripts. Each script will obtain a copy of a shared object.
2023-03-06 15:00:41 +02:00
marian acdc469d00 Added deep copy support in Object::assignProps().
Added ExpOperVector class and JsObject support to extract stack arguments into it.
2023-03-06 13:07:02 +02:00
marian 88c7f844ba Put mysql query failure error (timeout, noconn, deadlock) when detected.
Extended counters to 64bit. Report total query queued and run duration in status.
Added configurable option to report (debug) queries running for more than a specifed duration.
2023-03-06 12:04:41 +02:00
marian 2e328ade82 Added AutoGenObject class holding and owning a GenObject pointer. Suitable to be used for temporary stack variables.
Added ObjVector resize() method: change ObjVector length, keep old data if requested.
2023-03-02 16:24:38 +02:00
marian c917a77169 Constified String::hexify() input data parameter. 2023-03-02 15:02:17 +02:00
Ioana Stanciu ca129ad5ba Import SVN ignore propgs to git. 2023-02-17 16:53:39 +02:00
marian e89fc66466 Avoid duplicate configuration load failure debug messages when handling 'cfgmerge' command.
git-svn-id: http://voip.null.ro/svn/yate@6581 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-19 12:03:04 +00:00
marian e8419f18b5 Added Configuration file directives used to include a section into another one.
git-svn-id: http://voip.null.ro/svn/yate@6580 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-19 11:54:39 +00:00
marian 467c7fb089 Fixed bug: reset number of allocated bytes when clearing a DataBlock. Check if data is already allocated when changing contents.
git-svn-id: http://voip.null.ro/svn/yate@6579 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-16 15:22:17 +00:00
marian bf023b8eb9 Fixed documentation.
git-svn-id: http://voip.null.ro/svn/yate@6578 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 10:27:15 +00:00
marian dcfe3ddf66 Added option used to extend the number of configuration max include file depth.
git-svn-id: http://voip.null.ro/svn/yate@6577 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 10:12:28 +00:00
marian b4e6c6e136 Added option used to delay failed to bind warning: may be used when some interfaces are going to be initialized after sip module startup.
git-svn-id: http://voip.null.ro/svn/yate@6576 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 08:17:06 +00:00
marian 5c88e2acf8 Added DataBlock utility methods used to insert/append hex strings. Added methods used to insert/append integers using lsb/msb direction. Added static methods used to manipulate raw data (copy/move). Added optimized sqlEscape() method variant: append data to a given string.
git-svn-id: http://voip.null.ro/svn/yate@6575 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 07:26:09 +00:00
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
marian f7df31d03d Added NamedList utility methods used to add/set a parameter from basic types. Added method used to copy parameter from another list with option to add instead of replace.
git-svn-id: http://voip.null.ro/svn/yate@6573 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 06:41:03 +00:00
marian 173af54bed Constified method input parameter.
git-svn-id: http://voip.null.ro/svn/yate@6572 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-12 11:14:59 +00:00
oana 7f84908a49 Make Socket::bind(struct sockaddr*, socklen_t , const char* , int ) call Socket::bind(struct sockaddr* , socklen_t ).
This avoids breaking re-implementations of Socket::bind(struct sockaddr* , socklen_t ) where the re-implemented methods was no longer called.



git-svn-id: http://voip.null.ro/svn/yate@6571 acf43c95-373e-0410-b603-e72c3f656dc1
2022-11-14 13:04:15 +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 44b4069218 Added older version of virtual Socket::bind() using sockaddr pointer with no iface parameters: avoid errors in other (non yate) modules re-implementing it.
git-svn-id: http://voip.null.ro/svn/yate@6569 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-17 08:23:58 +00:00
marian d730689641 Handle interface to bind on along with ip (ip%iface_name) in SocketAddr. Added socket support to bind on interface.
git-svn-id: http://voip.null.ro/svn/yate@6568 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-11 10:24:50 +00:00
marian 2b6e7b8f94 String. Added append(char) method, added optional parameter to insert(char) used to indicate how many chars to insert. Aded methods for uri (un)escape receiving the destination string as parameter.
git-svn-id: http://voip.null.ro/svn/yate@6567 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-11 10:05:03 +00:00
marian ac82b37198 Silenced compiler warning related to sprintf() usage.
git-svn-id: http://voip.null.ro/svn/yate@6566 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-11 08:13:58 +00:00
marian 06f225431e Silenced compiler warning related to strncpy() call with value returned by strlen()
git-svn-id: http://voip.null.ro/svn/yate@6565 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-05 12:02:54 +00:00
marian 2fa7a30bec Show current date/time in rmanager open/close connection output message.
git-svn-id: http://voip.null.ro/svn/yate@6564 acf43c95-373e-0410-b603-e72c3f656dc1
2022-09-13 08:26:21 +00:00
marian d43863899a Added extra parameter to config clearKey() method used to clear key(s) matching a given value.
git-svn-id: http://voip.null.ro/svn/yate@6563 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-27 08:25:05 +00:00
marian 21d6241621 Added optional extra parameter to NamedList::clearParam() used to clear paraemter(s) matching a given value. Fixed documentation.
git-svn-id: http://voip.null.ro/svn/yate@6562 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-27 08:22:54 +00:00
marian a774d99471 Silenced compiler warning.
git-svn-id: http://voip.null.ro/svn/yate@6561 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-27 06:36:36 +00:00
marian a494ca67a5 Added support for javascript Object.assign() method. Added method Object.assignProps(): copy properties using filter, may alter property names.
git-svn-id: http://voip.null.ro/svn/yate@6560 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-27 06:32:57 +00:00
marian 13c43a2552 Gracefully terminate query when calling thread is cancelled.
git-svn-id: http://voip.null.ro/svn/yate@6559 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-27 06:14:25 +00:00
marian cae572477b Fixed wrong condition in RTP wrapper for payload to be less than 127: 127 is a valid rtp payload number.
git-svn-id: http://voip.null.ro/svn/yate@6558 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-10 06:03:06 +00:00
marian 7b331686c4 Fixed bug: ignore call direction when matching dialog from Replaces header in REFER. 'to-tag' is always our local tag.
git-svn-id: http://voip.null.ro/svn/yate@6557 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-08 11:19:09 +00:00
marian 5781282333 Fixed bug: avoid returning false from configuration file load when failed to load files/directories using includesilent directive.
git-svn-id: http://voip.null.ro/svn/yate@6556 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-02 13:52:51 +00:00
marian 0a180e5fea Fixed bug: check pointer when initializing route parameters. Route parameters may be missing leading to segfault.
git-svn-id: http://voip.null.ro/svn/yate@6555 acf43c95-373e-0410-b603-e72c3f656dc1
2022-05-26 07:30:20 +00:00
oana 52368b722b Document in regexroute.conf.sample setting filter for extra handlers.
git-svn-id: http://voip.null.ro/svn/yate@6554 acf43c95-373e-0410-b603-e72c3f656dc1
2022-04-05 08:59:41 +00:00
oana 987601dd20 Add option to set a filter to extra installed handlers.
git-svn-id: http://voip.null.ro/svn/yate@6553 acf43c95-373e-0410-b603-e72c3f656dc1
2022-04-05 08:06:11 +00:00
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