fs

command module
v0.0.0-...-d3d516d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 1 Imported by: 0

README

fs tool

my freeswitch command line tool.

howto

freeswitch

install freeswitch first. https://freeswitch.org/confluence/display/FREESWITCH/Debian

postgres

install postgresql and set password.

apt-get install -y postgresql

su postgres
cd
postgres=# psql
postgres=# \password
postgres=# Enter new password for user "postgres":
postgres=# Enter it again:
postgres=# \quit
exit
fs

install fs, init conf, set var=value , run gateway, run server.

#install fs.
go install github.com/bob1118/fs
# set postgres password
fs config --set postgres.password='yourpassword'
# set switch ipv4 address.
fs config --set switch.vars.ipv4='yourswitchipv4'
# set switch public ip(external_sip_ip and external_rtp_ip)
# for lan deploy
fs config --set switch.vars.external_sip_ip='$${local_ip_v4}'
fs config --set switch.vars.external_rtp_ip='$${local_ip_v4}'
# for internet deploy
fs config --set switch.vars.external_sip_ip='stun:stun.freeswitch.org'
fs config --set switch.vars.external_rtp_ip='stun:stun.freeswitch.org'
# init switch bootable conf.
fs config fsconfig --reset
fs config fsconfig --init
# run gateway
fs gateway --run
# run server
fs server --run
# restart freeswitch
systemctl restart freeswitch

feature

Documentation

Overview

Copyright © 2022 bob

Directories

Path Synopsis
const ACCE164S = ` CREATE TABLE IF NOT EXISTS %s (
const ACCE164S = ` CREATE TABLE IF NOT EXISTS %s (
esl
eslclient
////////////////////////eslclient ///////////////////////////////////////// eslclient is a tcp client connect to mod_evnet_socket.
////////////////////////eslclient ///////////////////////////////////////// eslclient is a tcp client connect to mod_evnet_socket.
eventsocket
Package eventsocket send command and wait return.
Package eventsocket send command and wait return.
api
api/v1/bgapicmd
freeswitch run bgapi command do a backgroud job, execute bgapi command return job uuid.
freeswitch run bgapi command do a backgroud job, execute bgapi command return job uuid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL