Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Jan 28, 2025
1 parent 64581f4 commit b46ecc2
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/switch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install native dependencies
run: |
sudo apt-get update
sudo apt-get install libpcre3-dev
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
2 changes: 2 additions & 0 deletions components/app/app/web/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class Application < Sinatra::Base
set :root, __dir__
enable :logging

set :host_authorization, { permitted_hosts: [] }

configure :development do
require "sinatra/reloader"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</mappings>
<settings>
<param name="colorize" value="false"/>
<param name="loglevel" value="debug"/>
<param name="loglevel" value="$${log_level}"/>
</settings>
</configuration>
2 changes: 1 addition & 1 deletion components/freeswitch/conf/autoload_configs/rayo.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<configuration name="rayo.conf" description="Rayo server config">
<settings>
<param name="max-idle-sec" value="5"/>
<param name="max-idle-sec" value="$${mod_rayo_max_idle_secs}"/>
<param name="add-variables-to-events" value="true"/>
</settings>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<configuration name="switch.conf" description="Core Configuration">
<settings>
<param name="colorize-console" value="false"/>
<param name="loglevel" value="debug"/>
<param name="loglevel" value="$${log_level}"/>

<param name="max-sessions" value="150"/>
<param name="sessions-per-second" value="1000"/>
Expand Down
4 changes: 4 additions & 0 deletions components/freeswitch/conf/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<!-- mod_rayo -->
<X-PRE-PROCESS cmd="set" data="mod_rayo_port=5222"/>
<X-PRE-PROCESS cmd="set" data="mod_rayo_password=secret"/>
<X-PRE-PROCESS cmd="set" data="mod_rayo_max_idle_secs=300"/>

<!-- mod_event_socket -->
<X-PRE-PROCESS cmd="set" data="event_socket_port=8021"/>
Expand All @@ -30,3 +31,6 @@
<X-PRE-PROCESS cmd="set" data="recordings_bucket_secret_access_key=secret"/>
<X-PRE-PROCESS cmd="set" data="recordings_bucket_name=recording"/>
<X-PRE-PROCESS cmd="set" data="recordings_bucket_region=ap-southeast-1"/>

<!-- logging -->
<X-PRE-PROCESS cmd="set" data="log_level=info"/>
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,14 @@ services:
build:
context: components/freeswitch
image: freeswitch:latest
platform: linux/amd64
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
FS_ALTERNATIVE_RTP_IP: "18.141.245.230"
FS_EVENT_SOCKET_PASSWORD: secret
FS_EVENT_SOCKET_PASSWORD: "secret"
FS_EVENT_SOCKET_PORT: 8021
FS_MOD_RAYO_MAX_IDLE_SECS: 5
FS_LOG_LEVEL: "debug"
expose:
- "5060/udp"
- "5222/tcp"
Expand Down

0 comments on commit b46ecc2

Please sign in to comment.