R2025-07-10
	BugFix. Register_t::Refress() - Same credentials on different lines of the same device, 
	New config param 'stat_log'


Add Domain to the key for Register_t::RegsCUsr
Move  MoveCalls() into constructor Register_t()

Bugfix. Create Register_t in locked state
CSTA: Do not handle RTP

Bugfix. MiddleCore::ClearReg()
Bugfix. Race Call_t::StopCall() and ~Register_t()
Bugfix in ~Register_t()
Bugfix in Register_t::MoveCalls()

Domain option:
	PCNT	- Preserve Contact

Addede Broken type 'v'	- Version of 3CX
broken = v 3CXPhoneSystem 20


    - Optimized to HIGH Load, to work in Multithread environment.
      Ability to specify Initial number of Listeners and Queue processing threads (which may change dynamically)
      Ability to specify limit Max number of processing threads.
    - Optimized work with DNS requests
    - Additional protection against DOS.


New feature: White-list of IP addresses per Domain

In the main config file, a new param is introduced: 'domain', with a new keyword: 'whitelist', is used at defining access to the domain.
For example:

    domain = xyz.com   WhiteList:/usr/local/natpass/wl/xyz.cfg
    domain = abcd.net  WhiteList:/usr/local/natpass/wl/allnet.cfg
    domain = efgh.net   WhiteList:/usr/local/natpass/wl/allnet.cfg

Note:
    Several domains may point to the same file, if needed.

If 'Whitelist' is not specified, there is no restrictions for specific 'domain'

Format of the 'domain-config' file is described below. Every line represents an address range (IP/Mask)
For example:

    #
    # List of subnets allowed for domain xyz.com
    #
    10.0.0.0/8            # use internally for testing pupose
    192.168.1.0/24
    8.8.4.4/32

Like in the main config file, 'domain-config' files may have a comments started with '#'

New feature: quiet_mode
An additional parameter is introduced in the config file (per Henry Castillo suggestion)

    quiet_mode = yes | no

If 'quiet_mode' is not specified (or set to 'no' - Default behavior):
    Natpass responses to SIP request sent to Wrong (not mentioned in configuration) Domain with "SIP/2.0 404 Not Found".
    Similarly, if incoming message arrived from IP that is not in Whitelist (assuming it's configured for domain) Natpass sends back: ""SIP/2.0 Forbidden"

On the other hand, if 'quiet_mode' set to 'yes', those two responses will be suppressed and originator will not receive any response.
This will make the task of network scanner harder, but the flip side, a legitimate device owner (not aware of a typo in the address in it's setup), will keep sending bad sip message.
