Skip to main content

Module peer_learning

Module peer_learning 

Source
Expand description

Learns the source addresses of peers we actually exchange call traffic with, so OPTIONS keep-alive probes can be answered selectively (see [options_response] in Config).

Only call-bearing traffic is learned — inbound INVITE requests and responses to our outbound INVITEs. Probes (OPTIONS) and registrations are deliberately ignored: learning them would let an arbitrary scanner teach the ACL to accept its own probes.

Structs§

PeerAddressLearner
Transport-layer inspector recording call-traffic peer addresses.
SharedLearnedPeers
Cloneable handle to the LRU table of learned peer addresses (peer IP -> instant of the last call traffic seen from it).

Constants§

LEARNED_PEERS_CAPACITY
Default number of peer entries kept in the LRU table.