<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This pull request is intended to introduce a new, straightforward module that can efficiently stream output to files while also handling changes based on a specific interval. The module contains only one function that streams a chunk of text to the current output file handle associated with the given file index.
It's not 100% completed but the basic features are there. Any reviews and of course naming of the module, much appreciated.
---
How the module works:
- Set parameter `base_folder` to define where you want your logs to be saved.
- Set `base_filename` (up to 10) to define the names of your files. Each is associated with an index according to the order you defined it. First `base_filename`'s index is 0, second's index is 1 and so on. This is appended with a new timestamp when `interval_seconds` are passed.
- Set `interval_seconds` to define how much time before the file is closed and a new one is opened. Right now shared for all files.
- Set `extension` to define what should be the extension of files. Right now shared for all files.
Use the provided function `file_out` to write any text (including pvs) to a specific file you want.
---
**Example:**
Define parameters such as:
```
# kamailio.cfg
...
loadmodule "file_out.so"
modparam("file_out", "base_folder", "/tmp/kamailio/file_out/")
modparam("file_out", "base_filename", "accounting")
modparam("file_out", "base_filename", "missed_calls")
modparam("file_out","interval_seconds", 600)
modparam("file_out","extension", ".txt")
...
request_route {
...
file_out("0", "Writing to accounting.txt file $rm from $fu (IP:$si:$sp)");
file_out("1", "Writing to missed_calls.txt file $rm from $fu (IP:$si:$sp)");
...
}
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3741
-- Commit Summary --
* file_out: Add new module
* file_out: Add docs
-- File Changes --
A src/modules/file_out/Makefile (8)
A src/modules/file_out/doc/Makefile (4)
A src/modules/file_out/doc/file_out.xml (39)
A src/modules/file_out/doc/file_out_admin.xml (191)
A src/modules/file_out/file_out.c (380)
A src/modules/file_out/types.c (88)
A src/modules/file_out/types.h (25)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3741.patchhttps://github.com/kamailio/kamailio/pull/3741.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3741
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3741(a)github.com>
Module: kamailio
Branch: master
Commit: 4c144ac1ad40008b5bd9396aa18d7630145b4c4c
URL: https://github.com/kamailio/kamailio/commit/4c144ac1ad40008b5bd9396aa18d763…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2024-02-01T19:22:53Z
file_out: small doc adaptions
---
Modified: src/modules/file_out/doc/file_out_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4c144ac1ad40008b5bd9396aa18d763…
Patch: https://github.com/kamailio/kamailio/commit/4c144ac1ad40008b5bd9396aa18d763…
---
diff --git a/src/modules/file_out/doc/file_out_admin.xml b/src/modules/file_out/doc/file_out_admin.xml
index ed6b18268d0..a701156ccba 100644
--- a/src/modules/file_out/doc/file_out_admin.xml
+++ b/src/modules/file_out/doc/file_out_admin.xml
@@ -17,15 +17,15 @@
<section>
<title>Overview</title>
<para>
- This is a simple module to support fast streaming output to file name
- and handle that changes on an interval. It implements only one function
- that streams a chunk of text to the current output file handle.
+ This is a small module to support fast streaming output to files
+ and process this changes depending on an interval. It implements only one
+ function that streams a chunk of text to the current output file handle.
</para>
<para>
The module can be used to write logs for up to 10 different log files.
Each log file can be configured to have a different name and extension.
- String can contain pseudo-variables. The module will replace the
- pseudo-variables with the actual values. The module will also rotate
+ The processed string can contain pseudo-variables. The module will replace
+ the pseudo-variables with the actual values. The module will also rotate
the log files at a specified interval. The interval is specified in seconds.
</para>
</section>
Module: kamailio
Branch: master
Commit: dd5c9a5204eb946e731550a0ee7f3046c7065515
URL: https://github.com/kamailio/kamailio/commit/dd5c9a5204eb946e731550a0ee7f304…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: GitHub <noreply(a)github.com>
Date: 2024-02-01T18:15:17+01:00
file_out: Module to log custom strings to files (GH #3741)
* add new module to log custom strings to files (GH #3741)
* support for multiple files and also file balancing
* smaller refactorings will be done afterwards (use string in function for names with internal matching, make worker sleep also configurable
* a round of tests has been done, but it will be certainly tested more in the next days
---
Added: src/modules/file_out/Makefile
Added: src/modules/file_out/doc/Makefile
Added: src/modules/file_out/doc/file_out.xml
Added: src/modules/file_out/doc/file_out_admin.xml
Added: src/modules/file_out/file_out.c
Added: src/modules/file_out/types.c
Added: src/modules/file_out/types.h
---
Diff: https://github.com/kamailio/kamailio/commit/dd5c9a5204eb946e731550a0ee7f304…
Patch: https://github.com/kamailio/kamailio/commit/dd5c9a5204eb946e731550a0ee7f304…
Hello,
I propose to aim freezing the development for 5.8.x series at the end of
the 1st of February 2024 (Thursday).
New features that one wants to get in this release series have to be
pushed to git repository or pull requests made for them. Afterwards
usually follows a 4-6 weeks of testing till the first release 5.8.0.
Unfreezing will happen earlier, after the first weeks of testing when
the 5.8 branch will be created.
Cheers,
Daniel
--
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, February 20-22, 2024 -- asipto.com
Kamailio World Conference, April 18-19, 2024, Berlin -- kamailioworld.com
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [X] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ X] Related to issue #3738 (replace XXXX with an open issue number)
#### Description
5.7.4 has OpenSSL fixes for tls and outbound but missed out the db modules—the most common users of libssl
This PR updates db_mysql, db_unixodbc, db_postgres to init libssl in a thread to handle more configurations (tls + db module)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3739
-- Commit Summary --
* geoip: docs - removed trailing spaces
* geoip2: docs - removed trailing spaces
* group: docs - removed trailing spaces
* gzcompress: docs - removed trailing spaces
* h350: docs - removed trailing spaces
* htable: docs - removed trailing spaces
* http_async_client: docs - removed trailing spaces
* imc: docs - removed trailing spaces
* ims_auth: docs - removed trailing spaces
* ims_charging: docs - removed trailing spaces
* ims_diameter_server: docs - removed trailing spaces
* ims_icscf: docs - removed trailing spaces
* ims_isc: docs - removed trailing spaces
* ims_ocs: docs - removed trailing spaces
* ims_qos: docs - removed trailing spaces
* ims_registrar_pcscf: docs - removed trailing spaces
* ims_registrar_scscf: docs - removed trailing spaces
* ims_usrloc_pcscf: docs - removed trailing spaces
* ims_usrloc_scscf: docs - removed trailing spaces
* ipops: docs - removed trailing spaces
* jansson: docs - removed trailing spaces
* janssonrpcc: docs - removed trailing spaces
* json: docs - removed trailing spaces
* jsonrpcc: docs - removed trailing spaces
* kafka: docs - removed trailing spaces
* kazoo: docs - removed trailing spaces
* keepalive: docs - removed trailing spaces
* kex: docs - removed trailing spaces
* lcr: docs - removed trailing spaces
* ldap: docs - removed trailing spaces
* log_custom: docs - removed trailing spaces
* log_systemd: docs - removed trailing spaces
* lost: docs - removed trailing spaces
* lrkproxy: docs - removed trailing spaces
* mangler: docs - removed trailing spaces
* matrix: docs - removed trailing spaces
* maxfwd: docs - removed trailing spaces
* memcached: docs - removed trailing spaces
* misc_radius: docs - removed trailing spaces
* misctest: docs - removed trailing spaces
* mqtt: docs - removed trailing spaces
* mqueue: docs - removed trailing spaces
* msilo: docs - removed trailing spaces
* msrp: docs - removed trailing spaces
* mtree: docs - removed trailing spaces
* nat_traversal: docs - removed trailing spaces
* nathelper: docs - removed trailing spaces
* ndb_cassandra: docs - removed trailing spaces
* ndb_mongodb: docs - removed trailing spaces
* ndb_redis: docs - removed trailing spaces
* nosip: docs - removed trailing spaces
* nsq: docs - removed trailing spaces
* osp: docs - removed trailing spaces
* outbound: docs - removed trailing spaces
* p_usrloc: docs - removed trailing spaces
* path: docs - removed trailing spaces
* pdb: docs - removed trailing spaces
* pdt: docs - removed trailing spaces
* peering: docs - removed trailing spaces
* permissions: docs - removed trailing spaces
* pike: docs - removed trailing spaces
* pipelimit: docs - removed trailing spaces
* prefix_route: docs - removed trailing spaces
* presence: docs - removed trailing spaces
* presence_conference: docs - removed trailing spaces
* presence_dialoginfo: docs - removed trailing spaces
* presence_mwi: docs - removed trailing spaces
* presence_profile: docs - removed trailing spaces
* presence_reginfo: docs - removed trailing spaces
* presence_xml: docs - removed trailing spaces
* print: docs - removed trailing spaces
* print_lib: docs - removed trailing spaces
* pua: docs - removed trailing spaces
* pua_bla: docs - removed trailing spaces
* pua_dialoginfo: docs - removed trailing spaces
* pua_json: docs - removed trailing spaces
* pua_reginfo: docs - removed trailing spaces
* pua_usrloc: docs - removed trailing spaces
* pua_xmpp: docs - removed trailing spaces
* pv: docs - removed trailing spaces
* pv_headers: docs - removed trailing spaces
* qos: docs - removed trailing spaces
* rabbitmq: docs - removed trailing spaces
* ratelimit: docs - removed trailing spaces
* regex: docs - removed trailing spaces
* registrar: docs - removed trailing spaces
* rls: docs - removed trailing spaces
* rr: docs - removed trailing spaces
* rtimer: docs - removed trailing spaces
* rtjson: docs - removed trailing spaces
* rtp_media_server: docs - removed trailing spaces
* rtpengine: docs - removed trailing spaces
* rtpproxy: docs - removed trailing spaces
* sanity: docs - removed trailing spaces
* sctp: docs - removed trailing spaces
* sdpops: docs - removed trailing spaces
* seas: docs - removed trailing spaces
* secfilter: docs - removed trailing spaces
* sipcapture: docs - removed trailing spaces
* sipt: docs - removed trailing spaces
* siptrace: docs - removed trailing spaces
* siputils: docs - removed trailing spaces
* sl: docs - removed trailing spaces
* sms: docs - removed trailing spaces
* smsops: docs - removed trailing spaces
* snmpstats: docs - removed trailing spaces
* sqlops: docs - removed trailing spaces
* sst: docs - removed trailing spaces
* statistics: docs - removed trailing spaces
* statsd: docs - removed trailing spaces
* stirshaken: docs - removed trailing spaces
* stun: docs - removed trailing spaces
* tcpops: docs - removed trailing spaces
* textops: docs - removed trailing spaces
* textopsx: docs - removed trailing spaces
* tls: docs - removed trailing spaces
* tm: docs - removed trailing spaces
* tmrec: docs - removed trailing spaces
* tmx: docs - removed trailing spaces
* topos: docs - removed trailing spaces
* tsilo: docs - removed trailing spaces
* uac: docs - removed trailing spaces
* uac_redirect: docs - removed trailing spaces
* uid_auth_db: docs - removed trailing spaces
* uid_avp_db: docs - removed trailing spaces
* uid_domain: docs - removed trailing spaces
* uid_gflags: docs - removed trailing spaces
* uid_uri_db: docs - removed trailing spaces
* uri_db: docs - removed trailing spaces
* userblocklist: docs - removed trailing spaces
* usrloc: docs - removed trailing spaces
* utils: docs - removed trailing spaces
* uuid: docs - removed trailing spaces
* websocket: docs - removed trailing spaces
* xcap_client: docs - removed trailing spaces
* xcap_server: docs - removed trailing spaces
* xhttp: docs - removed trailing spaces
* xhttp_pi: docs - removed trailing spaces
* xhttp_prom: docs - removed trailing spaces
* xhttp_rpc: docs - removed trailing spaces
* xlog: docs - removed trailing spaces
* xmlops: docs - removed trailing spaces
* xmpp: docs - removed trailing spaces
* xprint: docs - removed trailing spaces
* pua_dialoginfo: safety check for request pointer
* core: fix compilation for older kernels
* core: fix indentation on tcp_main.c
* core: copy the value between quotes for #!defexps
* pkg: version set to 5.7.3 for rpms and alpine specs
* pkg: deb specs updated for v5.7.3
* Makefile.defs: version set to 5.7.3
* ChangeLog: content updated for v5.7.3
* pkg/docker: set branch 5.7 and refresh [skip ci]
* github: refresh alpine workflow [skip ci]
* core: resolve - cast after pointer operations for RES_AR
* core/mem: tlsf - cast to char* for pointer operations
* core: resolve - variables initialisation
* app_python3: reformat exports structures
* app_python3: use module name prefix for exports structure
* app_python3s: reformat exports structures
* app_python3s: use module name prefix for exports structure
* app_lua: reformat exports structures
* app_lua: use module name prefix for exports structure
* app_jsdt: use module name prefix for exports structure
* app_ruby: use module name prefix for exports structure
* textops: do not print module name in log messages
* avpops: do not print module name in log messages
* avp: do not print module name in log messages
* dialog: do not print module name in log messages
* dialog: use literal module name for stats group
* http_async_client: use literal module name for stats group
* imc: use literal module name for stats group
* ims_auth: use literal module name for stats group
* ims_icscf: use literal module name for stats group
* ims_registrar_scscf: use literal module name for stats group
* ims_usrloc_pcscf: use literal module name for stats group
* msilo: use literal module name for stats group
* nat_traversal: use literal module name for stats group
* p_usrloc: use literal module name for stats group
* registrar: use literal module name for stats group
* sipcapture: use literal module name for stats group
* siptrace: use literal module name for stats group
* sst: use literal module name for stats group
* tmx: use literal module name for stats group
* tsilo: use literal module name for stats group
* usrloc: use literal module name for stats group
* websocket: use literal module name for stats group
* Makefile.groups: tlsa in packaging group ktls if KTLS_INCLUDE_TLSA=yes
* pkg/kamailio/deb: include tlsa in tls package [skip ci]
* Makefile.groups: fix ktls when KTLS_INCLUDE_TLSA is not set
* tls: rework init mode 1 to set PTHREAD_PROCESS_SHARED
* tls: init early the local lock for memory
* core: parse privacy recompute lenght of rest to parse
* pv: remove extra len increment for some uri transformations
* pkg/kamailio/deb: override lintian error on stretch [skip ci]
* tls: OpenSSL 3.x thread-local, init libssl in thread or PROC_SIPINIT
* tls: fix compilation with OpenSSL <= 1.1.1
* tls: OpenSSL 1.1.1 thread-local, init libssl in thread
* tls: thread-local, revert 1a9b0b6361 as double-layer locking is redundant
* tls: OpenSSL 3.x/1.1.1 thread-local, clean-up dead code and preprocessor blocks
* outbound: OpenSSL 3.x thread-local, init libssl in thread
* outbound: OpenSSL 1.1.1 thread-local, init libssl in thread
* outbound: build, fix missing argument name
* tls: historical code comment on repeating SSL_CTX per worker
* tls: remove thread-enablement on EVP_RAND_CTX
* outbound: update to OpenSSL 3 API
* tls_wolfssl: update to v5.6.6-stable
* tls_wolfssl: mask outer make DESTDIR=XX if building internal submodule
* dialog: don't send the BYE if dialog is in deleted state (#3714)
* core: set proto on fixing forward actions
* dialog: prevent duplicate of leg1 attributes in json for dmq
* uac: fix socket length settings
* core: xavp - info long when skipping serializing a field
* dialog: check first the size
* tm: check get_t() result for consistency
* registrar: check returned branch pointer
* core: check if conversion could not be done
* app_python3: check allocated pointer
* core: srjson - init vars and check scanned values
* pv: typo in transformation log message
* pv: removed unnecessary condition
* tm: make lookup event_route[tm:local-response] only once
* tmx: rework cleaning up on init failure
* statsd: use bool type for local variable to match return of function
* core: fixed haproxy protocol parser
* dialog: fixed saving dialogs on shutdown that are already loaded at startup when using db_mode 3
* htable: read rpc number value as long
* http_async_client: exit mod_init if tm is not loaded
* core: keep listen socket even if advertise address does not resolve
* tls: set parameter name for tls_h_mod_randctx()
* tls_wolfssl: clean-up—using wolfSSL native naming for functions / structs
* pkg: version set to 5.7.4 for rpms and alpine specs
* pkg: deb specs updated for v5.7.4
* Makefile.defs: version set to 5.7.4
* ChangeLog: content updated for v5.7.4
* xlog: add kemi xlog_facility function
* tls_wolfssl: clean-up OpenSSL compatibility
* tls_wolfssl: use shared WOLFSSL_CTX
* tls_wolfssl: refactor custom BIO
* tls_wolfssl: clean-up; remove OpenSSL-isms
* tls_wolfssl: clean-up; continue to remove OpenSSL-isms
* tls_wolfssl: allow building with debian libwolfssl35
* tls_wolfssl: fix ring buffer write
* tls_wolfssl: clang-format
* tls_wolfssl: fix possible uninitialised variable
* tls_wolfssl: un-break jammy using libwolfssl32
* core: backport OpenSSL thread-local fixes
* db_mysql: backport OpenSSL thread-local fixes
* db_postgres: backport OpenSSL thread-local fixes
* db_unixodbc: backport OpenSSL thread-local fixes
-- File Changes --
M .github/workflows/alpine.yml (46)
M .github/workflows/main.yml (4)
M .gitmodules (1)
M ChangeLog (18373)
M README (2)
M etc/kamailio.cfg (8)
M etc/sip-router.cfg (16)
M misc/external/wolfssl/wolfssl (2)
M misc/fuzz/fuzz_parse_msg.c (73)
M misc/fuzz/fuzz_uri.c (18)
M misc/tools/pike_top/pike_top.c (370)
M misc/tools/protoshoot/protoshoot.c (240)
A misc/tools/route_graph/README (16)
M misc/tools/route_graph/route_graph.py (345)
M pkg/docker (2)
M pkg/kamailio/alpine/APKBUILD (6)
M pkg/kamailio/deb/bionic/changelog (36)
M pkg/kamailio/deb/bionic/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/bionic/rules (4)
M pkg/kamailio/deb/bookworm/changelog (36)
M pkg/kamailio/deb/bookworm/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/bookworm/rules (4)
M pkg/kamailio/deb/bullseye/changelog (36)
M pkg/kamailio/deb/bullseye/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/bullseye/rules (4)
M pkg/kamailio/deb/buster/changelog (36)
M pkg/kamailio/deb/buster/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/buster/rules (4)
M pkg/kamailio/deb/debian/backports/xenial (3)
M pkg/kamailio/deb/debian/changelog (36)
M pkg/kamailio/deb/debian/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/debian/rules (4)
M pkg/kamailio/deb/focal/changelog (36)
M pkg/kamailio/deb/focal/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/focal/rules (4)
M pkg/kamailio/deb/jammy/changelog (36)
M pkg/kamailio/deb/jammy/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/jammy/rules (4)
M pkg/kamailio/deb/jessie/changelog (36)
M pkg/kamailio/deb/jessie/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/jessie/rules (4)
M pkg/kamailio/deb/precise/changelog (36)
M pkg/kamailio/deb/precise/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/precise/rules (4)
M pkg/kamailio/deb/sid/changelog (36)
M pkg/kamailio/deb/sid/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/sid/rules (4)
M pkg/kamailio/deb/stretch/changelog (36)
M pkg/kamailio/deb/stretch/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/stretch/rules (4)
M pkg/kamailio/deb/trusty/changelog (36)
M pkg/kamailio/deb/trusty/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/trusty/rules (4)
M pkg/kamailio/deb/wheezy/changelog (36)
M pkg/kamailio/deb/wheezy/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/wheezy/rules (4)
M pkg/kamailio/deb/xenial/changelog (36)
M pkg/kamailio/deb/xenial/kamailio-tls-modules.lintian-overrides (2)
M pkg/kamailio/deb/xenial/rules (4)
D pkg/kamailio/obs/README (16)
A pkg/kamailio/obs/README.md (35)
A pkg/kamailio/obs/kamailio-8-x86_64.cfg (19)
A pkg/kamailio/obs/kamailio-9-x86_64.cfg (19)
M pkg/kamailio/obs/kamailio.spec (4)
A pkg/kamailio/scripts/create-src-rpm.sh (37)
A pkg/kamailio/scripts/git-archive-all.sh (24)
M src/Makefile (8)
M src/Makefile.defs (6)
M src/Makefile.groups (14)
M src/core/action.c (1737)
M src/core/action.h (21)
M src/core/async_task.c (183)
M src/core/async_task.h (6)
M src/core/atomic/atomic_alpha.h (381)
M src/core/atomic/atomic_arm.h (335)
M src/core/atomic/atomic_common.h (29)
M src/core/atomic/atomic_mips2.h (388)
M src/core/atomic/atomic_native.h (10)
M src/core/atomic/atomic_ppc.h (308)
M src/core/atomic/atomic_sparc.h (61)
M src/core/atomic/atomic_sparc64.h (336)
M src/core/atomic/atomic_unknown.h (273)
M src/core/atomic/atomic_x86.h (390)
M src/core/atomic_ops.c (49)
M src/core/atomic_ops.h (44)
M src/core/atomic_ops_init.h (2)
M src/core/basex.c (551)
M src/core/basex.h (713)
M src/core/bit_count.c (2)
M src/core/bit_count.h (8)
M src/core/bit_scan.c (16)
M src/core/bit_scan.h (263)
M src/core/bit_test.h (57)
M src/core/cfg.lex (10)
M src/core/cfg.y (19)
M src/core/cfg/cfg.c (197)
M src/core/cfg/cfg.h (74)
M src/core/cfg/cfg_ctx.c (1116)
M src/core/cfg/cfg_ctx.h (112)
M src/core/cfg/cfg_script.c (288)
M src/core/cfg/cfg_script.h (32)
M src/core/cfg/cfg_select.c (202)
M src/core/cfg/cfg_select.h (10)
M src/core/cfg/cfg_struct.c (674)
M src/core/cfg/cfg_struct.h (318)
M src/core/cfg_core.c (457)
M src/core/cfg_core.h (53)
M src/core/cfg_parser.c (0)
M src/core/cfg_parser.h (0)
M src/core/char_msg_val.h (0)
M src/core/clist.h (0)
M src/core/comp_defs.h (0)
M src/core/compiler_opt.h (0)
M src/core/config.h (0)
M src/core/core_cmd.c (0)
M src/core/core_cmd.h (0)
M src/core/core_stats.h (0)
M src/core/counters.c (0)
M src/core/counters.h (0)
M src/core/crc.c (0)
M src/core/crc.h (0)
M src/core/crypto/md5.c (0)
M src/core/crypto/md5.h (0)
M src/core/crypto/md5utils.c (0)
M src/core/crypto/md5utils.h (0)
M src/core/crypto/rijndael.c (0)
M src/core/crypto/rijndael.h (0)
M src/core/crypto/sha256.c (0)
M src/core/crypto/sha256.h (0)
M src/core/crypto/shautils.c (0)
M src/core/daemonize.c (0)
M src/core/daemonize.h (0)
M src/core/data_lump.c (0)
M src/core/data_lump.h (0)
M src/core/data_lump_rpl.c (0)
M src/core/data_lump_rpl.h (0)
M src/core/dns_cache.c (0)
M src/core/dns_cache.h (0)
M src/core/dns_func.c (0)
M src/core/dns_func.h (0)
M src/core/dns_wrappers.h (0)
M src/core/dprint.c (0)
M src/core/dprint.h (0)
M src/core/dset.c (0)
M src/core/dset.h (0)
M src/core/dst_blocklist.c (0)
M src/core/dst_blocklist.h (0)
M src/core/endianness.c (0)
M src/core/endianness.h (0)
M src/core/error.c (0)
M src/core/error.h (0)
M src/core/events.c (0)
M src/core/events.h (0)
M src/core/fastlock.h (0)
M src/core/fix_lumps.h (0)
M src/core/flags.c (0)
M src/core/flags.h (0)
M src/core/fmsg.c (0)
M src/core/fmsg.h (0)
M src/core/forward.c (0)
M src/core/forward.h (0)
M src/core/futexlock.h (0)
M src/core/globals.h (0)
M src/core/hash_func.c (0)
M src/core/hash_func.h (0)
M src/core/hashes.h (0)
M src/core/id.c (0)
M src/core/id.h (0)
M src/core/io_wait.c (0)
M src/core/io_wait.h (0)
M src/core/ip_addr.c (0)
M src/core/ip_addr.h (0)
M src/core/kemi.c (0)
M src/core/kemi.h (0)
M src/core/kemiexec.c (0)
M src/core/list.h (0)
M src/core/local_timer.c (0)
M src/core/local_timer.h (0)
M src/core/lock_alloc.h (0)
M src/core/lock_ops.c (0)
M src/core/lock_ops.h (0)
M src/core/lock_ops_init.h (0)
M src/core/locking.c (0)
M src/core/locking.h (0)
M src/core/lump_struct.h (0)
M src/core/lvalue.c (0)
M src/core/lvalue.h (0)
M src/core/mem/dl_malloc.c (0)
M src/core/mem/dl_malloc.h (0)
M src/core/mem/f_malloc.c (0)
M src/core/mem/f_malloc.h (0)
M src/core/mem/ll_malloc.c (0)
M src/core/mem/ll_malloc.h (0)
M src/core/mem/mem.h (0)
M src/core/mem/memapi.h (0)
M src/core/mem/memdbg.h (0)
M src/core/mem/meminfo.h (0)
M src/core/mem/memtest.c (0)
M src/core/mem/pkg.c (0)
M src/core/mem/pkg.h (0)
M src/core/mem/q_malloc.c (0)
M src/core/mem/q_malloc.h (0)
M src/core/mem/sf_malloc.c (0)
M src/core/mem/sf_malloc.h (0)
M src/core/mem/shm.c (0)
M src/core/mem/shm.h (0)
M src/core/mem/shm_mem.h (0)
M src/core/mem/src_loc.h (0)
M src/core/mem/tlsf_malloc.c (0)
M src/core/mem/tlsf_malloc.h (0)
M src/core/mem/tlsf_malloc_bits.h (0)
M src/core/mod_fix.c (0)
M src/core/mod_fix.h (0)
M src/core/modparam.c (0)
M src/core/modparam.h (0)
M src/core/msg_translator.c (0)
M src/core/msg_translator.h (0)
M src/core/name_alias.h (0)
M src/core/nonsip_hooks.c (0)
M src/core/nonsip_hooks.h (0)
M src/core/onsend.c (0)
M src/core/onsend.h (0)
M src/core/parser/contact/contact.c (0)
M src/core/parser/contact/contact.h (0)
M src/core/parser/contact/parse_contact.c (0)
M src/core/parser/contact/parse_contact.h (0)
M src/core/parser/digest/digest.c (0)
M src/core/parser/digest/digest.h (0)
M src/core/parser/digest/digest_keys.h (0)
M src/core/parser/digest/digest_parser.c (0)
M src/core/parser/digest/digest_parser.h (0)
M src/core/parser/digest/param_parser.c (0)
M src/core/parser/digest/param_parser.h (0)
M src/core/parser/hf.c (0)
M src/core/parser/hf.h (0)
M src/core/parser/keys.h (0)
M src/core/parser/msg_parser.c (0)
M src/core/parser/msg_parser.h (0)
M src/core/parser/parse_addr_spec.c (0)
M src/core/parser/parse_addr_spec.h (0)
M src/core/parser/parse_allow.c (0)
M src/core/parser/parse_allow.h (0)
M src/core/parser/parse_body.c (0)
M src/core/parser/parse_body.h (0)
M src/core/parser/parse_content.c (0)
M src/core/parser/parse_content.h (0)
M src/core/parser/parse_cseq.c (0)
M src/core/parser/parse_cseq.h (0)
M src/core/parser/parse_date.c (0)
M src/core/parser/parse_date.h (0)
M src/core/parser/parse_def.h (0)
M src/core/parser/parse_disposition.c (0)
M src/core/parser/parse_disposition.h (0)
M src/core/parser/parse_diversion.c (0)
M src/core/parser/parse_diversion.h (0)
M src/core/parser/parse_event.c (0)
M src/core/parser/parse_event.h (0)
M src/core/parser/parse_expires.c (0)
M src/core/parser/parse_expires.h (0)
M src/core/parser/parse_fline.c (0)
M src/core/parser/parse_fline.h (0)
M src/core/parser/parse_from.h (0)
M src/core/parser/parse_hname2.c (0)
M src/core/parser/parse_hname2.h (0)
M src/core/parser/parse_identity.c (0)
M src/core/parser/parse_identity.h (0)
M src/core/parser/parse_identityinfo.c (0)
M src/core/parser/parse_identityinfo.h (0)
M src/core/parser/parse_methods.c (0)
M src/core/parser/parse_methods.h (0)
M src/core/parser/parse_nameaddr.c (0)
M src/core/parser/parse_nameaddr.h (0)
M src/core/parser/parse_option_tags.c (0)
M src/core/parser/parse_option_tags.h (0)
M src/core/parser/parse_param.c (0)
M src/core/parser/parse_param.h (0)
M src/core/parser/parse_ppi_pai.c (0)
M src/core/parser/parse_ppi_pai.h (0)
M src/core/parser/parse_privacy.c (0)
M src/core/parser/parse_privacy.h (0)
M src/core/parser/parse_refer_to.c (0)
M src/core/parser/parse_refer_to.h (0)
M src/core/parser/parse_require.c (0)
M src/core/parser/parse_require.h (0)
M src/core/parser/parse_retry_after.c (0)
M src/core/parser/parse_retry_after.h (0)
M src/core/parser/parse_rpid.c (0)
M src/core/parser/parse_rpid.h (0)
M src/core/parser/parse_rr.c (0)
M src/core/parser/parse_rr.h (0)
M src/core/parser/parse_sipifmatch.c (0)
M src/core/parser/parse_sipifmatch.h (0)
M src/core/parser/parse_subscription_state.c (0)
M src/core/parser/parse_subscription_state.h (0)
M src/core/parser/parse_supported.c (0)
M src/core/parser/parse_supported.h (0)
M src/core/parser/parse_to.c (0)
M src/core/parser/parse_to.h (0)
M src/core/parser/parse_uri.c (0)
M src/core/parser/parse_uri.h (0)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3739.patchhttps://github.com/kamailio/kamailio/pull/3739.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3739
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3739(a)github.com>
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Introduce utility functions that run module functions in a thread —- primary use case is to init libssl in a thread. Also to avoid a lot of duplicate pthread_XXXX code.
Does not affect core as it is just a header file, however it could be put into core or a utility object.
This infra is applied to a few modules to see the code savings.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3736
-- Commit Summary --
* core: add infrastructure to run functions in threads
* db_unixodbc: use core/rthreads.h
* db_mysql: use core/rthreads.h
* db_postgres: use core/rthreads.h
* outbound: use core/rthreads.h
-- File Changes --
A src/core/rthreads.h (77)
M src/modules/db_mysql/km_dbase.c (10)
M src/modules/db_postgres/km_dbase.c (32)
M src/modules/db_unixodbc/dbase.c (11)
M src/modules/outbound/outbound_mod.c (13)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3736.patchhttps://github.com/kamailio/kamailio/pull/3736.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3736
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3736(a)github.com>