Jigate is a SIP gateway for Jigasi based on FreeSWITCH.
The jigate service controls the behavior of the FreeSWITCH instance. SIP participants can toggle their mute and raised hand status.
The freeswitch directory contains the configuration and Docker file of a FreeSWITCH service which serves as a SIP gateway for Jigasi. It can register to a SIP gateway service or allow a user or gateway to register. It receives calls for Jitsi Meet and is controlled by the Jigate esl service.
To setup jigate using docker-jitsi-meet:
-
Build the Docker images:
./build.sh
-
Copy the jigate.yml file to your
docker-jitsi-meet
deployment directory. -
Add the environment vars from jigate.env to your
.env
file. -
In
docker-jitsi-meet
run:docker-compose -f docker-compose.yml -f jigasi.yml -f jigate.yml up -d
- Register a SIP client as
"<Display name>" <sip:user@meet.jitsi>
to the jigate service at<sip:127.0.0.1;transport=udp>
. - Call
sip:1000@127.0.0.1
to dial into an ivr and provide the meeting id or directly connect to a meeting by callingsip:<meeting id>@127.0.0.1
.
- Configure Jigasi to use BOSH.
- Call
sip:<meeting id>.<domain>@127.0.0.1
to connect to the meeting at the specified domain.
The services can be monitored by REST API at http://<jigate>:8080/stats
. It returns a JSON object with the following data:
- activeCalls (integer): the count of active calls
- internalProfileRunning (boolean): whether the Freeswitch internal profile is running
- externalProfileRunning (boolean): whether the Freeswitch external profile is running
- registrations (integer): the count of registrations