update packer scripts to build debian buster, update feature server ami to latest freeswitch 0 v1.10.5+open source modules

This commit is contained in:
Dave Horton
2021-02-01 07:59:11 -05:00
parent 9509035bc2
commit 29a47eaada
24 changed files with 3521 additions and 1011 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ There are many variables that can be specified on the `packer build` command lin
The region to create the AMI in
```
"ami_description": "EC2 AMI jambonz mini"
"ami_description": "jambonz feature server"
```
AMI description.
File diff suppressed because it is too large Load Diff
@@ -1,175 +0,0 @@
--- Makefile.am 2019-10-31 16:15:52.546094477 +0000
+++ Makefile.am.new 2019-10-31 16:19:06.355020970 +0000
@@ -188,6 +188,12 @@
LWS_LIBS += -lwebsockets
endif
+# DH: GRPC
+if HAVE_GRPC
+CORE_CFLAGS += -DSWITCH_HAVE_GRPC $(GRPC_CFLAGS)
+GRPC_LIBS += -lgrpc++_reflection -lprotobuf
+endif
+
##
## libfreeswitch
##
@@ -255,10 +261,158 @@
CORE_LIBS+=libfreeswitch_libyuv.la
endif
+if HAVE_GRPC
+GOOGLEAPIS_GENS_PATH = libs/googleapis/gens
+GOOGLEAPIS_LOGGING_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/logging -name '*.pb.cc')
+GOOGLEAPIS_API_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/api -name '*.pb.cc')
+GOOGLEAPIS_RPC_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/rpc -name '*.pb.cc')
+GOOGLEAPIS_SPEECH_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/cloud/speech -name '*.pb.cc')
+GOOGLEAPIS_LONGRUNNING_CCS = $(shell find $(GOOGLEAPIS_GENS_PATH)/google/longrunning -name '*.pb.cc')
+GOOGLEAPIS_CCS = $(GOOGLEAPIS_API_CCS) $(GOOGLEAPIS_RPC_CCS) $(GOOGLEAPIS_LONGRUNNING_CCS) $(GOOGLEAPIS_SPEECH_CCS)
+
+nodist_libfreeswitch_libgoogleapis_la_SOURCES = \
+libs/googleapis/gens/google/api/monitoring.grpc.pb.cc \
+libs/googleapis/gens/google/api/annotations.grpc.pb.cc \
+libs/googleapis/gens/google/api/http.pb.cc \
+libs/googleapis/gens/google/api/quota.pb.cc \
+libs/googleapis/gens/google/api/quota.grpc.pb.cc \
+libs/googleapis/gens/google/api/backend.grpc.pb.cc \
+libs/googleapis/gens/google/api/service.grpc.pb.cc \
+libs/googleapis/gens/google/api/monitored_resource.pb.cc \
+libs/googleapis/gens/google/api/consumer.pb.cc \
+libs/googleapis/gens/google/api/annotations.pb.cc \
+libs/googleapis/gens/google/api/metric.pb.cc \
+libs/googleapis/gens/google/api/logging.pb.cc \
+libs/googleapis/gens/google/api/auth.grpc.pb.cc \
+libs/googleapis/gens/google/api/distribution.grpc.pb.cc \
+libs/googleapis/gens/google/api/label.grpc.pb.cc \
+libs/googleapis/gens/google/api/launch_stage.grpc.pb.cc \
+libs/googleapis/gens/google/api/launch_stage.pb.cc \
+libs/googleapis/gens/google/api/httpbody.grpc.pb.cc \
+libs/googleapis/gens/google/api/config_change.grpc.pb.cc \
+libs/googleapis/gens/google/api/logging.grpc.pb.cc \
+libs/googleapis/gens/google/api/context.pb.cc \
+libs/googleapis/gens/google/api/system_parameter.pb.cc \
+libs/googleapis/gens/google/api/distribution.pb.cc \
+libs/googleapis/gens/google/api/control.pb.cc \
+libs/googleapis/gens/google/api/consumer.grpc.pb.cc \
+libs/googleapis/gens/google/api/label.pb.cc \
+libs/googleapis/gens/google/api/documentation.pb.cc \
+libs/googleapis/gens/google/api/log.pb.cc \
+libs/googleapis/gens/google/api/usage.grpc.pb.cc \
+libs/googleapis/gens/google/api/backend.pb.cc \
+libs/googleapis/gens/google/api/control.grpc.pb.cc \
+libs/googleapis/gens/google/api/log.grpc.pb.cc \
+libs/googleapis/gens/google/api/source_info.grpc.pb.cc \
+libs/googleapis/gens/google/api/billing.pb.cc \
+libs/googleapis/gens/google/api/auth.pb.cc \
+libs/googleapis/gens/google/api/resource.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/service_controller.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/check_error.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/check_error.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/distribution.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/quota_controller.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/metric_value.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/distribution.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/log_entry.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/service_controller.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/metric_value.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/log_entry.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/operation.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/quota_controller.pb.cc \
+libs/googleapis/gens/google/api/servicecontrol/v1/operation.pb.cc \
+libs/googleapis/gens/google/api/metric.grpc.pb.cc \
+libs/googleapis/gens/google/api/monitored_resource.grpc.pb.cc \
+libs/googleapis/gens/google/api/http.grpc.pb.cc \
+libs/googleapis/gens/google/api/httpbody.pb.cc \
+libs/googleapis/gens/google/api/endpoint.pb.cc \
+libs/googleapis/gens/google/api/documentation.grpc.pb.cc \
+libs/googleapis/gens/google/api/system_parameter.grpc.pb.cc \
+libs/googleapis/gens/google/api/endpoint.grpc.pb.cc \
+libs/googleapis/gens/google/api/service.pb.cc \
+libs/googleapis/gens/google/api/source_info.pb.cc \
+libs/googleapis/gens/google/api/servicemanagement/v1/resources.grpc.pb.cc \
+libs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.pb.cc \
+libs/googleapis/gens/google/api/servicemanagement/v1/resources.pb.cc \
+libs/googleapis/gens/google/api/servicemanagement/v1/servicemanager.grpc.pb.cc \
+libs/googleapis/gens/google/api/billing.grpc.pb.cc \
+libs/googleapis/gens/google/api/usage.pb.cc \
+libs/googleapis/gens/google/api/config_change.pb.cc \
+libs/googleapis/gens/google/api/context.grpc.pb.cc \
+libs/googleapis/gens/google/api/monitoring.pb.cc \
+libs/googleapis/gens/google/api/field_behavior.pb.cc \
+libs/googleapis/gens/google/api/client.pb.cc \
+libs/googleapis/gens/google/rpc/error_details.grpc.pb.cc \
+libs/googleapis/gens/google/rpc/code.pb.cc \
+libs/googleapis/gens/google/rpc/status.pb.cc \
+libs/googleapis/gens/google/rpc/status.grpc.pb.cc \
+libs/googleapis/gens/google/rpc/error_details.pb.cc \
+libs/googleapis/gens/google/rpc/code.grpc.pb.cc \
+libs/googleapis/gens/google/longrunning/operations.grpc.pb.cc \
+libs/googleapis/gens/google/longrunning/operations.pb.cc \
+libs/googleapis/gens/google/cloud/speech/v1/cloud_speech.pb.cc \
+libs/googleapis/gens/google/cloud/speech/v1/cloud_speech.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/texttospeech/v1/cloud_tts.pb.cc \
+libs/googleapis/gens/google/cloud/texttospeech/v1/cloud_tts.grpc.pb.cc \
+libs/googleapis/gens/google/logging/type/http_request.grpc.pb.cc \
+libs/googleapis/gens/google/logging/type/log_severity.grpc.pb.cc \
+libs/googleapis/gens/google/logging/type/log_severity.pb.cc \
+libs/googleapis/gens/google/logging/type/http_request.pb.cc \
+libs/googleapis/gens/google/logging/v2/logging.pb.cc \
+libs/googleapis/gens/google/logging/v2/logging_metrics.pb.cc \
+libs/googleapis/gens/google/logging/v2/logging.grpc.pb.cc \
+libs/googleapis/gens/google/logging/v2/log_entry.pb.cc \
+libs/googleapis/gens/google/logging/v2/logging_config.grpc.pb.cc \
+libs/googleapis/gens/google/logging/v2/logging_config.pb.cc \
+libs/googleapis/gens/google/logging/v2/log_entry.grpc.pb.cc \
+libs/googleapis/gens/google/logging/v2/logging_metrics.grpc.pb.cc \
+libs/googleapis/gens/google/type/date.grpc.pb.cc \
+libs/googleapis/gens/google/type/timeofday.pb.cc \
+libs/googleapis/gens/google/type/latlng.grpc.pb.cc \
+libs/googleapis/gens/google/type/money.pb.cc \
+libs/googleapis/gens/google/type/date.pb.cc \
+libs/googleapis/gens/google/type/postal_address.grpc.pb.cc \
+libs/googleapis/gens/google/type/dayofweek.grpc.pb.cc \
+libs/googleapis/gens/google/type/dayofweek.pb.cc \
+libs/googleapis/gens/google/type/timeofday.grpc.pb.cc \
+libs/googleapis/gens/google/type/color.pb.cc \
+libs/googleapis/gens/google/type/postal_address.pb.cc \
+libs/googleapis/gens/google/type/latlng.pb.cc \
+libs/googleapis/gens/google/type/color.grpc.pb.cc \
+libs/googleapis/gens/google/type/money.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/gcs.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/validation_result.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/agent.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/agent.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/audio_config.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/audio_config.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/context.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/context.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/document.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/document.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/entity_type.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/entity_type.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/intent.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/intent.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/knowledge_base.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/knowledge_base.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/session_entity_type.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/session_entity_type.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/session.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/session.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/webhook.grpc.pb.cc \
+libs/googleapis/gens/google/cloud/dialogflow/v2beta1/webhook.pb.cc
+
+libfreeswitch_libgoogleapis_la_CPPFLAGS = -I/usr/local/include -I$(GOOGLEAPIS_GENS_PATH) -std=c++11 -pthread
+
+CORE_LIBS+=libfreeswitch_libgoogleapis.la
+noinst_LTLIBRARIES += libfreeswitch_libgoogleapis.la
+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) $(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) $(LWS_LIBS) $(SQLITE_LIBS) $(GUMBO_LIBS) $(FVAD_LIBS) $(FREETYPE_LIBS) $(CURL_LIBS) $(PCRE_LIBS) $(SPEEX_LIBS) $(LIBEDIT_LIBS) $(openssl_LIBS) $(PLATFORM_CORE_LIBS) $(TPL_LIBS)
+libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(LWS_LIBS) $(SQLITE_LIBS) $(GUMBO_LIBS) $(FVAD_LIBS) $(FREETYPE_LIBS) $(CURL_LIBS) $(PCRE_LIBS) $(SPEEX_LIBS) $(LIBEDIT_LIBS) $(openssl_LIBS) $(GRPC_LIBS) $(PLATFORM_CORE_LIBS) $(TPL_LIBS)
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
if HAVE_PNG
@@ -1,24 +0,0 @@
--- Makefile.am 2019-09-30 19:01:33.268018459 +0000
+++ Makefile.am.new 2019-09-30 23:04:33.949177848 +0000
@@ -182,6 +182,12 @@
CORE_CFLAGS += -DSWITCH_HAVE_FVAD $(LIBFVAD_CFLAGS)
endif
+# DH: LWS
+if HAVE_LWS
+CORE_CFLAGS += -DSWITCH_HAVE_LWS $(LWS_CFLAGS)
+LWS_LIBS += -lwebsockets
+endif
+
##
## libfreeswitch
##
@@ -252,7 +258,7 @@
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) $(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)
+libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(LWS_LIBS) $(SQLITE_LIBS) $(GUMBO_LIBS) $(FVAD_LIBS) $(FREETYPE_LIBS) $(CURL_LIBS) $(PCRE_LIBS) $(SPEEX_LIBS) $(LIBEDIT_LIBS) $(openssl_LIBS) $(PLATFORM_CORE_LIBS) $(TPL_LIBS)
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
if HAVE_PNG
File diff suppressed because it is too large Load Diff
@@ -1,33 +0,0 @@
--- configure.ac 2019-10-22 22:47:40.566582350 +0000
+++ configure.ac.new 2019-10-23 14:56:29.469206772 +0000
@@ -1563,6 +1563,20 @@
AM_CONDITIONAL([HAVE_LWS],[false])
fi
++dnl DH: Added for including google protobuf libs
++AC_ARG_WITH(grpc,
+ [AS_HELP_STRING([--with-grpc],
+ [enable support for google rpc (libgrpc++ and libgrpc)])],
+ [with_grpc="$withval"],
+ [with_grpc="no"])
+if test "$with_grpc" = "yes"; then
+ PKG_CHECK_MODULES([GRPC], [grpc++ grpc], [
+ AM_CONDITIONAL([HAVE_GRPC],[true])], [
+ AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_GRPC],[false])])
+else
+ AM_CONDITIONAL([HAVE_GRPC],[false])
+fi
+
dnl ---------------------------------------------------------------------------
dnl - OpenLDAP SDK
dnl ---------------------------------------------------------------------------
@@ -1858,6 +1872,9 @@
src/Makefile
src/mod/Makefile
src/mod/applications/mod_audio_fork/Makefile
+ src/mod/applications/mod_google_tts/Makefile
+ src/mod/applications/mod_google_transcribe/Makefile
+ src/mod/applications/mod_dialogflow/Makefile
src/mod/applications/mod_abstraction/Makefile
src/mod/applications/mod_avmd/Makefile
src/mod/applications/mod_bert/Makefile
@@ -1,40 +0,0 @@
--- configure.ac 2019-09-30 19:01:33.308021065 +0000
+++ configure.ac.new 2019-09-30 23:00:53.730843843 +0000
@@ -13,7 +13,7 @@
AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])
AC_CONFIG_AUX_DIR(build/config)
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([subdir-objects])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([src/switch.c])
AC_CONFIG_HEADER([src/include/switch_private.h])
@@ -1549,6 +1549,20 @@
AC_MSG_ERROR([You need to either install libedit-dev (>= 2.11) or configure with --disable-core-libedit-support])
])])])
+dnl DH: Added for including libwebsockets
+AC_ARG_WITH(lws,
+ [AS_HELP_STRING([--with-lws],
+ [enable support for libwebsockets])],
+ [with_lws="$withval"],
+ [with_lws="no"])
+if test "$with_lws" = "yes"; then
+ PKG_CHECK_MODULES([LWS], [libwebsockets], [
+ AM_CONDITIONAL([HAVE_LWS],[true])], [
+ AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_LWS],[false])])
+else
+ AM_CONDITIONAL([HAVE_LWS],[false])
+fi
+
dnl ---------------------------------------------------------------------------
dnl - OpenLDAP SDK
dnl ---------------------------------------------------------------------------
@@ -1843,6 +1857,7 @@
tests/unit/Makefile
src/Makefile
src/mod/Makefile
+ src/mod/applications/mod_audio_fork/Makefile
src/mod/applications/mod_abstraction/Makefile
src/mod/applications/mod_avmd/Makefile
src/mod/applications/mod_bert/Makefile
@@ -0,0 +1,180 @@
applications/mod_audio_fork
applications/mod_aws_lex
applications/mod_aws_transcribe
applications/mod_google_tts
applications/mod_google_transcribe
applications/mod_dialogflow
#applications/mod_abstraction
#applications/mod_av
#applications/mod_avmd
#applications/mod_bert
#applications/mod_blacklist
#applications/mod_callcenter
#applications/mod_cidlookup
#applications/mod_cluechoo
applications/mod_commands
applications/mod_conference
#applications/mod_curl
#applications/mod_cv
#applications/mod_db
#applications/mod_directory
#applications/mod_distributor
applications/mod_dptools
#applications/mod_easyroute
#applications/mod_enum
#applications/mod_esf
#applications/mod_esl
#applications/mod_expr
#applications/mod_fifo
#applications/mod_fsk
#applications/mod_fsv
#applications/mod_hash
#applications/mod_hiredis
applications/mod_httapi
#applications/mod_http_cache
#applications/mod_ladspa
#applications/mod_lcr
#applications/mod_memcache
#applications/mod_mongo
#applications/mod_mp4
#applications/mod_mp4v2
#applications/mod_nibblebill
#applications/mod_oreka
#applications/mod_osp
#applications/mod_prefix
#applications/mod_rad_auth
#applications/mod_redis
#applications/mod_rss
#applications/mod_signalwire
#applications/mod_sms
#applications/mod_sms_flowroute
#applications/mod_snapshot
#applications/mod_snom
#applications/mod_sonar
#applications/mod_soundtouch
applications/mod_spandsp
#applications/mod_spy
#applications/mod_stress
#applications/mod_translate
#applications/mod_valet_parking
#applications/mod_video_filter
#applications/mod_vmd
#applications/mod_voicemail
#applications/mod_voicemail_ivr
#asr_tts/mod_cepstral
#asr_tts/mod_flite
#asr_tts/mod_pocketsphinx
#asr_tts/mod_tts_commandline
#asr_tts/mod_unimrcp
codecs/mod_amr
#codecs/mod_amrwb
#codecs/mod_b64
#codecs/mod_bv
#codecs/mod_clearmode
#codecs/mod_codec2
#codecs/mod_com_g729
#codecs/mod_dahdi_codec
codecs/mod_g723_1
codecs/mod_g729
codecs/mod_h26x
#codecs/mod_ilbc
#codecs/mod_isac
#codecs/mod_mp4v
codecs/mod_opus
#codecs/mod_sangoma_codec
#codecs/mod_silk
#codecs/mod_siren
#codecs/mod_theora
#databases/mod_mariadb
#databases/mod_pgsql
#dialplans/mod_dialplan_asterisk
#dialplans/mod_dialplan_directory
dialplans/mod_dialplan_xml
#directories/mod_ldap
#endpoints/mod_alsa
#endpoints/mod_dingaling
#endpoints/mod_gsmopen
#endpoints/mod_h323
#endpoints/mod_khomp
#endpoints/mod_loopback
#endpoints/mod_opal
#endpoints/mod_portaudio
endpoints/mod_rtc
#endpoints/mod_rtmp
#endpoints/mod_skinny
endpoints/mod_sofia
#endpoints/mod_verto
#event_handlers/mod_amqp
event_handlers/mod_cdr_csv
#event_handlers/mod_cdr_mongodb
#event_handlers/mod_cdr_pg_csv
#event_handlers/mod_cdr_sqlite
#event_handlers/mod_erlang_event
#event_handlers/mod_event_multicast
event_handlers/mod_event_socket
#event_handlers/mod_fail2ban
#event_handlers/mod_format_cdr
#event_handlers/mod_json_cdr
#event_handlers/mod_radius_cdr
#event_handlers/mod_odbc_cdr
#event_handlers/mod_kazoo
#event_handlers/mod_rayo
#event_handlers/mod_smpp
#event_handlers/mod_snmp
#event_handlers/mod_event_zmq
#formats/mod_imagick
formats/mod_local_stream
formats/mod_native_file
#formats/mod_png
#formats/mod_portaudio_stream
#formats/mod_shell_stream
formats/mod_shout
formats/mod_sndfile
#formats/mod_ssml
formats/mod_tone_stream
#formats/mod_vlc
formats/mod_opusfile
#languages/mod_basic
#languages/mod_java
#languages/mod_lua
#languages/mod_managed
#languages/mod_perl
#languages/mod_python
#languages/mod_v8
#languages/mod_yaml
loggers/mod_console
#loggers/mod_graylog2
loggers/mod_logfile
loggers/mod_syslog
#loggers/mod_raven
#say/mod_say_de
say/mod_say_en
#say/mod_say_es
#say/mod_say_es_ar
#say/mod_say_fa
#say/mod_say_fr
#say/mod_say_he
#say/mod_say_hr
#say/mod_say_hu
#say/mod_say_it
#say/mod_say_ja
#say/mod_say_nl
#say/mod_say_pl
#say/mod_say_pt
#say/mod_say_ru
#say/mod_say_sv
#say/mod_say_th
#say/mod_say_zh
#timers/mod_posix_timer
#timers/mod_timerfd
xml_int/mod_xml_cdr
#xml_int/mod_xml_curl
#xml_int/mod_xml_ldap
#xml_int/mod_xml_radius
#xml_int/mod_xml_rpc
#xml_int/mod_xml_scgi
#../../libs/freetdm/mod_freetdm
## Experimental Modules (don't cry if they're broken)
#../../contrib/mod/xml_int/mod_xml_odbc
@@ -1,10 +0,0 @@
--- modules.conf.in 2019-10-23 15:09:23.114079884 +0000
+++ modules.conf.in.new 2019-10-23 15:10:08.330364591 +0000
@@ -1,4 +1,7 @@
applications/mod_audio_fork
+applications/mod_google_tts
+applications/mod_google_transcribe
+applications/mod_dialogflow
#applications/mod_abstraction
applications/mod_av
#applications/mod_avmd
@@ -1,139 +0,0 @@
--- modules.conf.in 2019-09-25 08:55:34.000000000 -0400
+++ modules.conf.in.new 2020-01-02 10:36:07.000000000 -0500
@@ -1,5 +1,6 @@
+applications/mod_audio_fork
#applications/mod_abstraction
-applications/mod_av
+#applications/mod_av
#applications/mod_avmd
#applications/mod_bert
#applications/mod_blacklist
@@ -10,19 +11,19 @@
applications/mod_conference
#applications/mod_curl
#applications/mod_cv
-applications/mod_db
+#applications/mod_db
#applications/mod_directory
#applications/mod_distributor
applications/mod_dptools
#applications/mod_easyroute
-applications/mod_enum
-applications/mod_esf
+#applications/mod_enum
+#applications/mod_esf
#applications/mod_esl
-applications/mod_expr
-applications/mod_fifo
+#applications/mod_expr
+#applications/mod_fifo
#applications/mod_fsk
-applications/mod_fsv
-applications/mod_hash
+#applications/mod_fsv
+#applications/mod_hash
#applications/mod_hiredis
applications/mod_httapi
#applications/mod_http_cache
@@ -39,8 +40,8 @@
#applications/mod_rad_auth
#applications/mod_redis
#applications/mod_rss
-applications/mod_signalwire
-applications/mod_sms
+#applications/mod_signalwire
+#applications/mod_sms
#applications/mod_sms_flowroute
#applications/mod_snapshot
#applications/mod_snom
@@ -50,10 +51,10 @@
#applications/mod_spy
#applications/mod_stress
#applications/mod_translate
-applications/mod_valet_parking
+#applications/mod_valet_parking
#applications/mod_video_filter
#applications/mod_vmd
-applications/mod_voicemail
+#applications/mod_voicemail
#applications/mod_voicemail_ivr
#asr_tts/mod_cepstral
#asr_tts/mod_flite
@@ -62,7 +63,7 @@
#asr_tts/mod_unimrcp
codecs/mod_amr
#codecs/mod_amrwb
-codecs/mod_b64
+#codecs/mod_b64
#codecs/mod_bv
#codecs/mod_clearmode
#codecs/mod_codec2
@@ -80,8 +81,8 @@
#codecs/mod_siren
#codecs/mod_theora
#databases/mod_mariadb
-databases/mod_pgsql
-dialplans/mod_dialplan_asterisk
+#databases/mod_pgsql
+#dialplans/mod_dialplan_asterisk
#dialplans/mod_dialplan_directory
dialplans/mod_dialplan_xml
#directories/mod_ldap
@@ -90,19 +91,19 @@
#endpoints/mod_gsmopen
#endpoints/mod_h323
#endpoints/mod_khomp
-endpoints/mod_loopback
+#endpoints/mod_loopback
#endpoints/mod_opal
#endpoints/mod_portaudio
endpoints/mod_rtc
#endpoints/mod_rtmp
-endpoints/mod_skinny
+#endpoints/mod_skinny
endpoints/mod_sofia
-endpoints/mod_verto
+#endpoints/mod_verto
#event_handlers/mod_amqp
event_handlers/mod_cdr_csv
#event_handlers/mod_cdr_mongodb
#event_handlers/mod_cdr_pg_csv
-event_handlers/mod_cdr_sqlite
+#event_handlers/mod_cdr_sqlite
#event_handlers/mod_erlang_event
#event_handlers/mod_event_multicast
event_handlers/mod_event_socket
@@ -119,18 +120,18 @@
#formats/mod_imagick
formats/mod_local_stream
formats/mod_native_file
-formats/mod_png
+#formats/mod_png
#formats/mod_portaudio_stream
#formats/mod_shell_stream
-#formats/mod_shout
+formats/mod_shout
formats/mod_sndfile
#formats/mod_ssml
formats/mod_tone_stream
#formats/mod_vlc
-#formats/mod_opusfile
+formats/mod_opusfile
#languages/mod_basic
#languages/mod_java
-languages/mod_lua
+#languages/mod_lua
#languages/mod_managed
#languages/mod_perl
#languages/mod_python
@@ -165,8 +166,8 @@
#xml_int/mod_xml_curl
#xml_int/mod_xml_ldap
#xml_int/mod_xml_radius
-xml_int/mod_xml_rpc
-xml_int/mod_xml_scgi
+#xml_int/mod_xml_rpc
+#xml_int/mod_xml_scgi
#../../libs/freetdm/mod_freetdm
@@ -1,118 +0,0 @@
--- modules.conf 2017-04-25 18:44:46.772490196 +0000
+++ modules.conf.new 2017-04-25 18:47:05.967886830 +0000
@@ -10,19 +10,19 @@
applications/mod_conference
#applications/mod_curl
#applications/mod_cv
-applications/mod_db
+#applications/mod_db
#applications/mod_directory
#applications/mod_distributor
applications/mod_dptools
#applications/mod_easyroute
-applications/mod_enum
-applications/mod_esf
+#applications/mod_enum
+#applications/mod_esf
#applications/mod_esl
applications/mod_expr
-applications/mod_fifo
+#applications/mod_fifo
#applications/mod_fsk
-applications/mod_fsv
-applications/mod_hash
+#applications/mod_fsv
+#applications/mod_hash
#applications/mod_hiredis
applications/mod_httapi
#applications/mod_http_cache
@@ -39,19 +39,19 @@
#applications/mod_rad_auth
#applications/mod_redis
#applications/mod_rss
-applications/mod_sms
+#applications/mod_sms
#applications/mod_sms_flowroute
#applications/mod_snapshot
#applications/mod_snom
#applications/mod_sonar
#applications/mod_soundtouch
-applications/mod_spandsp
+#applications/mod_spandsp
#applications/mod_spy
#applications/mod_stress
#applications/mod_translate
-applications/mod_valet_parking
+#applications/mod_valet_parking
#applications/mod_vmd
-applications/mod_voicemail
+#applications/mod_voicemail
#applications/mod_voicemail_ivr
#asr_tts/mod_cepstral
#asr_tts/mod_flite
@@ -67,7 +67,7 @@
#codecs/mod_com_g729
#codecs/mod_dahdi_codec
codecs/mod_g723_1
-codecs/mod_g729
+#codecs/mod_g729
codecs/mod_h26x
#codecs/mod_ilbc
#codecs/mod_isac
@@ -77,7 +77,7 @@
#codecs/mod_silk
#codecs/mod_siren
#codecs/mod_theora
-dialplans/mod_dialplan_asterisk
+#dialplans/mod_dialplan_asterisk
#dialplans/mod_dialplan_directory
dialplans/mod_dialplan_xml
#directories/mod_ldap
@@ -89,17 +89,17 @@
endpoints/mod_loopback
#endpoints/mod_opal
#endpoints/mod_portaudio
-endpoints/mod_rtc
+#endpoints/mod_rtc
#endpoints/mod_rtmp
-endpoints/mod_skinny
+#endpoints/mod_skinny
#endpoints/mod_skypopen
endpoints/mod_sofia
-endpoints/mod_verto
+#endpoints/mod_verto
#event_handlers/mod_amqp
-event_handlers/mod_cdr_csv
+#event_handlers/mod_cdr_csv
#event_handlers/mod_cdr_mongodb
#event_handlers/mod_cdr_pg_csv
-event_handlers/mod_cdr_sqlite
+#event_handlers/mod_cdr_sqlite
#event_handlers/mod_erlang_event
#event_handlers/mod_event_multicast
event_handlers/mod_event_socket
@@ -125,7 +125,7 @@
#formats/mod_vlc
#languages/mod_basic
#languages/mod_java
-languages/mod_lua
+#languages/mod_lua
#languages/mod_managed
#languages/mod_perl
#languages/mod_python
@@ -155,12 +155,12 @@
#say/mod_say_zh
#timers/mod_posix_timer
#timers/mod_timerfd
-xml_int/mod_xml_cdr
+#xml_int/mod_xml_cdr
#xml_int/mod_xml_curl
#xml_int/mod_xml_ldap
#xml_int/mod_xml_radius
-xml_int/mod_xml_rpc
-xml_int/mod_xml_scgi
+#xml_int/mod_xml_rpc
+#xml_int/mod_xml_scgi
#../../libs/freetdm/mod_freetdm
@@ -1,6 +1,8 @@
<configuration name="modules.conf" description="Modules">
<modules>
<load module="mod_audio_fork"/>
<load module="mod_aws_lex"/>
<load module="mod_aws_transcribe"/>
<load module="mod_google_transcribe"/>
<load module="mod_google_tts"/>
<load module="mod_dialogflow"/>
@@ -1,12 +0,0 @@
--- modules.conf.xml 2019-05-15 21:08:29.049449029 +0000
+++ modules.conf.xml.new 2019-05-15 22:05:00.303623468 +0000
@@ -7,6 +7,9 @@
<!-- <load module="mod_syslog"/> -->
<load module="mod_audio_fork"/>
+ <load module="mod_google_transcribe"/>
+ <load module="mod_google_tts"/>
+ <load module="mod_dialogflow"/>
<!--<load module="mod_yaml"/>-->
<!-- Multi-Faceted -->
@@ -1,147 +0,0 @@
<configuration name="modules.conf" description="Modules">
<modules>
<load module="mod_audio_fork"/>
<!-- Loggers (I'd load these first) -->
<load module="mod_console"/>
<!-- <load module="mod_graylog2"/> -->
<load module="mod_logfile"/>
<!-- <load module="mod_syslog"/> -->
<!--<load module="mod_yaml"/>-->
<!-- Multi-Faceted -->
<!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
<!-- <load module="mod_enum"/> -->
<!-- XML Interfaces -->
<!-- <load module="mod_xml_rpc"/> -->
<!-- <load module="mod_xml_curl"/> -->
<!-- <load module="mod_xml_cdr"/> -->
<!-- <load module="mod_xml_radius"/> -->
<!-- <load module="mod_xml_scgi"/> -->
<!-- Event Handlers -->
<!-- <load module="mod_amqp"/> -->
<load module="mod_cdr_csv"/>
<!-- <load module="mod_cdr_sqlite"/> -->
<!-- <load module="mod_event_multicast"/> -->
<load module="mod_event_socket"/>
<!-- <load module="mod_event_zmq"/> -->
<!-- <load module="mod_zeroconf"/> -->
<!-- <load module="mod_erlang_event"/> -->
<!-- <load module="mod_smpp"/> -->
<!-- <load module="mod_snmp"/> -->
<!-- Directory Interfaces -->
<!-- <load module="mod_ldap"/> -->
<!-- Endpoints -->
<!-- <load module="mod_dingaling"/> -->
<!-- <load module="mod_portaudio"/> -->
<!-- <load module="mod_alsa"/> -->
<load module="mod_sofia"/>
<!-- <load module="mod_loopback"/> -->
<!-- <load module="mod_woomera"/> -->
<!-- <load module="mod_freetdm"/> -->
<!-- <load module="mod_unicall"/> -->
<!-- <load module="mod_skinny"/> -->
<!-- <load module="mod_khomp"/> -->
<!-- <load module="mod_rtc"/> -->
<!-- <load module="mod_rtmp"/> -->
<!-- <load module="mod_verto"/> -->
<!-- Applications -->
<!-- <load module="mod_signalwire"/> -->
<load module="mod_commands"/>
<load module="mod_conference"/>
<!-- <load module="mod_curl"/> -->
<load module="mod_db"/>
<load module="mod_dptools"/>
<!-- <load module="mod_expr"/> -->
<!-- <load module="mod_fifo"/> -->
<!-- <load module="mod_hash"/> -->
<!--<load module="mod_mongo"/> -->
<!-- <load module="mod_voicemail"/> -->
<!--<load module="mod_directory"/>-->
<!--<load module="mod_distributor"/>-->
<!--<load module="mod_lcr"/>-->
<!--<load module="mod_easyroute"/>-->
<!-- <load module="mod_esf"/> -->
<!-- <load module="mod_fsv"/> -->
<!--<load module="mod_cluechoo"/>-->
<!-- <load module="mod_valet_parking"/> -->
<!--<load module="mod_fsk"/>-->
<!--<load module="mod_spy"/>-->
<!--<load module="mod_sms"/>-->
<!--<load module="mod_sms_flowroute"/>-->
<!--<load module="mod_smpp"/>-->
<!--<load module="mod_random"/>-->
<load module="mod_httapi"/>
<!--<load module="mod_translate"/>-->
<!-- SNOM Module -->
<!--<load module="mod_snom"/>-->
<!-- This one only works on Linux for now -->
<!--<load module="mod_ladspa"/>-->
<!-- Dialplan Interfaces -->
<!-- <load module="mod_dialplan_directory"/> -->
<load module="mod_dialplan_xml"/>
<!-- <load module="mod_dialplan_asterisk"/> -->
<!-- Codec Interfaces -->
<load module="mod_spandsp"/>
<!-- <load module="mod_g723_1"/> -->
<load module="mod_g729"/>
<load module="mod_amr"/>
<!--<load module="mod_ilbc"/>-->
<!--<load module="mod_h26x"/>-->
<!-- <load module="mod_b64"/> -->
<!--<load module="mod_siren"/>-->
<!--<load module="mod_isac"/>-->
<load module="mod_opus"/>
<!-- File Format Interfaces -->
<!-- <load module="mod_av"/> -->
<load module="mod_sndfile"/>
<load module="mod_native_file"/>
<!--<load module="mod_opusfile"/>-->
<!-- <load module="mod_png"/> -->
<!-- <load module="mod_shell_stream"/> -->
<!--For icecast/mp3 streams/files-->
<load module="mod_shout"/>
<!--For local streams (play all the files in a directory)-->
<load module="mod_local_stream"/>
<load module="mod_tone_stream"/>
<!-- Timers -->
<!-- <load module="mod_timerfd"/> -->
<!-- <load module="mod_posix_timer"/> -->
<!-- Languages -->
<!-- <load module="mod_v8"/> -->
<!-- <load module="mod_perl"/> -->
<!-- <load module="mod_python"/> -->
<!-- <load module="mod_java"/> -->
<load module="mod_lua"/>
<!-- ASR /TTS -->
<!-- <load module="mod_flite"/> -->
<!-- <load module="mod_pocketsphinx"/> -->
<!-- <load module="mod_cepstral"/> -->
<!-- <load module="mod_tts_commandline"/> -->
<!-- <load module="mod_rss"/> -->
<!-- Say -->
<load module="mod_say_en"/>
<!-- <load module="mod_say_ru"/> -->
<!-- <load module="mod_say_zh"/> -->
<!-- <load module="mod_say_sv"/> -->
<!-- Third party modules -->
<!--<load module="mod_nibblebill"/>-->
<!--<load module="mod_callcenter"/>-->
</modules>
</configuration>
@@ -1,105 +0,0 @@
--- modules.conf.xml 2019-09-30 19:01:33.304020805 +0000
+++ modules.conf.xml.new 2019-09-30 23:11:23.371830901 +0000
@@ -1,5 +1,6 @@
<configuration name="modules.conf" description="Modules">
<modules>
+ <load module="mod_audio_fork"/>
<!-- Loggers (I'd load these first) -->
<load module="mod_console"/>
<!-- <load module="mod_graylog2"/> -->
@@ -10,7 +11,7 @@
<!-- Multi-Faceted -->
<!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
- <load module="mod_enum"/>
+ <!-- <load module="mod_enum"/> -->
<!-- XML Interfaces -->
<!-- <load module="mod_xml_rpc"/> -->
@@ -39,7 +40,7 @@
<!-- <load module="mod_portaudio"/> -->
<!-- <load module="mod_alsa"/> -->
<load module="mod_sofia"/>
- <load module="mod_loopback"/>
+ <!-- <load module="mod_loopback"/> -->
<!-- <load module="mod_woomera"/> -->
<!-- <load module="mod_freetdm"/> -->
<!-- <load module="mod_unicall"/> -->
@@ -47,28 +48,28 @@
<!-- <load module="mod_khomp"/> -->
<load module="mod_rtc"/>
<!-- <load module="mod_rtmp"/> -->
- <load module="mod_verto"/>
+ <!-- <load module="mod_verto"/> -->
<!-- Applications -->
- <load module="mod_signalwire"/>
+ <!-- <load module="mod_signalwire"/> -->
<load module="mod_commands"/>
<load module="mod_conference"/>
<!-- <load module="mod_curl"/> -->
- <load module="mod_db"/>
+ <!-- <load module="mod_db"/>-->
<load module="mod_dptools"/>
- <load module="mod_expr"/>
- <load module="mod_fifo"/>
- <load module="mod_hash"/>
+ <!-- <load module="mod_expr"/>-->
+ <!--<load module="mod_fifo"/>-->
+ <!-- <load module="mod_hash"/> -->
<!--<load module="mod_mongo"/> -->
- <load module="mod_voicemail"/>
+ <!--<load module="mod_voicemail"/>-->
<!--<load module="mod_directory"/>-->
<!--<load module="mod_distributor"/>-->
<!--<load module="mod_lcr"/>-->
<!--<load module="mod_easyroute"/>-->
- <load module="mod_esf"/>
- <load module="mod_fsv"/>
+ <!--<load module="mod_esf"/>-->
+ <!--<load module="mod_fsv"/>-->
<!--<load module="mod_cluechoo"/>-->
- <load module="mod_valet_parking"/>
+ <!--<load module="mod_valet_parking"/>-->
<!--<load module="mod_fsk"/>-->
<!--<load module="mod_spy"/>-->
<!--<load module="mod_sms"/>-->
@@ -87,7 +88,7 @@
<!-- Dialplan Interfaces -->
<!-- <load module="mod_dialplan_directory"/> -->
<load module="mod_dialplan_xml"/>
- <load module="mod_dialplan_asterisk"/>
+ <!--<load module="mod_dialplan_asterisk"/>-->
<!-- Codec Interfaces -->
<load module="mod_spandsp"/>
@@ -96,17 +97,17 @@
<load module="mod_amr"/>
<!--<load module="mod_ilbc"/>-->
<!--<load module="mod_h26x"/>-->
- <load module="mod_b64"/>
+ <!--<load module="mod_b64"/>-->
<!--<load module="mod_siren"/>-->
<!--<load module="mod_isac"/>-->
<load module="mod_opus"/>
<!-- File Format Interfaces -->
- <load module="mod_av"/>
+ <!--<load module="mod_av"/>-->
<load module="mod_sndfile"/>
<load module="mod_native_file"/>
<!--<load module="mod_opusfile"/>-->
- <load module="mod_png"/>
+ <!--<load module="mod_png"/>-->
<!-- <load module="mod_shell_stream"/> -->
<!--For icecast/mp3 streams/files-->
<!--<load module="mod_shout"/>-->
@@ -123,7 +124,7 @@
<!-- <load module="mod_perl"/> -->
<!-- <load module="mod_python"/> -->
<!-- <load module="mod_java"/> -->
- <load module="mod_lua"/>
+ <!--<load module="mod_lua"/>-->
<!-- ASR /TTS -->
<!-- <load module="mod_flite"/> -->
@@ -1,42 +0,0 @@
[Unit]
Description=rtpengine
After=syslog.target network.target local-fs.target
[Service]
; service
Type=forking
ExecStartPre=/bin/sh -c 'systemctl set-environment LOCAL_IP=`curl -s http://169.254.169.254/latest/meta-data/local-ipv4`'
ExecStartPre=/bin/sh -c 'systemctl set-environment PUBLIC_IP=`curl -s http://169.254.169.254/latest/meta-data/public-ipv4`'
ExecStart=/usr/local/bin/rtpengine --interface ${LOCAL_IP}!${PUBLIC_IP} \
--listen-ng=22222 \
--listen-udp=12222 \
--listen-cli=127.0.0.1:9900 \
--pidfile /var/run/rtpengine.pid \
--port-min 40000 \
--port-max 60000 \
--recording-dir /tmp \
--recording-method pcap \
--recording-format eth \
--log-level 5 \
--delete-delay 0
PIDFile=/var/run/rtpengine.pid
TimeoutSec=15s
Restart=always
; exec
User=root
Group=daemon
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,40 @@
--- switch_rtp.c 2021-01-12 02:11:42.334172596 +0000
+++ switch_rtp.c.new 2021-01-12 02:12:42.695207260 +0000
@@ -5639,8 +5639,8 @@
static switch_size_t do_flush(switch_rtp_t *rtp_session, int force, switch_size_t bytes_in)
{
int was_blocking = 0;
- switch_size_t bytes;
- uint32_t flushed = 0;
+ //switch_size_t bytes;
+ //uint32_t flushed = 0;
switch_size_t bytes_out = 0;
if (!switch_rtp_ready(rtp_session)) {
@@ -5700,7 +5700,7 @@
#endif
handle_rfc2833(rtp_session, bytes_in, &do_cng);
}
-
+/*
do {
if (switch_rtp_ready(rtp_session)) {
bytes = sizeof(rtp_msg_t);
@@ -5713,7 +5713,7 @@
rtp_session->last_media = switch_micro_time_now();
}
- /* Make sure to handle RFC2833 packets, even if we're flushing the packets */
+ //Make sure to handle RFC2833 packets, even if we're flushing the packets
if (bytes > rtp_header_len && rtp_session->recv_msg.header.version == 2 && rtp_session->recv_msg.header.pt == rtp_session->recv_te) {
rtp_session->last_rtp_hdr = rtp_session->recv_msg.header;
handle_rfc2833(rtp_session, bytes, &do_cng);
@@ -5732,7 +5732,7 @@
break;
}
} while (bytes > 0);
-
+*/
#ifdef DEBUG_2833
if (flushed) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "*** do_flush: total flushed packets: %ld ***\n",(long)flushed);
@@ -1,105 +0,0 @@
--- modules.conf.xml 2019-09-30 19:01:33.304020805 +0000
+++ modules.conf.xml.new 2019-09-30 23:11:23.371830901 +0000
@@ -1,5 +1,6 @@
<configuration name="modules.conf" description="Modules">
<modules>
+ <load module="mod_audio_fork"/>
<!-- Loggers (I'd load these first) -->
<load module="mod_console"/>
<!-- <load module="mod_graylog2"/> -->
@@ -10,7 +11,7 @@
<!-- Multi-Faceted -->
<!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
- <load module="mod_enum"/>
+ <!-- <load module="mod_enum"/> -->
<!-- XML Interfaces -->
<!-- <load module="mod_xml_rpc"/> -->
@@ -39,7 +40,7 @@
<!-- <load module="mod_portaudio"/> -->
<!-- <load module="mod_alsa"/> -->
<load module="mod_sofia"/>
- <load module="mod_loopback"/>
+ <!-- <load module="mod_loopback"/> -->
<!-- <load module="mod_woomera"/> -->
<!-- <load module="mod_freetdm"/> -->
<!-- <load module="mod_unicall"/> -->
@@ -47,28 +48,28 @@
<!-- <load module="mod_khomp"/> -->
<load module="mod_rtc"/>
<!-- <load module="mod_rtmp"/> -->
- <load module="mod_verto"/>
+ <!-- <load module="mod_verto"/> -->
<!-- Applications -->
- <load module="mod_signalwire"/>
+ <!-- <load module="mod_signalwire"/> -->
<load module="mod_commands"/>
<load module="mod_conference"/>
<!-- <load module="mod_curl"/> -->
- <load module="mod_db"/>
+ <!-- <load module="mod_db"/>-->
<load module="mod_dptools"/>
- <load module="mod_expr"/>
- <load module="mod_fifo"/>
- <load module="mod_hash"/>
+ <!-- <load module="mod_expr"/>-->
+ <!--<load module="mod_fifo"/>-->
+ <!-- <load module="mod_hash"/> -->
<!--<load module="mod_mongo"/> -->
- <load module="mod_voicemail"/>
+ <!--<load module="mod_voicemail"/>-->
<!--<load module="mod_directory"/>-->
<!--<load module="mod_distributor"/>-->
<!--<load module="mod_lcr"/>-->
<!--<load module="mod_easyroute"/>-->
- <load module="mod_esf"/>
- <load module="mod_fsv"/>
+ <!--<load module="mod_esf"/>-->
+ <!--<load module="mod_fsv"/>-->
<!--<load module="mod_cluechoo"/>-->
- <load module="mod_valet_parking"/>
+ <!--<load module="mod_valet_parking"/>-->
<!--<load module="mod_fsk"/>-->
<!--<load module="mod_spy"/>-->
<!--<load module="mod_sms"/>-->
@@ -87,7 +88,7 @@
<!-- Dialplan Interfaces -->
<!-- <load module="mod_dialplan_directory"/> -->
<load module="mod_dialplan_xml"/>
- <load module="mod_dialplan_asterisk"/>
+ <!--<load module="mod_dialplan_asterisk"/>-->
<!-- Codec Interfaces -->
<load module="mod_spandsp"/>
@@ -96,17 +97,17 @@
<load module="mod_amr"/>
<!--<load module="mod_ilbc"/>-->
<!--<load module="mod_h26x"/>-->
- <load module="mod_b64"/>
+ <!--<load module="mod_b64"/>-->
<!--<load module="mod_siren"/>-->
<!--<load module="mod_isac"/>-->
<load module="mod_opus"/>
<!-- File Format Interfaces -->
- <load module="mod_av"/>
+ <!--<load module="mod_av"/>-->
<load module="mod_sndfile"/>
<load module="mod_native_file"/>
<!--<load module="mod_opusfile"/>-->
- <load module="mod_png"/>
+ <!--<load module="mod_png"/>-->
<!-- <load module="mod_shell_stream"/> -->
<!--For icecast/mp3 streams/files-->
<!--<load module="mod_shout"/>-->
@@ -123,7 +124,7 @@
<!-- <load module="mod_perl"/> -->
<!-- <load module="mod_python"/> -->
<!-- <load module="mod_java"/> -->
- <load module="mod_lua"/>
+ <!--<load module="mod_lua"/>-->
<!-- ASR /TTS -->
<!-- <load module="mod_flite"/> -->
@@ -1,16 +1,33 @@
#!/bin/bash
VERSION=v1.10.1
VERSION=v1.10.5
GRPC_VERSION=v1.24.2
GOOGLE_API_VERSION=v1p1beta1-speech
AWS_SDK_VERSION=1.8.129
echo "freeswitch version to install is ${VERSION}"
echo "GRPC version to install is ${GRPC_VERSION}"
echo "GOOGLE_API_VERSION version to install is ${GOOGLE_API_VERSION}"
echo "AWS_SDK_VERSION version to install is ${AWS_SDK_VERSION}"
git config --global pull.rebase true
cd /usr/local/src
git clone https://github.com/davehorton/freeswitch.git -b ${VERSION}
git clone https://github.com/signalwire/freeswitch.git -b ${VERSION}
git clone https://github.com/warmcat/libwebsockets.git -b v3.2.0
git clone https://github.com/davehorton/drachtio-freeswitch-modules.git -b master
git clone https://github.com/grpc/grpc -b ${GRPC_VERSION}
cd freeswitch/libs
git clone https://github.com/freeswitch/spandsp.git -b master
git clone https://github.com/freeswitch/sofia-sip.git -b master
git clone https://github.com/dpirch/libfvad.git
git clone https://github.com/aws/aws-sdk-cpp.git -b ${AWS_SDK_VERSION}
git clone https://github.com/davehorton/googleapis -b ${GOOGLE_API_VERSION}
git clone https://github.com/awslabs/aws-c-common.git
sudo cp -r /usr/local/src/drachtio-freeswitch-modules/modules/mod_audio_fork /usr/local/src/freeswitch/src/mod/applications/mod_audio_fork
sudo cp -r /usr/local/src/drachtio-freeswitch-modules/modules/mod_aws_transcribe /usr/local/src/freeswitch/src/mod/applications/mod_aws_transcribe
sudo cp -r /usr/local/src/drachtio-freeswitch-modules/modules/mod_aws_lex /usr/local/src/freeswitch/src/mod/applications/mod_aws_lex
sudo cp -r /usr/local/src/drachtio-freeswitch-modules/modules/mod_google_transcribe /usr/local/src/freeswitch/src/mod/applications/mod_google_transcribe
sudo cp -r /usr/local/src/drachtio-freeswitch-modules/modules/mod_google_tts /usr/local/src/freeswitch/src/mod/applications/mod_google_tts
sudo cp -r /usr/local/src/drachtio-freeswitch-modules/modules/mod_dialogflow /usr/local/src/freeswitch/src/mod/applications/mod_dialogflow
@@ -26,55 +43,58 @@ sudo mkdir -p build && cd build && sudo cmake .. -DCMAKE_BUILD_TYPE=RelWithDebIn
cd /usr/local/src/libfvad
sudo autoreconf -i && sudo ./configure && sudo make -j 4 && sudo make install
# patch freeswitch
# basic patches
echo "patching freeswitch for lws and mod_audio_fork"
cd /usr/local/src/freeswitch
sudo cp /tmp/configure.ac.patch .
sudo cp /tmp/Makefile.am.patch .
sudo cp /tmp/modules.conf.in.patch ./build
sudo cp /tmp/modules.conf.vanilla.xml.patch ./conf/vanilla/autoload_configs
sudo cp /tmp/mod_opusfile.c.patch ./src/mod/formats/mod_opusfile
sudo patch < configure.ac.patch
sudo patch < Makefile.am.patch
cd build && sudo patch < modules.conf.in.patch
cd ../conf/vanilla/autoload_configs && patch < modules.conf.vanilla.xml.patch
cd /usr/local/src/freeswitch/src/mod/formats/mod_opusfile && sudo patch < mod_opusfile.c.patch
cd /usr/local/src/freeswitch
#grpc patches
echo "patching freeswitch for GRPC"
sudo cp /tmp/configure.ac.grpc.patch .
sudo cp /tmp/Makefile.am.grpc.patch .
sudo cp /tmp/modules.conf.in.grpc.patch ./build
sudo patch < configure.ac.grpc.patch
sudo patch < Makefile.am.grpc.patch
cd build && sudo patch < modules.conf.in.grpc.patch
cd ..
sudo cp /tmp/modules.conf.vanilla.xml.grpc ./conf/vanilla/autoload_configs/modules.conf.xml
# checkout and build grpc
echo "building GRPC"
cd /usr/local/src
git clone https://github.com/grpc/grpc -b ${GRPC_VERSION}
cd grpc
git submodule update --init --recursive
cd third_party/protobuf && ./autogen.sh && ./configure && sudo make install
cd /usr/local/src/grpc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH && make -j 4 && sudo make install
# build spandsp
cd /usr/local/src/freeswitch/libs/spandsp
./bootstrap.sh && ./configure && make -j 4 && sudo make install
# checkout and build googleapis
echo "building googleapis"
cd /usr/local/src/freeswitch/libs
git clone https://github.com/davehorton/googleapis -b dialogflow-v2-support
cd googleapis
# build sofia
cd /usr/local/src/freeswitch/libs/sofia-sip
./bootstrap.sh && ./configure && make -j 4 && sudo make install
# build aws-c-common
cd /usr/local/src/freeswitch/libs/aws-c-common
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS="-Wno-unused-parameter"
make -j 4 && sudo make install
# build aws-sdk-cpp
cd /usr/local/src/freeswitch/libs/aws-sdk-cpp
mkdir -p build && cd build
cmake .. -DBUILD_ONLY="lexv2-runtime;transcribestreaming" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_FLAGS="-Wno-unused-parameter"
make -j 4 && sudo make install
# build grpc
cd /usr/local/src/grpc
git submodule update --init --recursive
cd /usr/local/src/grpc/third_party/protobuf
./autogen.sh
./configure
sudo make -j 4 install
cd /usr/local/src/grpc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
make -j 4
sudo make install
# build googleapis
cd /usr/local/src/freeswitch/libs/googleapis
LANGUAGE=cpp make -j 4
# copy Makefiles into place
cp /tmp/configure.ac.extra /usr/local/src/freeswitch/configure.ac
cp /tmp/Makefile.am.extra /usr/local/src/freeswitch/Makefile.am
cp /tmp/modules.conf.in.extra /usr/local/src/freeswitch/build/modules.conf.in
cp /tmp/modules.conf.vanilla.xml.extra /usr/local/src/freeswitch/conf/vanilla/autoload_configs/modules.conf.xml
cp /tmp/switch_rtp.c.patch /usr/local/src/freeswitch/src
# patch freeswitch
cd /usr/local/src/freeswitch/src
patch < switch_rtp.c.patch
# build freeswitch
echo "building freeswitch"
cd /usr/local/src/freeswitch
sudo ./bootstrap.sh -j
sudo ./configure --with-lws=yes --with-grpc=yes
sudo ./configure --with-lws=yes --with-extra=yes
sudo make -j 4
sudo make install
sudo make cd-sounds-install cd-moh-install
+5 -5
View File
@@ -4,7 +4,7 @@
"ssh_username": "admin",
"ami_description": "jambonz feature server",
"instance_type": "t2.xlarge",
"drachtio_version": "develop",
"drachtio_version": "main",
"jambonz_version": "master",
"install_telegraf": "yes",
"install_datadog": "no"
@@ -15,10 +15,10 @@
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "debian-stretch-hvm-x86_64-gp2-*",
"name": "debian-10-amd64-*",
"root-device-type": "ebs"
},
"owners": ["379101102735"],
"owners": ["136693071363"],
"most_recent": true
},
"instance_type": "{{user `instance_type`}}",
@@ -27,7 +27,7 @@
"ami_description": "{{user `ami_description`}}",
"launch_block_device_mappings": [
{
"device_name": "xvda",
"device_name": "/dev/xvda",
"volume_size": 40,
"volume_type": "gp2",
"delete_on_termination": true
@@ -51,7 +51,7 @@
"inline": [
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done",
"sudo apt-get update",
"sudo apt-get -y install python lsof gcc g++ make cmake build-essential git autoconf automake mysql-client redis-tools \\",
"sudo apt-get -y install python lsof gcc g++ make cmake build-essential git autoconf automake default-mysql-client redis-tools \\",
"curl telnet libtool libtool-bin libssl-dev libcurl4-openssl-dev libz-dev systemd-coredump liblz4-tool \\",
"iptables-dev libavformat-dev liblua5.1-0-dev libavfilter-dev libavcodec-dev libswresample-dev \\",
"libevent-dev libpcap-dev libxmlrpc-core-c3-dev markdown libjson-glib-dev lsb-release \\",
@@ -5,10 +5,8 @@ if [ "$1" == "yes" ]; then
DB_USER=$2
DB_PASS=$3
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/postgresql.list'
sudo apt-get update
sudo apt-get install -y postgresql-12
sudo apt-get install -y postgresql
sudo systemctl daemon-reload
sudo systemctl enable postgresql
sudo systemctl restart postgresql
+3 -3
View File
@@ -18,10 +18,10 @@
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "debian-stretch-hvm-x86_64-gp2-*",
"name": "debian-10-amd64-*",
"root-device-type": "ebs"
},
"owners": ["379101102735"],
"owners": ["136693071363"],
"most_recent": true
},
"instance_type": "{{user `instance_type`}}",
@@ -30,7 +30,7 @@
"ami_description": "{{user `ami_description`}}",
"launch_block_device_mappings": [
{
"device_name": "xvda",
"device_name": "/dev/xvda",
"volume_size": 40,
"volume_type": "gp2",
"delete_on_termination": true
+5 -5
View File
@@ -3,7 +3,7 @@
"region": "us-east-1",
"ssh_username": "admin",
"ami_description": "jambonz SBC SIP+RTP",
"drachtio_version": "develop",
"drachtio_version": "main",
"jambonz_version": "master",
"install_datadog": "no",
"install_telegraf": "yes",
@@ -19,10 +19,10 @@
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "debian-stretch-hvm-x86_64-gp2-*",
"name": "debian-10-amd64-*",
"root-device-type": "ebs"
},
"owners": ["379101102735"],
"owners": ["136693071363"],
"most_recent": true
},
"instance_type": "{{user `instance_type`}}",
@@ -31,7 +31,7 @@
"ami_description": "{{user `ami_description`}}",
"launch_block_device_mappings": [
{
"device_name": "xvda",
"device_name": "/dev/xvda",
"volume_size": 40,
"volume_type": "gp2",
"delete_on_termination": true
@@ -55,7 +55,7 @@
"inline": [
"while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done",
"sudo apt-get update",
"sudo apt-get -y install lsof python lsof gcc g++ make cmake build-essential git autoconf automake mysql-client redis-tools \\",
"sudo apt-get -y install lsof python lsof gcc g++ make cmake build-essential git autoconf automake default-mysql-client redis-tools \\",
"curl telnet libtool libtool-bin libssl-dev libcurl4-openssl-dev libz-dev systemd-coredump liblz4-tool \\",
"iptables-dev libavformat-dev liblua5.1-0-dev libavfilter-dev libavcodec-dev libswresample-dev \\",
"libevent-dev libpcap-dev libxmlrpc-core-c3-dev markdown libjson-glib-dev lsb-release \\",
+1 -1
View File
@@ -4,7 +4,7 @@
"ssh_username": "admin",
"ami_description": "jambonz SBC SIP",
"instance_type": "t2.medium",
"drachtio_version": "develop",
"drachtio_version": "main",
"jambonz_version": "master",
"install_datadog": "no",
"install_telegraf": "yes"