Hello Joel,
thank you – this is another error; on the disk it looks ok.. I need to investigate here as well.
To prevent further issues, I’ve switched the user group to read-only for now. I will activate the editing again when the problem is fixed.
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
From: Joel Serrano <joel(a)textplus.com>
Sent: Wednesday, October 30, 2019 9:28 PM
To: Henning Westerholt <hw(a)skalatan.de>
Cc: miconda(a)gmail.com; Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: Re: [SR-Users] Routing Blocks - Missing in latest core wiki
Hi guys,
This one also needs fixing:
https://www.kamailio.org/wiki/cookbooks/devel/pseudovariables
I assume caused from the newly created $tcp(c_si), $tcp(c_sp) and $tcp(connid) pseudovars. Please see right after $msrp(srcsock)
I also reported this in the ticket: https://github.com/kamailio/kamailio/issues/2103 but being closed I'm not sure if you get the notifications.
Thanks,
Joel.
On Wed, Oct 30, 2019 at 10:23 AM Henning Westerholt <hw(a)skalatan.de<mailto:hw@skalatan.de>> wrote:
Hello,
the error is still there, just tested it. I will have a look to it, there are some errors in the apache log related to PHP. I just created a local copy to be able to test it easier.
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
From: sr-users <sr-users-bounces(a)lists.kamailio.org<mailto:sr-users-bounces@lists.kamailio.org>> On Behalf Of Daniel-Constantin Mierla
Sent: Wednesday, October 30, 2019 9:56 AM
To: Joel Serrano <joel(a)textplus.com<mailto:joel@textplus.com>>
Cc: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>>
Subject: Re: [SR-Users] Routing Blocks - Missing in latest core wiki
Hello,
ok, thanks for trying!
I added the content directly on the files on the server. We have to dig and see why the content is truncated, maybe some settings need to be adjusted.
Cheers,
Daniel
On 30.10.19 00:40, Joel Serrano wrote:
Hi Daniel,
I believe you are right, and I don't see the easy fix, I tried to edit myself to fix but no matter what I do, when I save the changes it gets truncated.
I also tried to add it in parts (section by section) and save with smaller changes, but when I got to the event_routes section I started getting the same problem and can't continue.
I'm attaching to this email the missing parts, because I clicked on "save" for core 5.2.x, that one got truncated too, so currently 5.2.x, 5.3.x and devel need to be fixed.
My suggestion is to replace from "Custom Global Parameters" onwards with the contents of the attached file, maybe you can edit the files directly on the wiki server? Or, if you manage to do it via the GUI I'd love to know how you got it working!
Sorry, I tried.. :-(
Cheers,
Joel.
On Tue, Oct 29, 2019 at 1:44 PM Daniel-Constantin Mierla <miconda(a)gmail.com<mailto:miconda@gmail.com>> wrote:
Hello,
that part has to be added back.
It was either an accidental change or a hit a limitation/bug of dokuwiki (because it removed last part).
Looking back at the history, it happened when I changed the version number in the title:
- http://www.kamailio.org/wiki/cookbooks/devel/core?do=diff&rev2%5B0%5D=15663…
If you want, you can go ahead and add it yourself, copying from the previous edition, otherwise I will do it tomorrow.
Cheers,
Daniel
On 29.10.19 21:03, Joel Serrano wrote:
Hi,
I was looking at the documentation and noticed that "Routing Blocks" section is missing in latest releases...
http://www.kamailio.org/wiki/cookbooks/5.2.x/core#routing_blocks is OK
But:
http://www.kamailio.org/wiki/cookbooks/5.3.x/core#routing_blockshttp://www.kamailio.org/wiki/cookbooks/devel/core#routing_blocks
Don't exist, have they been moved elsewhere?
Thanks!
Joel.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- https://asipto.com/u/kat
--
Daniel-Constantin Mierla -- www.asipto.com<http://www.asipto.com>
www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda>
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com<http://www.kamailioworld.com>
Module: kamailio
Branch: master
Commit: 7470ab6d16200f011dc33aad5ad4e89483af12e6
URL: https://github.com/kamailio/kamailio/commit/7470ab6d16200f011dc33aad5ad4e89…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-10-31T17:16:14+01:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/7470ab6d16200f011dc33aad5ad4e89…
Patch: https://github.com/kamailio/kamailio/commit/7470ab6d16200f011dc33aad5ad4e89…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 1949131062..a460ffff60 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1296,9 +1296,10 @@ if(ds_list_exists("10")) {
specific group id. The parameter can be an integer or a variable
holding an integer value.
* mode - (optional) - a bitmask to specify how the matching should be
- done. If is 0, all ip, port and proto are matched. If bit one is
- set, then port is ignored. If bit two is set, then protocol is
- ignored. The parameter can be an integer or a variable holding an
+ done. If is 0, all ip, port and proto are matched and active status
+ is ignored. If bit one is set, then port is ignored. If bit two is
+ set, then protocol is ignored. If bit three is set, then state must
+ be active. The parameter can be an integer or a variable holding an
integer value. It must be provided if the uri parameter is
provided.
* uri (optional) - if is empty or missing, the matching is done
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### 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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] 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 -->
- [ ] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
adds Bit 3 to mode parameter in ds_list_exists to allow the check of active/inactive entries in a list
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2117
-- Commit Summary --
* dispatcher: add state to mode in ds_list_exists
-- File Changes --
M src/modules/dispatcher/dispatch.c (4)
M src/modules/dispatcher/dispatch.h (1)
M src/modules/dispatcher/doc/dispatcher_admin.xml (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2117.patchhttps://github.com/kamailio/kamailio/pull/2117.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/2117
Module: kamailio
Branch: master
Commit: 2945ba448c6365728b49c10ba98824be357f85b3
URL: https://github.com/kamailio/kamailio/commit/2945ba448c6365728b49c10ba98824b…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: lazedo <luis.azedo(a)factorlusitano.com>
Date: 2019-10-31T16:12:31Z
dispatcher: add state to mode in ds_list_exists
adds Bit 3 to allow the check of active/inactive entries in ds_list
---
Modified: src/modules/dispatcher/dispatch.c
Modified: src/modules/dispatcher/dispatch.h
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/2945ba448c6365728b49c10ba98824b…
Patch: https://github.com/kamailio/kamailio/commit/2945ba448c6365728b49c10ba98824b…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 18b713ce02..75b3b56f3a 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -2998,7 +2998,9 @@ int ds_is_addr_from_set(sip_msg_t *_m, struct ip_addr *pipaddr,
&& ((mode & DS_MATCH_NOPORT) || node->dlist[j].port == 0
|| tport == node->dlist[j].port)
&& ((mode & DS_MATCH_NOPROTO)
- || tproto == node->dlist[j].proto)) {
+ || tproto == node->dlist[j].proto)
+ && (((mode & DS_MATCH_ACTIVE) && !ds_skip_dst(node->dlist[j].flags))
+ || !(mode & DS_MATCH_ACTIVE))) {
if(export_set_pv && ds_setid_pvname.s != 0) {
memset(&val, 0, sizeof(pv_value_t));
val.flags = PV_VAL_INT | PV_TYPE_INT;
diff --git a/src/modules/dispatcher/dispatch.h b/src/modules/dispatcher/dispatch.h
index 3a6a5aedc6..e4a54944aa 100644
--- a/src/modules/dispatcher/dispatch.h
+++ b/src/modules/dispatcher/dispatch.h
@@ -57,6 +57,7 @@
#define DS_MATCH_ALL 0
#define DS_MATCH_NOPORT 1
#define DS_MATCH_NOPROTO 2
+#define DS_MATCH_ACTIVE 4
#define DS_SETOP_DSTURI 0
#define DS_SETOP_RURI 1
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 11881bbed5..94e7062705 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1569,8 +1569,10 @@ if(ds_list_exists("10")) {
<listitem>
<para><emphasis>mode</emphasis> - (optional) - a bitmask to specify
how the matching should be done. If is 0, all ip, port and
- proto are matched. If bit one is set, then port is ignored.
- If bit two is set, then protocol is ignored. The parameter
+ proto are matched and active status is ignored.
+ If bit one is set, then port is ignored.
+ If bit two is set, then protocol is ignored.
+ If bit three is set, then state must be active. The parameter
can be an integer or a variable holding an integer value.
It must be provided if the uri parameter is provided.
</para>
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for feature requests.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If you submit a feature request (or enhancement) add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
Currently ds_is_from_list() matches all GWs in the dispatcher list, not considering if the GW is disabled or not. It might have situation where a GW is permanently disabled but can't be removed (because of CDR references for instance). In this case it is not desired to match a disabled GW in the test.
The function should accept a new parameter which will tell if it should or not match disabled GWs. For backward compatibility, it should not be a mandatory parameter and its default value should be to match disabled GW (as it is today).
### Expected behavior
ds_is_from_list() should return false in case it matches a disabled GW and the new parameter tells not to match disabled GWs.
--
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/1908