Module: kamailio
Branch: master
Commit: fdf72bec2d6cc20618bc30d0978d7f24f8106d44
URL: https://github.com/kamailio/kamailio/commit/fdf72bec2d6cc20618bc30d0978d7f2…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2023-02-13T13:01:34+01:00
modules: readme files regenerated - nathelper ... [skip ci]
---
Modified: src/modules/nathelper/README
---
Diff: https://github.com/kamailio/kamailio/commit/fdf72bec2d6cc20618bc30d0978d7f2…
Patch: https://github.com/kamailio/kamailio/commit/fdf72bec2d6cc20618bc30d0978d7f2…
---
diff --git a/src/modules/nathelper/README b/src/modules/nathelper/README
index e091d2018f..941cee9465 100644
--- a/src/modules/nathelper/README
+++ b/src/modules/nathelper/README
@@ -107,7 +107,7 @@ Ovidiu Sas
1.17. Set alias_name parameter
1.18. fix_nated_contact usage
1.19. fix_nated_sdp usage
- 1.20. add_rcv_paramer usage
+ 1.20. add_rcv_param usage
1.21. fix_nated_register usage
1.22. nat_uac_test usage
1.23. is_rfc1918 usage
@@ -187,10 +187,10 @@ Chapter 1. Admin Guide
with request's source address:port pair. The function fix_nated_sdp()
adds the active direction indication to SDP (flag 0x01) and updates the
source IP address too (flag 0x02). The function fix_nated_register()
- exports exports the request's source address:port into an AVP to be
- used during save() and should be used for ���REGISTER��� requests.
+ exports the request's source address:port into an AVP to be used during
+ save() and should be used for ���REGISTER��� requests.
- Note: fix_nated_contact changes the ���Contact��� header, thus it breaks
+ Note: fix_nated_contact() changes the ���Contact��� header, thus it breaks
the RFC. Although usually this is not an issue, it may cause problems
with strict SIP clients. An alternative is to use add_contact_alias()
that together with the handle_ruri_alias() is standards conforming and
@@ -205,7 +205,7 @@ Chapter 1. Admin Guide
Kamailio;
+ Disadvantages: unidirectional traffic through NAT (inbound -
from outside to inside); As many NATs do update the bind
- timeout only on outbound traffic, the bind may expire and
+ timeout only on outbound traffic, the bind may expire and get
closed.
* SIP request - a stateless SIP request is sent to the UDP contact
address.
@@ -285,7 +285,8 @@ modparam("nathelper", "natping_interval", 10)
4.3. ping_nated_only (integer)
If this parameter is set to 1 then only contacts that have the behind
- NAT ���nat_bflag��� flag in user location database set will get ping.
+ NAT ���nat_bflag��� flag in user location database set will get
+ SIP-request-based ping.
If it is 0 and sipping_bflag is not set, then the 4-bytes UDP ping is
sent to all contacts. If it is 0 and sipping_bflag parameter is set,
@@ -583,7 +584,7 @@ if (search("User-Agent: Cisco ATA.*") {fix_nated_sdp("3");};
This function can be used from REQUEST_ROUTE.
- Example 1.20. add_rcv_paramer usage
+ Example 1.20. add_rcv_param usage
...
add_rcv_param(); # add the parameter to the Contact header
....
@@ -821,7 +822,7 @@ $ kamcmd nathelper.enable_ping 1
8.1. @nathelper.rewrite_contact[n]
Get n-th Contact value with IP:Port rewritten to source ip:port. N is
- counted from 1. Only IP:port is rewritten, remaining part are left
+ counted from 1. Only IP:port is rewritten, remaining parts are left
unchanged. Full nameaddr is supported.
Example 1.31. @nathelper.rewrite_contact usage
#### 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
- [x] Tested changes locally
- [x] Related to issue #3365
#### Description
previously $ulc(x=>aor) had only the user part even with use_domain set
output after applied the fix
```
│Feb 9 16:47:58.089067 spce proxy[30268]: DEBUG: usrloc [udomain.c:1053]: udomain_contact_expired_cb(): calling contact expired records - cycle [1]
│Feb 9 16:47:58.089100 spce proxy[30268]: DEBUG: usrloc [ul_callback.h:83]: run_ul_callbacks(): contact=0x7f8859ed4f50, callback type 8/8, id 0 entered
│Feb 9 16:47:58.089197 spce proxy[30268]: DEBUG: registrar [regpv.c:734]: reg_ul_expired_contact(): saved contact for <43991002(a)ce-trunk.lab> in [exp]
│Feb 9 16:47:58.089220 spce proxy[30268]: NOTICE: usrloc:contact-expired <script>: Contact ruid uloc-63e5131a-7639-1 to sip:43991002@192.168.2.177:5160 for user 43991002(a)ce-trunk.lab expired
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3366
-- Commit Summary --
* usrloc: correct AOR value on usrloc:contact-expired
-- File Changes --
M src/modules/usrloc/udomain.c (39)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3366.patchhttps://github.com/kamailio/kamailio/pull/3366.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3366
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3366(a)github.com>