Module: kamailio Branch: master Commit: e93640e6119e61a24d8c1f6d36b60c83b3573f90 URL: https://github.com/kamailio/kamailio/commit/e93640e6119e61a24d8c1f6d36b60c83...
Author: Rhys Hanrahan rhys@nexusone.com.au Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-01-07T12:27:25+01:00
core: listen can now have a "virtual" flag to check for nonlocal floating IPs.
A new option to "listen" has been added called "virtual". This sets a flag on the listening socket to modify the behaviour of grep_sock_info. When this flag is set, grep_sock_info will only consider the listening IP a match if the IP is found in the system's current list of local IP addresses. If the IP is not currently local, then the matching IP is ignored. If the virtual flag is not set on the socket then existing behaviour used instead.
This is useful in scenarios with an active/active cluster where Kamailio must know if a floating IP is currently local or not.
---
Modified: src/core/cfg.lex Modified: src/core/cfg.y Modified: src/core/ip_addr.h Modified: src/core/socket_info.c
---
Diff: https://github.com/kamailio/kamailio/commit/e93640e6119e61a24d8c1f6d36b60c83... Patch: https://github.com/kamailio/kamailio/commit/e93640e6119e61a24d8c1f6d36b60c83...