#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #2909
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2910
-- Commit Summary --
* <a href="https://github.com/kamailio/kamailio/pull/2910/commits/0b424ca7b7a8ac7f2e3e…">permissions: implement lock for trusted hash</a>
-- File Changes --
M src/modules/permissions/permissions.c (6)
M src/modules/permissions/rpc.c (6)
M src/modules/permissions/trusted.c (16)
M src/modules/permissions/trusted.h (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2910.patchhttps://github.com/kamailio/kamailio/pull/2910.diff
--
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/pull/2910
### Description, Troubleshooting, Reproduction
I have 3 go nats servers running and the following kamailio config for nats:
```
modparam("nats", "nats_url", "nats://127.0.0.1:4222")
modparam("nats", "nats_url", "nats://127.0.0.2:4222")
modparam("nats", "nats_url", "nats://127.0.0.3:4222")
modparam("nats", "subject_queue_group", "foo:2020")
...
event_route[nats:foo]
{
xlog("L_ERR", "==============> received $natsData");
}
```
I try to publish using some nats publisher (e.g. nats.c example/libuv-pub.c), and nothing gets printed in event route:
```
./pub -s nats://127.0.0.1:4222 -txt "aaaaaaaaaaaa" -count 1 // event route log NOT printed
./pub -s nats://127.0.0.2:4222 -txt "aaaaaaaaaaaa" -count 1 // event route log NOT printed
```
However, if I try to publish on the last server "127.0.0.3", log *is* printed:
```
./pub -s nats://127.0.0.3:4222 -txt "aaaaaaaaaaaa" -count 1 // event route log IS printed
```
I expected to see 1 log message for each of the above publish(es). Found this while implementing and testing #2915
Thanks,
Stefan
--
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/2916
```
[root@sbc-stage config]# kamcmd cfg.seti core debug 2
../../src/modules/ctl/binrpc.h:219:34: runtime error: left shift of 255 by 24 places cannot be represented in type 'int'
```
Daniel @miconda could you look.
--
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/2926
For selectively tracing sip messages *sent* by kamailio, we successfully use onsend_route: but this works for forwarded requests/responses only.
For locally generated messages, there does not seem to be a reliable method:
– tm:local-request: message is usually not final, not executed for locally generated ACK and CANCEL
– tm:local-response: works for responses only (triggered *after* sending)
– sl:local-response: works for responses only (triggered *after* sending)
We also tried event_route[network:msg], but sip_trace() does not work there (msg not parsed/available?).
Might it be possible to add a core option "onsend_route_localsrc", that can be enabled to make kamailio trigger onsend_route also for locally generated requests (and also locally generated responses, if "onsend_route_reply" is enabled)?
--
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/2933