Categorygithub.com/bob1118/fs
repositorypackage
0.0.0-20240618045839-e85b02a3075a
Repository: https://github.com/bob1118/fs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# 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