Module: kamailio
Branch: master
Commit: 1ed58f0de4f7a3ab3a81dd84c1c3b94fa1df2c4b
URL: https://github.com/kamailio/kamailio/commit/1ed58f0de4f7a3ab3a81dd84c1c3b94…
Author: James Van Vleet <james(a)vanvleet.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-18T15:40:04+01:00
Erlang: Revert breaking change
Revert https://github.com/kamailio/kamailio/commit/6542a367638ec5f8a2b62994f8c309e…
xavp_add_xavp_value returns the root and not the xavp it added and that was the reason for the code the commit removed. Changed a variable name to help make that more clear.
Also related to https://github.com/kamailio/kamailio/issues/2069.
---
Modified: src/modules/erlang/pv_xbuff.c
---
Diff: https://github.com/kamailio/kamailio/commit/1ed58f0de4f7a3ab3a81dd84c1c3b94…
Patch: https://github.com/kamailio/kamailio/commit/1ed58f0de4f7a3ab3a81dd84c1c3b94…
---
diff --git a/src/modules/erlang/pv_xbuff.c b/src/modules/erlang/pv_xbuff.c
index 894c36784c..b19a22ac8e 100644
--- a/src/modules/erlang/pv_xbuff.c
+++ b/src/modules/erlang/pv_xbuff.c
@@ -86,11 +86,15 @@ sr_xavp_t *xbuff_new(str *name)
if(!xbuffs_root)
{
- xbuff = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
- } else {
- xbuff = xavp_get_child(&xbuff_list, name);
+ xbuffs_root = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
+ if (!xbuffs_root){
+ LM_ERR("cannot create xbuffs_root \n");
+ return NULL;
+ }
}
+ xbuff = xavp_get_child(&xbuff_list, name);
+
if (!xbuff) {
xbuff_val.type = SR_XTYPE_NULL;
Module: kamailio
Branch: master
Commit: 537d11183d4907101e69d00e92e3530d2eb7cb5e
URL: https://github.com/kamailio/kamailio/commit/537d11183d4907101e69d00e92e3530…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-18T09:04:27+01:00
async: docs - fixed typos
---
Modified: src/modules/async/doc/async_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/537d11183d4907101e69d00e92e3530…
Patch: https://github.com/kamailio/kamailio/commit/537d11183d4907101e69d00e92e3530…
---
diff --git a/src/modules/async/doc/async_admin.xml b/src/modules/async/doc/async_admin.xml
index 4955f00036..7185cbff52 100644
--- a/src/modules/async/doc/async_admin.xml
+++ b/src/modules/async/doc/async_admin.xml
@@ -93,9 +93,9 @@ modparam("async", "workers", 2)
<para>
Enables millisecond timer for async_ms_sleep() and async_ms_route() functions.
The integer value is the timer resolution in milliseconds. A smaller timer
- resultion will generate a higher load on the system. If you set ms_timer
- to 1 you will get a timer with 1 millisecond resultion, a setting of 20
- provides a resultion of 20ms.
+ resolution will generate a higher load on the system. If you set ms_timer
+ to 1 you will get a timer with 1 millisecond resolution, a setting of 20
+ provides a resolution of 20ms.
</para>
<para>
<emphasis>