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
oana
23327197a9
Fix documentation comments for a couple of methods.
...
git-svn-id: http://voip.null.ro/svn/yate@6551 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-08 12:05:27 +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
1b2871a212
Added template for generic simple object vector.
...
git-svn-id: http://voip.null.ro/svn/yate@6549 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-08 11:28:30 +00:00
marian
a2866f6206
Added File.listDirectory() function. Added extra optional parameter to XML.xmlText() for all lines indent length.
...
git-svn-id: http://voip.null.ro/svn/yate@6548 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-08 11:06:08 +00:00
oana
f2a4063430
Allow SIP generated messages via xsip.generate to send ISUP data.
...
git-svn-id: http://voip.null.ro/svn/yate@6547 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-03 09:23:10 +00:00
oana
ad28a9c7ca
Allow ISUP decoding or encoding of data from/to hexified string.
...
git-svn-id: http://voip.null.ro/svn/yate@6546 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-03 09:20:12 +00:00
oana
a0d085b165
Cleanup created script instances if they failed to run.
...
git-svn-id: http://voip.null.ro/svn/yate@6545 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-02 15:32:00 +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
marian
dbd1924473
Initialize global RegexConfig. Release it on plugin destruction to avoid memcheck reporting memory leak.
...
git-svn-id: http://voip.null.ro/svn/yate@6543 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-17 09:53:13 +00:00
oana
94a2b7ce80
Add support for building and running multiple instances of the same script.
...
git-svn-id: http://voip.null.ro/svn/yate@6542 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-09 10:59:28 +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