Freeswitch Kafka Plugin
Install this plugin to publish all of the freeswitch generated events to Kafka reliably from the freeswitch server. To enable just configure the event_kafka.conf.xml
<configuration name="event_kafka.conf" description="Kafka Event Configuration">
<settings>
<param name="bootstrap-servers" value="localhost:9092"/>
<param name="topic" value="kafa-topic-name" />
<param name="username" value="" />
<param name="password" value="" />
<param name="buffer-size" value="256" />
<param name="compression" value="snappy"/>
<param name="event-filter" value=""/>
</settings>
</configuration>
and enable autoloading of the module by adding the following entry in modules.conf.xml
<load module="mod_event_kafka"/>
We use vscode + docker, to enable easy building on any platform with the use of remote-container feature of Visual Studio Code
. If you are new to this, follow the getting started guide
Open the project in Visual Studio Code
and just Run Task Release
.
sudo apt-get install libfreeswitch-dev
sudo apt-get install build-essential pkg-config
sudo apt-get install librdkafka-dev libz-dev libssl-dev
make
make install