Module: kamailio
Branch: master
Commit: 89d5a2754e962c0f0bec59591b327d356999efbc
URL: https://github.com/kamailio/kamailio/commit/89d5a2754e962c0f0bec59591b327d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-07-07T12:39:06+02:00
textopsx: docs for hdr iterator functions
---
Modified: src/modules/textopsx/doc/functions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/89d5a2754e962c0f0bec59591b327d3…
Patch: https://github.com/kamailio/kamailio/commit/89d5a2754e962c0f0bec59591b327d3…
---
diff --git a/src/modules/textopsx/doc/functions.xml b/src/modules/textopsx/doc/functions.xml
index 0980e4060b..f9c388016e 100644
--- a/src/modules/textopsx/doc/functions.xml
+++ b/src/modules/textopsx/doc/functions.xml
@@ -482,5 +482,87 @@ if (@hf_value_exists.supported.path == "1") {
</programlisting>
</example>
</section>
+ <section id="textopsx.f.hf_iterator_start">
+ <title>
+ <function moreinfo="none">hf_iterator_start(iname)</function>
+ </title>
+ <para>
+ Start an iterator for headers in the current SIP message.
+ The parameter iname is used to identify the iterator. There
+ can be up to 4 iterators at the same time, with different name.
+ </para>
+ <para>
+ The parameter can be a dynamic string with variables.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>hf_iterator_start</function> usage</title>
+ <programlisting format="linespecific">
+...
+hf_iterator_start("i1");
+...
+</programlisting>
+ </example>
+ </section>
+ <section id="textopsx.f.hf_iterator_end">
+ <title>
+ <function moreinfo="none">hf_iterator_end(iname)</function>
+ </title>
+ <para>
+ Close the iterator identified by iname parameter. The iname value
+ must be the same used for sht_iterator_start().
+ </para>
+ <para>
+ The parameter can be dynamic string with variables.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>hf_iterator_end</function> usage</title>
+ <programlisting format="linespecific">
+...
+hf_iterator_end("i1");
+...
+</programlisting>
+ </example>
+ </section>
+ <section id="textopsx.f.hf_iterator_next">
+ <title>
+ <function moreinfo="none">textopsx.f.hf_iterator_next(iname)</function>
+ </title>
+ <para>
+ Move the iterator to the next header. It must
+ be called also after sht_iterator_start() to get the first
+ header.
+ </para>
+ <para>
+ The return code is false when there is no other header in the list.
+ </para>
+ <para>
+ The item name and value are accessible via variables:
+ $hfitname(iname) and $hfitbody(iname).
+ </para>
+ <para>
+ The parameter can be dynamic string with variables.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>hf_iterator_next</function> usage</title>
+ <programlisting format="linespecific">
+...
+ hf_iterator_start("i1");
+ while(hf_iterator_next("i1")) {
+ xlog("hdr[$hfitname(i1)] is: $hfitbody(i1)\n");
+ }
+ hf_iterator_end("i1");
+...
+</programlisting>
+ </example>
+ </section>
</section>
Hi,
We have kamailio server v. 5.3.1 with db_mysql.so built with our old mysql
library 5.1.41. Now I'm trying to build it with libperconaclient20. I've
tried many variants of build configuration, but every time I got errors
when kamailio stops or starts, such:
*2021-07-06T06:01:20.943809-07:00 devhpbx005-1
/var/lib/ums/sbin/kamailio[25711]: ERROR: db_mysql [km_my_con.c:139]:
db_mysql_new_connection(): driver error: Lost connection to MySQL server at
'reading authorization packet', system error:
112021-07-06T06:01:20.946591-07:00 devhpbx005-1
/var/lib/ums/sbin/kamailio[25711]: ERROR: <core> [db.c:319]: db_do_init2():
could not add connection to the pool2021-07-06T06:01:20.947224-07:00
devhpbx005-1 /var/lib/ums/sbin/kamailio[25711]: ERROR: auth_db
[auth_db_mod.c:159]: child_init(): unable to connect to the
database2021-07-06T06:01:20.947592-07:00 devhpbx005-1
/var/lib/ums/sbin/kamailio[25711]: ERROR: <core> [core/sr_module.c:806]:
init_mod_child(): error while initializing module auth_db
(/var/lib/ums/lib64/kamailio/modules/auth_db.so) (idx: 5 rank: 5 desc:
[udpreceiver child=4 sock=64.78.52.86:5060 <http://64.78.52.86:5060>])*
or
*2021-07-06T06:18:43.159744-07:00 devhpbx005-1
/var/lib/ums/sbin/kamailio[30954]: CRITICAL: <core>
[core/mem/q_malloc.c:150]: qm_debug_check_frag(): BUG: qm: prev. fragm.
tail overwritten(0, 0)[0x7fd5c6c85bc8:0x7fd5c6c85c00]! Memory allocator was
calledfrom core: db_res.c:114. Fragment marked by db_mysql: km_my_con.c:75.
Exec from core/mem/q_malloc.c:391.*
Is there some specific way to build kamailio with percona?
Thanks,
Andrey
Module: kamailio
Branch: master
Commit: 5a473493189acc93705c78c1966a9eae0e80fef0
URL: https://github.com/kamailio/kamailio/commit/5a473493189acc93705c78c1966a9ea…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-07-07T07:51:31+02:00
nathelper: docs - fixed copy/paste extra tags
---
Modified: src/modules/nathelper/doc/nathelper_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/5a473493189acc93705c78c1966a9ea…
Patch: https://github.com/kamailio/kamailio/commit/5a473493189acc93705c78c1966a9ea…
---
diff --git a/src/modules/nathelper/doc/nathelper_admin.xml b/src/modules/nathelper/doc/nathelper_admin.xml
index c6d398b218..832e324819 100644
--- a/src/modules/nathelper/doc/nathelper_admin.xml
+++ b/src/modules/nathelper/doc/nathelper_admin.xml
@@ -723,7 +723,6 @@ fix_nated_register();
and D-URI ($du). For replies, it compares host and port in 2nd Via
with received and rport parameters.
</para></listitem>
- <listitem><para>
</itemizedlist>
<para>
All flags can be bitwise combined, the test returns true if any of
Module: kamailio
Branch: master
Commit: fb0bb3f49efe51bbab03911923b737f037b9cd44
URL: https://github.com/kamailio/kamailio/commit/fb0bb3f49efe51bbab03911923b737f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-07-06T11:53:39+02:00
nathelper: docs for nat uac test 512
---
Modified: src/modules/nathelper/doc/nathelper_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/fb0bb3f49efe51bbab03911923b737f…
Patch: https://github.com/kamailio/kamailio/commit/fb0bb3f49efe51bbab03911923b737f…
---
diff --git a/src/modules/nathelper/doc/nathelper_admin.xml b/src/modules/nathelper/doc/nathelper_admin.xml
index 39e61e6856..c6d398b218 100644
--- a/src/modules/nathelper/doc/nathelper_admin.xml
+++ b/src/modules/nathelper/doc/nathelper_admin.xml
@@ -717,6 +717,13 @@ fix_nated_register();
from source IP address. It will work also with multiple connection address
lines.
</para></listitem>
+ <listitem><para>
+ <emphasis>512</emphasis> - Test if the target addresses are different
+ or over websocket. For requests, it compares host and port in R-URI ($rU)
+ and D-URI ($du). For replies, it compares host and port in 2nd Via
+ with received and rport parameters.
+ </para></listitem>
+ <listitem><para>
</itemizedlist>
<para>
All flags can be bitwise combined, the test returns true if any of