<!-- 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 -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] 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)
- [ ] 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
is_direction("string") method added to kemi.
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1589
-- Commit Summary --
* adding is_direction to kemi
-- File Changes --
M src/modules/rr/rr_mod.c (27)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1589.patchhttps://github.com/kamailio/kamailio/pull/1589.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/1589
<!-- 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 -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] 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)
- [ ] 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Exporting the sdp_get_line_startswith function to KSR
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1558
-- Commit Summary --
* Modules: sdpops export sdp_get_line_startswith
-- File Changes --
M src/modules/sdpops/sdpops_mod.c (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1558.patchhttps://github.com/kamailio/kamailio/pull/1558.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/1558
<!-- 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 -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] 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)
- [ ] 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
is_direction(string) method is imported to kemi app_lua. this method will help to identify the direction of subsequent request.
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1588
-- Commit Summary --
* Modules: rr adding is_direction to kemi
-- File Changes --
M src/modules/rr/rr_mod.c (27)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1588.patchhttps://github.com/kamailio/kamailio/pull/1588.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/1588
Module: kamailio
Branch: master
Commit: a9a1dfb7bdfab175153d1d0778752e6096651fe0
URL: https://github.com/kamailio/kamailio/commit/a9a1dfb7bdfab175153d1d0778752e6…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-07-11T11:46:41+02:00
modules: readme files regenerated - permissions ... [skip ci]
---
Modified: src/modules/permissions/README
---
Diff: https://github.com/kamailio/kamailio/commit/a9a1dfb7bdfab175153d1d0778752e6…
Patch: https://github.com/kamailio/kamailio/commit/a9a1dfb7bdfab175153d1d0778752e6…
---
diff --git a/src/modules/permissions/README b/src/modules/permissions/README
index 6e2e3b972d..8452d58fac 100644
--- a/src/modules/permissions/README
+++ b/src/modules/permissions/README
@@ -78,7 +78,7 @@ Emmanuel Schmidbauer
4.8. allow_source_address([group_id])
4.9. allow_source_address_group()
4.10. allow_address_group(addr, port)
- 4.11. allow_trusted([src_ip_pvar, proto_pvar, uri_pvar])
+ 4.11. allow_trusted([src_ip_pvar, proto_pvar, furi_pvar])
5. RPC Commands
@@ -183,7 +183,7 @@ Chapter 1. Admin Guide
4.8. allow_source_address([group_id])
4.9. allow_source_address_group()
4.10. allow_address_group(addr, port)
- 4.11. allow_trusted([src_ip_pvar, proto_pvar, uri_pvar])
+ 4.11. allow_trusted([src_ip_pvar, proto_pvar, furi_pvar])
5. RPC Commands
@@ -715,7 +715,7 @@ modparam("permissions", "load_backends", 1)
4.8. allow_source_address([group_id])
4.9. allow_source_address_group()
4.10. allow_address_group(addr, port)
- 4.11. allow_trusted([src_ip_pvar, proto_pvar, uri_pvar])
+ 4.11. allow_trusted([src_ip_pvar, proto_pvar, furi_pvar])
4.1. allow_routing()
@@ -948,19 +948,24 @@ if ($var(group) != -1) {
};
...
-4.11. allow_trusted([src_ip_pvar, proto_pvar, uri_pvar])
+4.11. allow_trusted([src_ip_pvar, proto_pvar, furi_pvar])
Checks based either on request's source address and transport protocol
or source address and transport protocol given in pvar arguments, and
- From URI of request (or uri_pvar if provided) if request can be trusted
- without authentication. Returns “1” if a match is found as described in
- Section 1.5, “Trusted Requests” and “-1” otherwise. If a match is found
- and peer_tag_avp has been defined, adds a non-NULL tag column value of
- the matching peer to AVP peer_tag_avp.
+ From URI of request (or furi_pvar if provided) if request can be
+ trusted without authentication. Returns “1” if a match is found as
+ described in Section 1.5, “Trusted Requests” and “-1” otherwise. If a
+ match is found and peer_tag_avp has been defined, adds a non-NULL tag
+ column value of the matching peer to AVP peer_tag_avp.
- Source address, transport protocol and uri given in pvar arguments must
- be in string format. Valid transport protocol values are (ignoring
- case) "any", "udp, "tcp", "tls", "ws", "wss" and "sctp".
+ NOTE: source IP is matched using string comparison. Be careful if the
+ IP can have different forms, for a safer alternative for matching IP
+ addresses, look at allow_source_address or allow_address().
+
+ Source address, transport protocol and uri given in the arguments must
+ be in string format and they can contain script variables. Valid
+ transport protocol values are (ignoring case) "any", "udp, "tcp",
+ "tls", "ws", "wss" and "sctp".
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
@@ -968,11 +973,15 @@ if ($var(group) != -1) {
...
if (allow_trusted()) {
t_relay();
-};
+}
...
if (allow_trusted("$si", "$proto")) {
t_relay();
-};
+}
+...
+if (allow_trusted("$si", "any", "$ai")) {
+ t_relay();
+}
...
5. RPC Commands