#### Description

Support to declare an `advertised_address` in the `Path` header(s).
The approach is similar to `rr` module.

`socket name (sn)` support is also included, when `advertised_address` is used. 
And in a lot of scenarios, makes sense to use both at same time.

`transport` mapping also applied.

Quiet useful, allowing the preload of `lr` in a pool of instances, instead of 
pointing to static IP's.

Support for `received`, `r2` tested.

Example of usage:

```sh
add_path_received_advertised_address("$env(INST_FQDN)", "", "ob");
```

#### Pre-Submission Checklist
- [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] Code is formatted with `clang-format` using the config file 
`.clang-format`
  from source code folder
- [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:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/4789

-- Commit Summary --

  * path: add add_path_advertised_address
  * path: update to use functions
  * path: support for adding socket name when adverised functions are used
  * core: support for socket name addition on advertised path functions
  * path: include also ;transport

-- File Changes --

    M src/core/lump_struct.h (4)
    M src/core/msg_translator.c (31)
    M src/modules/path/doc/path_admin.xml (108)
    M src/modules/path/path.c (268)
    M src/modules/path/path.h (26)
    M src/modules/path/path_mod.c (45)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/4789.patch
https://github.com/kamailio/kamailio/pull/4789.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4789
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to