Need add
_tmx_tmb.prepare_to_cancel(t, &cancel_data.cancel_bitmap, 0);
into function static int t_cancel_branches_helper(sip_msg_t* msg, int n)
at case of 2( "this")
proposed changes:
```
case 2:
/* prepare cancel for current branch (idx) */
if(msg->first_line.u.reply.statuscode>=200)
break;
cancel_data.cancel_bitmap = 1<<idx;
+ _tmx_tmb.prepare_to_cancel(t, &cancel_data.cancel_bitmap, 0);
break;
```
### Additional Information
kamailio version 4.* to 5.*
```
```
Without this it can't cancel "this" transaction.
Rare case due to low use of "this".
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1620
Module: kamailio
Branch: master
Commit: d6eff66b185d442d0848a03c5b4681d6ab74373a
URL: https://github.com/kamailio/kamailio/commit/d6eff66b185d442d0848a03c5b4681d…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-08-13T20:46:34+02:00
modules: readme files regenerated - uac ... [skip ci]
---
Modified: src/modules/uac/README
---
Diff: https://github.com/kamailio/kamailio/commit/d6eff66b185d442d0848a03c5b4681d…
Patch: https://github.com/kamailio/kamailio/commit/d6eff66b185d442d0848a03c5b4681d…
---
diff --git a/src/modules/uac/README b/src/modules/uac/README
index b833372b6a..c3d2711ba4 100644
--- a/src/modules/uac/README
+++ b/src/modules/uac/README
@@ -892,7 +892,7 @@ event_route[uac:reply] {
Return the details of a remote registration record based on a filter.
The command has two parameter: attribute and value. The attribute can
be: l_uuid, l_username, r_username or auth_username. The value is what
- should be matcheg against the value of the attribute in the remote
+ should be matched against the value of the attribute in the remote
registration record.
The state of the registration is reflected in the flags field:
@@ -913,7 +913,7 @@ event_route[uac:reply] {
Enable a remote registration record based on a filter. The command has
two parameter: attribute and value. The attribute can be: l_uuid,
l_username, r_username or auth_username. The value is what should be
- matcheg against the value of the attribute in the remote registration
+ matched against the value of the attribute in the remote registration
record.
Example 1.36. uac.reg_enable usage
@@ -926,7 +926,7 @@ event_route[uac:reply] {
Disable a remote registration record based on a filter. The command has
two parameter: attribute and value. The attribute can be: l_uuid,
l_username, r_username or auth_username. The value is what should be
- matcheg against the value of the attribute in the remote registration
+ matched against the value of the attribute in the remote registration
record.
Example 1.37. uac.reg_disable usage
Module: kamailio
Branch: master
Commit: 00ba2193d60e8255ea863a99b52e86f841f16bdb
URL: https://github.com/kamailio/kamailio/commit/00ba2193d60e8255ea863a99b52e86f…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-08-13T20:42:50+02:00
uac: fix typo in module README
---
Modified: src/modules/uac/doc/uac_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/00ba2193d60e8255ea863a99b52e86f…
Patch: https://github.com/kamailio/kamailio/commit/00ba2193d60e8255ea863a99b52e86f…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index 8047c67c2b..650ec8823c 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -1053,7 +1053,7 @@ event_route[uac:reply] {
Return the details of a remote registration record based on
a filter. The command has two parameter: attribute and value.
The attribute can be: l_uuid, l_username, r_username or auth_username.
- The value is what should be matcheg against the value of the attribute
+ The value is what should be matched against the value of the attribute
in the remote registration record.
</para>
<para>
@@ -1095,7 +1095,7 @@ event_route[uac:reply] {
Enable a remote registration record based on
a filter. The command has two parameter: attribute and value.
The attribute can be: l_uuid, l_username, r_username or auth_username.
- The value is what should be matcheg against the value of the attribute
+ The value is what should be matched against the value of the attribute
in the remote registration record.
</para>
<example>
@@ -1116,7 +1116,7 @@ event_route[uac:reply] {
Disable a remote registration record based on
a filter. The command has two parameter: attribute and value.
The attribute can be: l_uuid, l_username, r_username or auth_username.
- The value is what should be matcheg against the value of the attribute
+ The value is what should be matched against the value of the attribute
in the remote registration record.
</para>
<example>
Module: kamailio
Branch: master
Commit: f1f6c303baab87523d54b97af38c0a5718cf0d2f
URL: https://github.com/kamailio/kamailio/commit/f1f6c303baab87523d54b97af38c0a5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-08-13T13:22:59+02:00
app_lua: docs - more details about lua_run() params
---
Modified: src/modules/app_lua/doc/app_lua_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/f1f6c303baab87523d54b97af38c0a5…
Patch: https://github.com/kamailio/kamailio/commit/f1f6c303baab87523d54b97af38c0a5…
---
diff --git a/src/modules/app_lua/doc/app_lua_admin.xml b/src/modules/app_lua/doc/app_lua_admin.xml
index 45ed3e29c1..74ea68e460 100644
--- a/src/modules/app_lua/doc/app_lua_admin.xml
+++ b/src/modules/app_lua/doc/app_lua_admin.xml
@@ -334,11 +334,12 @@ if(!lua_dostring("sr.log([[err]], [[----------- Hello World from $fU\n]])"))
<section id="app_lua.f.lua_run">
<title>
- <function moreinfo="none">lua_run(function, params)</function>
+ <function moreinfo="none">lua_run(func [, params])</function>
</title>
<para>
- Execute the Lua function 'func' giving params as parameters. There
- can be up to 3 string parameters. The function must exist in the
+ Execute the Lua function 'func' giving 'params' as parameters. There
+ can be up to 3 string parameters after 'func' (overall, max 4 params,
+ first is the function). The function must exist in the Lua
script loaded at startup via parameter 'load'. Parameters can be
strings with pseudo-variables that are evaluated at runtime.
</para>
@@ -346,12 +347,14 @@ if(!lua_dostring("sr.log([[err]], [[----------- Hello World from $fU\n]])"))
<title><function>lua_run</function> usage</title>
<programlisting format="linespecific">
...
-if(!lua_run("sr_append_fu_to_reply"))
-{
+if(!lua_run("sr_append_fu_to_reply")) {
xdbg("SCRIPT: failed to execute lua function!\n");
}
...
-lua_run("lua_funcx", "$rU", "2");
+lua_run("lua_funcx0");
+lua_run("lua_funcx1", "$rU");
+lua_run("lua_funcx2", "$rU", "2");
+lua_run("lua_funcx3", "$rU", "2", "$si");
...
</programlisting>
</example>