Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.63 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.63 KB

mod_event_kafka

Freeswitch Kafka Plugin

Build Status

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"/>

Building

IDE Based Build

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.

Manually Building

Install Dependencies

sudo apt-get install libfreeswitch-dev
sudo apt-get install build-essential pkg-config 
sudo apt-get install librdkafka-dev libz-dev libssl-dev

Build

make
make install