Module: kamailio
Branch: 5.3
Commit: 319477691bfed48749eea5c40626f033bfbcf842
URL: https://github.com/kamailio/kamailio/commit/319477691bfed48749eea5c40626f03…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-06T14:40:43+01:00
textops: docs update to state regex params expect posix format
(cherry picked from commit b19aab7fe00f72d0c9e54a7a106ec7a065a3d02b)
(cherry picked from commit a78acd8f40ed38b161a075bef74febd93acb092c)
(cherry picked from commit e4eda3f5131e2788670a1f9f8342a2889e9b1107)
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/319477691bfed48749eea5c40626f03…
Patch: https://github.com/kamailio/kamailio/commit/319477691bfed48749eea5c40626f03…
---
diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index 4d5a7372ed..59eba31655 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -19,9 +19,15 @@
The module implements text based operations over the SIP message
processed by &kamailio;. SIP is a text based protocol and the module
provides a large set of very useful functions to manipulate the
- message at text level, e.g., regular expression search and replace,
- Perl-like substitutions, checks for method type, header presence,
- insert of new header and date, etc.
+ message at text level, e.g., regular expression search, replace
+ or substitutions, checks for method type, header presence,
+ insert of new header and date, string comparisons, multi-part body
+ operations, etc.
+ </para>
+ <para>
+ If not stated otherwise, the regular expressions parameters for search,
+ replace or substitute have to be in POSIX format. For PCRE regular
+ expression matching, see the pcre or dialplan modules.
</para>
</section>
<section>
@@ -555,7 +561,7 @@ replace_hdrs_str("&kamailio;", "&kamailio; SIP Proxy", "a");
<function moreinfo="none">subst('/re/repl/flags')</function>
</title>
<para>
- Replaces re with repl (sed or perl like).
+ Replaces re with repl.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
@@ -692,7 +698,7 @@ if (subst_user('/(.*)3642$/$avp(user_prefix)\13642/')){$
<function moreinfo="none">subst_body('/re/repl/flags')</function>
</title>
<para>
- Replaces re with repl (sed or perl like) in the body of the message.
+ Replaces re with repl in the body of the message.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
@@ -732,7 +738,7 @@ if ( subst_body('/^o=(.*) /o=$fU /') ) {};
<function moreinfo="none">subst_hf(hf, subexp, flags)</function>
</title>
<para>
- Perl-like substitutions in the body of a header field.
+ Substitutions in the body of a header field.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
Module: kamailio
Branch: 5.4
Commit: 2296c8d889797daf0eb5cedb4970f8f957a42f20
URL: https://github.com/kamailio/kamailio/commit/2296c8d889797daf0eb5cedb4970f8f…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-12-06T14:46:31+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/sipdump/README
Modified: src/modules/textops/README
---
Diff: https://github.com/kamailio/kamailio/commit/2296c8d889797daf0eb5cedb4970f8f…
Patch: https://github.com/kamailio/kamailio/commit/2296c8d889797daf0eb5cedb4970f8f…
---
diff --git a/src/modules/sipdump/README b/src/modules/sipdump/README
index e1841bf545..01d3a721df 100644
--- a/src/modules/sipdump/README
+++ b/src/modules/sipdump/README
@@ -289,8 +289,8 @@ event_route[sipdump:msg] {
examples shows how to delete the files older than 2 days using Kamailio
modules.
...
-loadmodule "rtimer.so
-loadmodule "exec.so
+loadmodule "rtimer.so"
+loadmodule "exec.so"
...
modparam("rtimer", "timer", "name=tjobs;interval=300;mode=1;")
modparam("rtimer", "exec", "timer=tjobs;route=TCLEAN")
diff --git a/src/modules/textops/README b/src/modules/textops/README
index dd1fc06a8b..1810c74782 100644
--- a/src/modules/textops/README
+++ b/src/modules/textops/README
@@ -237,9 +237,13 @@ Chapter 1. Admin Guide
The module implements text based operations over the SIP message
processed by Kamailio. SIP is a text based protocol and the module
provides a large set of very useful functions to manipulate the message
- at text level, e.g., regular expression search and replace, Perl-like
+ at text level, e.g., regular expression search, replace or
substitutions, checks for method type, header presence, insert of new
- header and date, etc.
+ header and date, string comparisons, multi-part body operations, etc.
+
+ If not stated otherwise, the regular expressions parameters for search,
+ replace or substitute have to be in POSIX format. For PCRE regular
+ expression matching, see the pcre or dialplan modules.
2. Known Limitations
@@ -565,7 +569,7 @@ replace_hdrs_str("Kamailio", "Kamailio SIP Proxy", "a");
4.15. subst('/re/repl/flags')
- Replaces re with repl (sed or perl like).
+ Replaces re with repl.
Meaning of the parameters is as follows:
* '/re/repl/flags' - sed like regular expression. flags can be a
@@ -646,7 +650,7 @@ if (subst_user('/(.*)3642$/$avp(user_prefix)\13642/')){$
4.18. subst_body('/re/repl/flags')
- Replaces re with repl (sed or perl like) in the body of the message.
+ Replaces re with repl in the body of the message.
Meaning of the parameters is as follows:
* '/re/repl/flags' - sed like regular expression. flags can be a
@@ -667,7 +671,7 @@ if ( subst_body('/^o=(.*) /o=$fU /') ) {};
4.19. subst_hf(hf, subexp, flags)
- Perl-like substitutions in the body of a header field.
+ Substitutions in the body of a header field.
Meaning of the parameters is as follows:
* hf - header field name.
Module: kamailio
Branch: 5.4
Commit: afc7f4c2e9c8c9176e655303fa1d949cbb4ecdec
URL: https://github.com/kamailio/kamailio/commit/afc7f4c2e9c8c9176e655303fa1d949…
Author: Andrii Pogrebennyk <andrii(a)ng-voice.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-06T14:32:25+01:00
db_redis: don't leave unconsumed redis replies in case of error on update
Execute db_redis_consume_replies on failed update same as in db_redis_insert:
if db_redis_perform_update encounters an error it was leaving unconsumed data
thus causing unexpected reply later on when reading from the same connection.
(cherry picked from commit bbd7b2ed5827252680e9d8949c193699da0a76b2)
(cherry picked from commit 7b371b77702471e62d8bd2ee957c44df73f1db80)
---
Modified: src/modules/db_redis/redis_dbase.c
---
Diff: https://github.com/kamailio/kamailio/commit/afc7f4c2e9c8c9176e655303fa1d949…
Patch: https://github.com/kamailio/kamailio/commit/afc7f4c2e9c8c9176e655303fa1d949…
---
diff --git a/src/modules/db_redis/redis_dbase.c b/src/modules/db_redis/redis_dbase.c
index c9a25adf36..ac1bd2b946 100644
--- a/src/modules/db_redis/redis_dbase.c
+++ b/src/modules/db_redis/redis_dbase.c
@@ -2249,6 +2249,7 @@ static int db_redis_perform_update(const db1_con_t* _h, km_redis_con_t *con, con
db_redis_key_free(&all_type_keys);
db_redis_key_free(&new_type_keys);
+ db_redis_consume_replies(con);
return 0;
error:
@@ -2260,6 +2261,7 @@ static int db_redis_perform_update(const db1_con_t* _h, km_redis_con_t *con, con
db_redis_key_free(&type_keys);
db_redis_key_free(&set_keys);
db_redis_key_free(&new_type_keys);
+ db_redis_consume_replies(con);
return -1;
}
Module: kamailio
Branch: 5.4
Commit: 748cd0834cc9118fec1ee69b749daad7203346fb
URL: https://github.com/kamailio/kamailio/commit/748cd0834cc9118fec1ee69b749daad…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-06T14:32:09+01:00
core: clarification for -b cli parameter
(cherry picked from commit f068a9ad1892777bfb9a6d1bcfd17a291578c6b6)
(cherry picked from commit 68a694676df0e0a0d0a8d0180ebc39f9893b49bc)
---
Modified: src/main.c
---
Diff: https://github.com/kamailio/kamailio/commit/748cd0834cc9118fec1ee69b749daad…
Patch: https://github.com/kamailio/kamailio/commit/748cd0834cc9118fec1ee69b749daad…
---
diff --git a/src/main.c b/src/main.c
index 3a67f841e6..6b53133e31 100644
--- a/src/main.c
+++ b/src/main.c
@@ -170,8 +170,8 @@ Options:\n\
default is yes.\n\
-A define Add config pre-processor define (e.g., -A WITH_AUTH,\n\
-A 'FLT_ACC=1', -A 'DEFVAL=\"str-val\"')\n\
- -b nr Maximum receive buffer size which will not be exceeded by\n\
- auto-probing procedure even if OS allows\n\
+ -b nr Maximum OS UDP receive buffer size which will not be exceeded by\n\
+ auto-probing-and-increase procedure even if OS allows\n\
-c Check configuration file for syntax errors\n\
-d Debugging level control (multiple -d to increase the level from 0)\n\
--debug=val Debugging level value\n\