You need to sign in or sign up before continuing.
Commit 87f03ca5 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all: freeswitch-service
tar xf freeswitch-1.10.5.-release.tar.xz
patch -Np1 -d freeswitch-1.10.5.-release < freeswitch-1.10.5.-release-mod_test_enable.patch
cd freeswitch-1.10.5.-release && ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run
$(MAKE) -C freeswitch-1.10.5.-release
$(MAKE) -C freeswitch-1.10.5.-release install
$(MAKE) -C freeswitch-1.10.5.-release check
@echo "d /run/freeswitch 755 root root -" > /usr/lib/tmpfiles.d/freeswitch.conf
@echo "$$FREESWITCH_SERVICE" > /lib/systemd/system/freeswitch.service
systemctl enable freeswitch.service
rm -rf freeswitch-1.10.5.-release
freeswitch-service:
define FREESWITCH_SERVICE
[Unit]
Description=FreeSWITCH
Wants=network-online.target
Requires=network.target local-fs.target
After=syslog.target network.target network-online.target postgresql.service mysqld.service httpd.service
[Service]
User=root
EnvironmentFile=-/etc/sysconfig/freeswitch
WorkingDirectory=/run/freeswitch
ExecStart=/usr/bin/freeswitch -nf $$FREESWITCH_PARAMS
ExecReload=/usr/bin/kill -HUP $$MAINPID
Restart=on-failure
UMask=0007
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=1
Nice=-19
[Install]
WantedBy=multi-user.target
endef
export FREESWITCH_SERVICE
diff -uNr freeswitch-1.10.5.-release/build/modules.conf.in freeswitch-1.10.5.-release-mod_test_enable/build/modules.conf.in
--- freeswitch-1.10.5.-release/build/modules.conf.in 2020-08-19 05:35:00.000000000 +0930
+++ freeswitch-1.10.5.-release-mod_test_enable/build/modules.conf.in 2021-02-07 00:03:41.909075959 +1030
@@ -49,6 +49,7 @@
applications/mod_spandsp
#applications/mod_spy
#applications/mod_stress
+applications/mod_test
#applications/mod_translate
applications/mod_valet_parking
#applications/mod_video_filter
diff -uNr freeswitch-1.10.5.-release/build/modules.conf.most freeswitch-1.10.5.-release-mod_test_enable/build/modules.conf.most
--- freeswitch-1.10.5.-release/build/modules.conf.most 2020-08-19 05:35:00.000000000 +0930
+++ freeswitch-1.10.5.-release-mod_test_enable/build/modules.conf.most 2021-02-07 00:03:41.909075959 +1030
@@ -47,6 +47,7 @@
applications/mod_spandsp
applications/mod_spy
applications/mod_stress
+applications/mod_test
applications/mod_translate
applications/mod_valet_parking
applications/mod_video_filter
diff -uNr freeswitch-1.10.5.-release/modules.conf freeswitch-1.10.5.-release-mod_test_enable/modules.conf
--- freeswitch-1.10.5.-release/modules.conf 2020-08-19 05:35:01.000000000 +0930
+++ freeswitch-1.10.5.-release-mod_test_enable/modules.conf 2021-02-07 00:04:03.317141184 +1030
@@ -49,6 +49,7 @@
applications/mod_spandsp
#applications/mod_spy
#applications/mod_stress
+applications/mod_test
#applications/mod_translate
applications/mod_valet_parking
#applications/mod_video_filter
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment