Skip to content

Commit

Permalink
Merge branch 'master' into v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
andywolk committed Oct 24, 2021
2 parents 1ff9d0a + f9994c0 commit 883d2cb
Show file tree
Hide file tree
Showing 596 changed files with 52,105 additions and 126,056 deletions.
48 changes: 25 additions & 23 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ name: unit-tests
steps:
- name: bootstrap
image: signalwire/freeswitch-public-base
pull: true
pull: always
commands:
- cat /proc/sys/kernel/core_pattern
- ./bootstrap.sh -j

- name: configure
image: signalwire/freeswitch-public-base
pull: true
pull: always
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- echo "applications/mod_test" >> modules.conf
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
- git clone https://github.com/freeswitch/sofia-sip.git
- cd sofia-sip && ./autogen.sh && ./configure.gnu && make -j`nproc` && make install && cd ..
- echo 'codecs/mod_openh264' >> modules.conf
- sed -i '/applications\\/mod_http_cache/s/^#//g' modules.conf
- sed -i '/event_handlers\\/mod_rayo/s/^#//g' modules.conf
Expand All @@ -27,20 +28,22 @@ steps:

- name: build
image: signalwire/freeswitch-public-base
pull: true
pull: always
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
- cd sofia-sip && make install && cd ..
- echo '#!/bin/bash\nmake -j`nproc --all` |& tee ./unit-tests-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./build-status.txt\n' > build.sh
- chmod +x build.sh
- ./build.sh

- name: run-tests
image: signalwire/freeswitch-public-base
pull: true
pull: always
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libsofia-sip-ua0 libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libspandsp3-dev
- cd sofia-sip && make install && cd ..
- make install || true
- cd tests/unit
- ./run-tests.sh
Expand All @@ -53,15 +56,15 @@ steps:

- name: notify
image: signalwire/drone-notify
pull: true
pull: always
environment:
SLACK_WEBHOOK_URL:
from_secret: slack_webhook_url
ENV_FILE:
from_secret: notify_env
commands:
- /root/unit-tests-notify.sh

trigger:
branch:
- master
Expand All @@ -75,14 +78,14 @@ name: scan-build

steps:
- name: bootstrap
image: signalwire/freeswitch-public-base:stretch
pull: true
image: signalwire/freeswitch-public-base
pull: always
commands:
- ./bootstrap.sh -j

- name: configure
image: signalwire/freeswitch-public-base:stretch
pull: true
image: signalwire/freeswitch-public-base
pull: always
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
Expand Down Expand Up @@ -112,21 +115,21 @@ steps:
- ./configure

- name: scan-build
image: signalwire/freeswitch-public-base:stretch
pull: true
image: signalwire/freeswitch-public-base
pull: always
commands:
- apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -yq remove libspandsp-dev
- DEBIAN_FRONTEND=noninteractive apt-get -yq install libsofia-sip-ua-dev libspandsp3-dev
- mkdir -p scan-build
- echo '#!/bin/bash\nscan-build-4.0 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
- echo '#!/bin/bash\nscan-build-7 -o ./scan-build/ make -j`nproc --all` |& tee ./scan-build-result.txt\nexitstatus=$${PIPESTATUS[0]}\necho $$exitstatus > ./scan-build-status.txt\n' > scan.sh
- chmod +x scan.sh
- ./scan.sh
- exitstatus=`cat ./scan-build-status.txt`
- echo "*** Exit status is $exitstatus"

- name: notify
image: signalwire/drone-notify
pull: true
pull: always
environment:
SLACK_WEBHOOK_URL:
from_secret: slack_webhook_url
Expand All @@ -135,7 +138,6 @@ steps:
commands:
- /root/scan-build-notify.sh


trigger:
branch:
- master
Expand All @@ -145,6 +147,6 @@ trigger:

---
kind: signature
hmac: af77439b382612b49140cb95f04d6d695e0a188c411ae227abcba205bf96bab9
hmac: a85b0db203d2c9a71c3e4a63a46b5513fbdb3b8f5135e21d0fe0992f33626824

...
20 changes: 11 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Release/
/build/config/ltmain.sh
/build/config/missing
/build/freeswitch.pc
/build/standalone_module/freeswitch.pc
/build/getlib.sh
/build/getg729.sh
/build/getsounds.sh
Expand All @@ -115,15 +116,6 @@ Release/
/libs/esl/fs_ivrd
/libs/esl/testclient
/libs/esl/testserver
/libs/freetdm/detect_dtmf
/libs/freetdm/detect_tones
/libs/freetdm/testanalog
/libs/freetdm/testapp
/libs/freetdm/testcid
/libs/freetdm/testpri
/libs/freetdm/testr2
/libs/freetdm/testsangomaboost
/libs/freetdm/testtones
/libs/fsg729-*-installer
/libs/g729/
/libs/libcodec2/compile
Expand Down Expand Up @@ -165,6 +157,7 @@ Release/
/src/mod/languages/mod_lua/mod_lua_wrap.cpp.orig
/src/mod/languages/mod_perl/mod_perl_wrap.cpp.orig
/src/mod/languages/mod_python/mod_python_wrap.cpp.orig
/src/mod/languages/mod_python3/mod_python_wrap.cpp.orig
/src/mod/say/mod_say_de/Makefile
/src/mod/say/mod_say_es/Makefile
/src/mod/say/mod_say_fr/Makefile
Expand Down Expand Up @@ -273,9 +266,18 @@ src/mod/applications/mod_http_cache/test/test_aws.log
src/mod/applications/mod_http_cache/test/test_aws.trs
src/mod/formats/mod_sndfile/test/test_sndfile
src/mod/formats/mod_sndfile/test/test_sndfile_conf
src/mod/formats/mod_ssml/test/test_tts_format
src/mod/*/*/test/*.log
src/mod/*/*/test/*.trs
src/mod/*/*/test/[0-9]*/*
test-suite.log
src/mod/applications/mod_av/test/test_BT7.mp4
src/mod/applications/mod_av/test/test_RGB.mp4
images/test-argb.png
images/test-rgb.png
images/test.png
images/test_patched.png
images/test_text.png

src/mod/codecs/mod_amrwb/test/test_amrwb
src/mod/endpoints/mod_sofia/test/sipp-based-tests
17 changes: 12 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ endif
lib_LTLIBRARIES = libfreeswitch.la
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(SQLITE_CFLAGS) $(GUMBO_CFLAGS) $(FVAD_CFLAGS) $(FREETYPE_CFLAGS) $(CURL_CFLAGS) $(PCRE_CFLAGS) $(SPEEX_CFLAGS) $(LIBEDIT_CFLAGS) $(openssl_CFLAGS) $(SOFIA_SIP_CFLAGS) $(AM_CFLAGS) $(TPL_CFLAGS)
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_LDFLAGS) -no-undefined
libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(SQLITE_LIBS) $(GUMBO_LIBS) $(FVAD_LIBS) $(FREETYPE_LIBS) $(CURL_LIBS) $(PCRE_LIBS) $(SPEEX_LIBS) $(LIBEDIT_LIBS) $(openssl_LIBS) $(PLATFORM_CORE_LIBS) $(TPL_LIBS) $(SPANDSP_LIBS) $(SOFIA_SIP_LIBS)
libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(SQLITE_LIBS) $(GUMBO_LIBS) $(FVAD_LIBS) $(FREETYPE_LIBS) $(CURL_LIBS) $(PCRE_LIBS) $(SPEEX_LIBS) $(LIBEDIT_LIBS) $(SYSTEMD_LIBS) $(openssl_LIBS) $(PLATFORM_CORE_LIBS) $(TPL_LIBS) $(SPANDSP_LIBS) $(SOFIA_SIP_LIBS)
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)

if HAVE_PNG
Expand Down Expand Up @@ -300,6 +300,7 @@ library_include_HEADERS = \
src/include/switch_dso.h \
src/include/switch_loadable_module.h \
src/include/switch_module_interfaces.h \
src/include/switch_packetizer.h \
src/include/switch_platform.h \
src/include/switch_resample.h \
src/include/switch_regex.h \
Expand Down Expand Up @@ -364,6 +365,7 @@ libfreeswitch_la_SOURCES = \
src/switch_version.c \
src/switch_core_media.c \
src/switch_core_video.c \
src/switch_packetizer.c \
src/switch_sdp.c \
src/switch_scheduler.c \
src/switch_core_db.c \
Expand Down Expand Up @@ -599,14 +601,15 @@ libs/apr/libapr-1.la: libs/apr/Makefile libs/apr/.update
libs/apr-util/libaprutil-1.la: libs/apr/libapr-1.la libs/apr-util libs/apr-util/.update
@if [ $(MAKELEVEL) = 0 -o -z "`echo "$(MAKEARGS)" | grep "j"`" ] ; then touch $(switch_srcdir)/src/include/switch.h; cd libs/apr-util && $(MAKE) $(MFLAGS) && touch libaprutil-1.la; fi

SRTP_SRC = libs/srtp/srtp/srtp.c libs/srtp/srtp/ekt.c libs/srtp/crypto/cipher/cipher.c libs/srtp/crypto/cipher/null_cipher.c \
SRTP_SRC = libs/srtp/srtp/srtp.c libs/srtp/crypto/cipher/cipher.c libs/srtp/crypto/cipher/null_cipher.c \
libs/srtp/crypto/cipher/aes.c libs/srtp/crypto/cipher/aes_icm.c \
libs/srtp/crypto/hash/null_auth.c libs/srtp/crypto/hash/sha1.c \
libs/srtp/crypto/hash/hmac.c libs/srtp/crypto/hash/auth.c \
libs/srtp/crypto/math/datatypes.c libs/srtp/crypto/math/stat.c \
libs/srtp/crypto/math/datatypes.c \
libs/srtp/crypto/kernel/crypto_kernel.c libs/srtp/crypto/kernel/alloc.c \
libs/srtp/crypto/kernel/key.c libs/srtp/crypto/kernel/err.c \
libs/srtp/crypto/replay/rdb.c libs/srtp/crypto/replay/rdbx.c libs/srtp/crypto/replay/ut_sim.c
libs/srtp/crypto/replay/rdb.c libs/srtp/crypto/replay/rdbx.c \
libs/srtp/crypto/cipher/cipher_test_cases.c libs/srtp/crypto/hash/auth_test_cases.c

libs/srtp/libsrtp.la: libs/srtp libs/srtp/.update $(SRTP_SRC)
touch $(switch_srcdir)/src/include/switch.h
Expand Down Expand Up @@ -741,7 +744,7 @@ pristine:
git clean -fdx
git reset --hard

update-clean: clean python-reconf
update-clean: clean python-reconf python3-reconf
cd libs/esl && $(MAKE) clean
cd libs/srtp && $(MAKE) clean

Expand All @@ -758,6 +761,10 @@ python-reconf:
rm -f src/mod/languages/mod_python/Makefile
./config.status

python3-reconf:
rm -f src/mod/languages/mod_python3/Makefile
./config.status

reconf:
rm config.cache
sh ./config.status --recheck
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BGJOB=false
VERBOSE=false
BASEDIR=`pwd`;
LIBDIR=${BASEDIR}/libs;
SUBDIRS="apr libzrtp iksemel libdingaling srtp freetdm unimrcp fs";
SUBDIRS="apr libzrtp iksemel libdingaling srtp unimrcp fs";

while getopts 'jhd:v' o; do
case "$o" in
Expand Down
4 changes: 4 additions & 0 deletions build/freeswitch.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ After=syslog.target network.target
After=postgresql.service postgresql-9.3.service postgresql-9.4.service mysqld.service httpd.service

[Service]
# You can use Type=notify only if you compile FreeSWITCH with --enable-systemd configure option
# In this case you have to run FreeSWITCH in foreground mode (-nf option)!
#Type=notify
#NotifyAccess=main
User=freeswitch
EnvironmentFile=-/etc/sysconfig/freeswitch
# RuntimeDirectory is not yet supported in CentOS 7. A workaround is to use /etc/tmpfiles.d/freeswitch.conf
Expand Down
4 changes: 2 additions & 2 deletions build/modcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ cd $here
for i in $files ; do
mod=${i%%.*}

infile=`grep ^.*$mod\$ ../modules.conf | grep -v ftmod_`
commented=`grep ^\#.*$mod\$ ../modules.conf | grep -v ftmod_`
infile=`grep -E "^.*$mod(\|.*)?$" ../modules.conf | grep -v ftmod_`
commented=`grep -E "^\#.*$mod(\|.*)?$" ../modules.conf | grep -v ftmod_`

if [ -z "$infile" ] ; then
echo "${on}WARNING: installed module: $i was not installed by this build. It is not present in modules.conf.${off}"
Expand Down
4 changes: 3 additions & 1 deletion build/modules.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ applications/mod_sms
applications/mod_spandsp
#applications/mod_spy
#applications/mod_stress
applications/mod_test
#applications/mod_translate
applications/mod_valet_parking
#applications/mod_video_filter
Expand Down Expand Up @@ -134,6 +135,7 @@ languages/mod_lua
#languages/mod_managed
#languages/mod_perl
#languages/mod_python
#languages/mod_python3
#languages/mod_v8
#languages/mod_yaml
loggers/mod_console
Expand Down Expand Up @@ -168,7 +170,7 @@ xml_int/mod_xml_cdr
xml_int/mod_xml_rpc
xml_int/mod_xml_scgi

#../../libs/freetdm/mod_freetdm
#mod_freetdm|https://github.com/freeswitch/freetdm.git -b master

## Experimental Modules (don't cry if they're broken)
#../../contrib/mod/xml_int/mod_xml_odbc
3 changes: 2 additions & 1 deletion build/modules.conf.most
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ applications/mod_soundtouch
applications/mod_spandsp
applications/mod_spy
applications/mod_stress
applications/mod_test
applications/mod_translate
applications/mod_valet_parking
applications/mod_video_filter
Expand Down Expand Up @@ -127,7 +128,7 @@ languages/mod_java
languages/mod_lua
languages/mod_managed
languages/mod_perl
languages/mod_python
languages/mod_python3
#languages/mod_v8
languages/mod_yaml
loggers/mod_console
Expand Down
2 changes: 1 addition & 1 deletion build/next-release.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.6-release
1.10.7-release
5 changes: 5 additions & 0 deletions build/swigall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ make swigclean
make mod_python_wrap.cpp
cd ../../../..

cd src/mod/languages/mod_python3
make swigclean
make mod_python_wrap.cpp
cd ../../../..

cd src/mod/languages/mod_java
make reswig
cd ../../../..
Expand Down
Binary file added conf/FreeMono.ttf
Binary file not shown.
2 changes: 1 addition & 1 deletion conf/curl/autoload_configs/timezones.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<zone name="America/Rosario" value="ART3ARST,M10.1.0/0,M3.3.0/0" />
<zone name="America/Santiago" value="CLST" />
<zone name="America/Santo_Domingo" value="AST4" />
<zone name="America/Sao_Paulo" value="BRT3BRST,M10.2.0/0,M2.3.0/0" />
<zone name="America/Sao_Paulo" value="BRT3" />
<zone name="America/Scoresbysund" value="EGT1EGST,M3.5.0/0,M10.5.0/1" />
<zone name="America/Shiprock" value="MST7MDT,M3.2.0,M11.1.0" />
<zone name="America/St_Barthelemy" value="AST4" />
Expand Down
1 change: 1 addition & 0 deletions conf/insideout/autoload_configs/modules.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
<load module="mod_v8"/>
<!-- <load module="mod_perl"/> -->
<!-- <load module="mod_python"/> -->
<!-- <load module="mod_python3"/> -->
<!-- <load module="mod_java"/> -->
<load module="mod_lua"/>

Expand Down
2 changes: 1 addition & 1 deletion conf/insideout/autoload_configs/timezones.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<zone name="America/Rosario" value="ART3ARST,M10.1.0/0,M3.3.0/0" />
<zone name="America/Santiago" value="CLST" />
<zone name="America/Santo_Domingo" value="AST4" />
<zone name="America/Sao_Paulo" value="BRT3BRST,M10.2.0/0,M2.3.0/0" />
<zone name="America/Sao_Paulo" value="BRT3" />
<zone name="America/Scoresbysund" value="EGT1EGST,M3.5.0/0,M10.5.0/1" />
<zone name="America/Shiprock" value="MST7MDT,M3.2.0,M11.1.0" />
<zone name="America/St_Barthelemy" value="AST4" />
Expand Down
2 changes: 1 addition & 1 deletion conf/minimal/autoload_configs/timezones.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
<zone name="America/Santarem" value="BRT3" />
<zone name="America/Santiago" value="CLST" />
<zone name="America/Santo_Domingo" value="AST4" />
<zone name="America/Sao_Paulo" value="BRT3BRST,M10.3.0/0,M2.3.0/0" />
<zone name="America/Sao_Paulo" value="BRT3" />
<zone name="America/Scoresbysund" value="EGT1EGST,M3.5.0/0,M10.5.0/1" />
<zone name="America/Shiprock" value="MST7MDT,M3.2.0,M11.1.0" />
<zone name="America/Sitka" value="AKST9AKDT,M3.2.0,M11.1.0" />
Expand Down
2 changes: 1 addition & 1 deletion conf/rayo/autoload_configs/timezones.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<zone name="America/Rosario" value="ART3ARST,M10.1.0/0,M3.3.0/0" />
<zone name="America/Santiago" value="CLST" />
<zone name="America/Santo_Domingo" value="AST4" />
<zone name="America/Sao_Paulo" value="BRT3BRST,M10.2.0/0,M2.3.0/0" />
<zone name="America/Sao_Paulo" value="BRT3" />
<zone name="America/Scoresbysund" value="EGT1EGST,M3.5.0/0,M10.5.0/1" />
<zone name="America/Shiprock" value="MST7MDT,M3.2.0,M11.1.0" />
<zone name="America/St_Barthelemy" value="AST4" />
Expand Down
2 changes: 1 addition & 1 deletion conf/sbc/autoload_configs/timezones.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<zone name="America/Rosario" value="ART3ARST,M10.1.0/0,M3.3.0/0" />
<zone name="America/Santiago" value="CLST" />
<zone name="America/Santo_Domingo" value="AST4" />
<zone name="America/Sao_Paulo" value="BRT3BRST,M10.2.0/0,M2.3.0/0" />
<zone name="America/Sao_Paulo" value="BRT3" />
<zone name="America/Scoresbysund" value="EGT1EGST,M3.5.0/0,M10.5.0/1" />
<zone name="America/Shiprock" value="MST7MDT,M3.2.0,M11.1.0" />
<zone name="America/St_Barthelemy" value="AST4" />
Expand Down
2 changes: 2 additions & 0 deletions conf/testing/autoload_configs/amrwb.conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
<param name="adjust-bitrate" value="0"/>
<!-- force OA when originating -->
<param name="force-oa" value="0"/>
<!-- don't mirror mode-set in SDP answer, but use our own (default-bitrate). -->
<param name="mode-set-overwrite" value="0"/>
</settings>
</configuration>
Loading

0 comments on commit 883d2cb

Please sign in to comment.