The binary interface (also called the BIN interface) provides you with an efficient way of internal communication between multiple OpenSIPS instances. It is a generic mechanism that allows different OpenSIPS modules to communicate data between different OpenSIPS instances transparently.
Engineers can use the BIN interface to replicate the data and state between OpenSIPS instances used for high-availability or clustering configurations.
To configure an OpenSIPS instance to be a receiver of BIN traffic, the following BIN parameters need to be configured:
bin_listen = 10.0.0.150:5062 bin_children = 2
The following figure shows how binary replication works in an OpenSIPS cluster:
The BIN traffic is tagged with the name of the module generating it so that when received, OpenSIPS will automatically know which module to send the incoming traffic. For example, BIN packages tagged as generated by the dialog
modules will be dispatched and consumed by the dialog
module on the receiving...