Module: kamailio
Branch: master
Commit: 429fea8069f0753e6b8dbfbfaf36701e30af6dda
URL: https://github.com/kamailio/kamailio/commit/429fea8069f0753e6b8dbfbfaf36701…
Author: Morten Tryfoss <morten(a)tryfoss.no>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-11-30T08:24:03+01:00
dispatcher: Not possible to deactivate probing of destination by reload
If ds_probing_mode is set to 3, flag in the dispatcher entry needs to include 8
for probing to happen.
Changing a destination to not include this anymore while the destination do
not respond to OPTIONS will cause the probing flag to be re-added because of the
delayed response. A restart will fix it.
We need to check against the probing flag in the CB function to determine if
we should continue probing this destination. If probing is deativated while
waiting for a reply, we should abort.
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/429fea8069f0753e6b8dbfbfaf36701…
Patch: https://github.com/kamailio/kamailio/commit/429fea8069f0753e6b8dbfbfaf36701…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index dd3c93f9a8..661b4a9533 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -3529,6 +3529,11 @@ static void ds_options_callback(
}
}
+ /* Check if in the meantime someone disabled probing of the target through RPC, MI or reload */
+ if(ds_probing_mode == DS_PROBE_ONLYFLAGGED && !(ds_get_state(group, &uri) & DS_PROBING_DST)) {
+ return;
+ }
+
/* ps->code contains the result-code of the request.
*
* We accept both a "200 OK" or the configured reply as a valid response */
### Description
Kamailio compiled with ASAN.
During Kamailio start I see messages
```
core/flags.c:46:18: runtime error: shift exponent 4294967295 is too large for 32-bit type 'int'
```
and
```
nat_traversal.c:1293:27: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
```
tested on current master
--
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/2954