Skip to content

Commit

Permalink
sipgw: remove service
Browse files Browse the repository at this point in the history
  • Loading branch information
wfleischer committed May 16, 2023
1 parent b7847b7 commit 003c72f
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 329 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

The [jigate](jigate) directory contains the configuration and Docker file of a FreeSWITCH service
which serves as a SIP gateway for [jigasi].
It registers to a [SIP gateway (sipgw)](#sipgw) service and receives calls for [jitsi meet].
It is controlled by the [jigatecon](#jigatecon) esl service.
It can register to a SIP gateway service or allows a user or gateway to register.
It receives calls for [jitsi meet] and is controlled by the [jigatecon](#jigatecon) esl service.

## Jigatecon

Expand All @@ -23,13 +23,6 @@ It is based on the following tutorials:
Use of @tsconfig/node16, @types/node, ts-node, .eslintignore and .vscode.
- [Developing applications for FreeSWITCH]

## Sipgw

The [sipgw](sipgw) directory contains the configuration and Docker file of a development SIP gateway service.
It allows clients to register and call into [jitsi meet] conferences.

In a production environment, this service would be replaced by your [PBX].

## Setup

To setup jigate using [docker-jitsi-meet]:
Expand All @@ -40,21 +33,17 @@ To setup jigate using [docker-jitsi-meet]:
./build.sh
```

1. Copy the [jigate.yml](jigate.yml) and [sipgw.yml](sipgw.yml) files to your `docker-jitsi-meet` deployment directory.
1. Add any environment vars from [jigate.env](jigate.env) to your `.env` file.
1. Copy the [jigate.yml](jigate.yml) file to your `docker-jitsi-meet` deployment directory.
1. Add the environment vars from [jigate.env](jigate.env) to your `.env` file.
1. In `docker-jitsi-meet` run:

```shell
docker-compose -f docker-compose.yml -f jigasi.yml -f sipgw.yml -f jigate.yml up -d
docker-compose -f docker-compose.yml -f jigasi.yml -f jigate.yml up -d
```

> In a production environment you would register the [jigate](#jigate) service to your PBX
> and would not deploy the [sipgw](#sipgw) service and therefore not use
> the [sipgw.yml](sipgw.yml) file.

## Test

1. Register a SIP client to the [sipgw](#sipgw) service at `<sip:127.0.0.1;transport=udp>` as `"<Display name>" <sip:[email protected]>`
1. Register a SIP client to the [jigate](#jigate) service at `<sip:127.0.0.1;transport=udp>` as `"<Display name>" <sip:[email protected]>`
1. Call `sip:<meeting id>@127.0.0.1`.

[Developing applications for FreeSWITCH]: https://medium.com/makingtuenti/developing-applications-for-freeswitch-fccbe75ada81
Expand Down
6 changes: 2 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ DIR=$(dirname "$(pwd)/$0")
set -euxo pipefail
cd $DIR
./build-node.sh
echo "#### Rebuild docker image"
echo "#### Rebuild the docker images"
docker build -t jigate/jigatecon .
for service in jigate sipgw; do
docker build -t jigate/$service $service
done
docker build -t jigate/jigate jigate
76 changes: 29 additions & 47 deletions jigate.drawio.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 0 additions & 36 deletions sipgw.yml

This file was deleted.

7 changes: 0 additions & 7 deletions sipgw/Dockerfile

This file was deleted.

11 changes: 0 additions & 11 deletions sipgw/etc/freeswitch/autoload_configs/console.conf.xml

This file was deleted.

8 changes: 0 additions & 8 deletions sipgw/etc/freeswitch/autoload_configs/event_socket.conf.xml

This file was deleted.

15 changes: 0 additions & 15 deletions sipgw/etc/freeswitch/autoload_configs/logfile.conf.xml

This file was deleted.

11 changes: 0 additions & 11 deletions sipgw/etc/freeswitch/autoload_configs/modules.xml

This file was deleted.

18 changes: 0 additions & 18 deletions sipgw/etc/freeswitch/autoload_configs/opus.conf.xml

This file was deleted.

58 changes: 0 additions & 58 deletions sipgw/etc/freeswitch/autoload_configs/sofia.conf.xml

This file was deleted.

27 changes: 0 additions & 27 deletions sipgw/etc/freeswitch/autoload_configs/switch.conf.xml

This file was deleted.

11 changes: 0 additions & 11 deletions sipgw/etc/freeswitch/dialplan/inbound.xml

This file was deleted.

27 changes: 0 additions & 27 deletions sipgw/etc/freeswitch/directory/directory.xml

This file was deleted.

32 changes: 0 additions & 32 deletions sipgw/etc/freeswitch/freeswitch.xml

This file was deleted.

0 comments on commit 003c72f

Please sign in to comment.