Module: kamailio
Branch: master
Commit: 2d1b442fd8602003a794ebbdcf7f21a211b6b356
URL: https://github.com/kamailio/kamailio/commit/2d1b442fd8602003a794ebbdcf7f21a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-19T12:46:51+02:00
core: relocation and refactoring on ip addr handling code
- many static inline functions moved from ip_addr.h to ip_addr.c, code
size for some of them increased over the time
- ipv6_hex_style can be set to "c" to have IPv6 addresses compacted and
using lowercase hexdigits (rfc5952#section-4.2.1), GH #2510
- when ipv6_hex_style="c", ip6tosbuf() uses POSIX inet_ntop(),
conforming with POSIX.1-2001, POSIX.1-2008
---
Modified: src/core/cfg.y
Modified: src/core/globals.h
Modified: src/core/ip_addr.c
Modified: src/core/ip_addr.h
---
Diff: https://github.com/kamailio/kamailio/commit/2d1b442fd8602003a794ebbdcf7f21a…
Patch: https://github.com/kamailio/kamailio/commit/2d1b442fd8602003a794ebbdcf7f21a…
#### Type Of Change
- [x] New feature (non-breaking change which adds new functionality)
#### Checklist:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
#### Description
permissions allow_trusted function is exported to kemi. function doesn't not accept any parameters.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2509
-- Commit Summary --
* permissions: exported allow_trusted() to kemi
-- File Changes --
M src/modules/permissions/permissions.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2509.patchhttps://github.com/kamailio/kamailio/pull/2509.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/2509
Module: kamailio
Branch: master
Commit: 23818fb34d09a487654ea89c9f29b880c0c75197
URL: https://github.com/kamailio/kamailio/commit/23818fb34d09a487654ea89c9f29b88…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-10-19T10:09:59+02:00
pipelimit: use unsigned to compute size and for iterator
---
Modified: src/modules/pipelimit/pl_statistics.c
---
Diff: https://github.com/kamailio/kamailio/commit/23818fb34d09a487654ea89c9f29b88…
Patch: https://github.com/kamailio/kamailio/commit/23818fb34d09a487654ea89c9f29b88…
---
diff --git a/src/modules/pipelimit/pl_statistics.c b/src/modules/pipelimit/pl_statistics.c
index e1afa2ffb8..0c6c52d389 100644
--- a/src/modules/pipelimit/pl_statistics.c
+++ b/src/modules/pipelimit/pl_statistics.c
@@ -137,10 +137,12 @@ int get_socket_list_from_proto_and_family(int **ipList, int protocol, int family
struct socket_info *si;
struct socket_info** list;
- int num_ip_octets = family == AF_INET ? NUM_IP_OCTETS : NUM_IPV6_OCTETS;
- int numberOfSockets = 0;
+ unsigned int num_ip_octets = 0;
+ unsigned int numberOfSockets = 0;
int currentRow = 0;
+ num_ip_octets = (family == AF_INET) ? NUM_IP_OCTETS : NUM_IPV6_OCTETS;
+
/* I hate to use #ifdefs, but this is necessary because of the way
* get_sock_info_list() is defined. */
#ifndef USE_TCP
@@ -198,7 +200,7 @@ int get_socket_list_from_proto_and_family(int **ipList, int protocol, int family
/* Extract out the IP Addresses and ports. */
for(si=list?*list:0; si; si=si->next){
- int i;
+ unsigned int i;
/* We currently only support IPV4. */
if (si->address.af != family) {
#### 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)
- [ ] 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
removes `defs.h` which is an artifact from module's former behavior
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2508
-- Commit Summary --
* nsq: remove unused defs.h file
-- File Changes --
D src/modules/nsq/defs.h (130)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2508.patchhttps://github.com/kamailio/kamailio/pull/2508.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/2508
Module: kamailio
Branch: 5.3
Commit: c0d6a0412828fa6cb054a0a38b054b88b7176f79
URL: https://github.com/kamailio/kamailio/commit/c0d6a0412828fa6cb054a0a38b054b8…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-10-16T14:16:59+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/nathelper/README
Modified: src/modules/uac/README
---
Diff: https://github.com/kamailio/kamailio/commit/c0d6a0412828fa6cb054a0a38b054b8…
Patch: https://github.com/kamailio/kamailio/commit/c0d6a0412828fa6cb054a0a38b054b8…
---
diff --git a/src/modules/nathelper/README b/src/modules/nathelper/README
index 97b373eff3..ade396802f 100644
--- a/src/modules/nathelper/README
+++ b/src/modules/nathelper/README
@@ -521,12 +521,12 @@ if (search("User-Agent: Cisco ATA.*") {fix_nated_contact();};
* flags - the value may be a bitwise OR of the following flags:
+ 0x01 - adds “a=direction:active” SDP line;
+ 0x02 - rewrite media IP address (c=) with source address of
- the message or the provided IP address. (a=rtpc) param will be
+ the message or the provided IP address. (a=rtcp) param will be
rewritten if exists. (the provided IP address take precedence
over the source address).
+ 0x04 - adds “a=nortpproxy:yes” SDP line;
+ 0x08 - rewrite IP from origin description (o=) with source
- address of the message or the provided IP address. (a=rtpc)
+ address of the message or the provided IP address. (a=rtcp)
param will be rewritten if exists. (the provided IP address
take precedence over the source address).
* ip_address - IP to be used for rewriting SDP. If not specified, the
diff --git a/src/modules/uac/README b/src/modules/uac/README
index a65774af85..7e21cccbb7 100644
--- a/src/modules/uac/README
+++ b/src/modules/uac/README
@@ -86,6 +86,7 @@ Ramona-Elena Modroiu
8.6. uac.reg_refresh
8.7. uac.reg_active
8.8. uac.reg_add
+ 8.9. uac.reg_remove
9. Remote Registration
@@ -135,7 +136,8 @@ Ramona-Elena Modroiu
1.42. uac.reg_refresh usage
1.43. uac.reg_active usage
1.44. uac.reg_add usage
- 1.45. lookup remote registrations usage
+ 1.45. uac.reg_remove usage
+ 1.46. lookup remote registrations usage
Chapter 1. Admin Guide
@@ -204,6 +206,7 @@ Chapter 1. Admin Guide
8.6. uac.reg_refresh
8.7. uac.reg_active
8.8. uac.reg_add
+ 8.9. uac.reg_remove
9. Remote Registration
@@ -958,6 +961,7 @@ event_route[uac:reply] {
8.6. uac.reg_refresh
8.7. uac.reg_active
8.8. uac.reg_add
+ 8.9. uac.reg_remove
8.1. uac.reg_dump
@@ -1082,6 +1086,15 @@ event_route[uac:reply] {
kamcmd uac.reg_add ...
...
+8.9. uac.reg_remove
+
+ Remove a UAC remote registration record by l_uuid.
+
+ Example 1.45. uac.reg_remove usage
+...
+ kamcmd uac.reg_remove my_l_uuid
+...
+
9. Remote Registration
The module can register contact addresses to remote REGISTRAR servers.
@@ -1128,7 +1141,7 @@ event_route[uac:reply] {
if the call is coming from a remote SIP provider and can change the
R-URI to local username@domain. Afterwards you can run location lookup.
- Example 1.45. lookup remote registrations usage
+ Example 1.46. lookup remote registrations usage
...
if(uac_reg_lookup("$rU", "$ru")) {
xlog("request from a remote SIP provider [$ou => $ru]\n");