+freeswitch (1.0.1~trunk) unstable; urgency=low
+
+ * Updated revision number
+ * Fixed init problem reported by Jay Binks (FSSCRIPTS-1)
+ * Added a patch to the debian build system add more features (thanks to Hadley Rich) (FSBUILD-45)
+ - Added en-us-callie sounds and music on hold packages
+ - Added recommends and suggests
+ - Added mod_say_es and mod_say_nl
+ - Updated descriptions
+ - Added mod_cdr_csv
+ * Fixed typos and some errors in the previus patch.
+ * Modified monit script. Now it should work.
+ * The debian build system now bootstrap automagically if it's necessary and all scripts are in place.
+
+ -- Massimo Cetra <devel@navynet.it> Sun, 6 Jul 2008 16:30:00 +0100
+
freeswitch (1.0.0-1) unstable; urgency=low
* Enhanced sofia sip nat handling
Maintainer: Michal Bielicki <michal.bielicki@voiceworks.pl>
Section: net
Priority: extra
-Build-Depends: debhelper (>= 5), automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev|libcurl4-openssl-dev, libssl-dev, ncurses-dev, libogg-dev, libvorbis-dev, libperl-dev, libgdbm-dev, libdb4.4-dev, libgnutls-dev
-Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), fakeroot, automake1.9, autoconf, libtool, unixodbc-dev, libasound2-dev, libcurl3-dev|libcurl4-openssl-dev, libssl-dev, ncurses-dev, libogg-dev, libvorbis-dev, libperl-dev, libgdbm-dev, libdb-dev, libgnutls-dev
+Standards-Version: 3.7.3
Package: freeswitch
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, unixodbc, libasound2, libcurl3, openssl, libncurses5
-Suggests: monit
-Description: A telephony platform that really kicks some ass...
+Recommends: freeswitch-lang-en
+Suggests: freeswitch-spidermonkey, freeswitch-lua, freeswitch-perl, freeswitch-sounds-music-8000, monit
+Description: The FreeSWITCH open source telephony platform
FreeSWITCH is an open source telephony platform designed to facilitate the
creation of voice and chat driven products scaling from a soft-phone up to
a soft-switch. It can be used as a simple switching engine, a media gateway
Package: freeswitch-dev
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: Development Package for the FreeSwitch open source telephony platform
+Description: Development Package for the FreeSWITCH open source telephony platform
Package: freeswitch-spidermonkey
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: A Javascript engine for freeswitch
+Description: A Javascript engine for FreeSWITCH
Package: freeswitch-perl
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: A perl engine for freeswitch
+Description: A perl engine for FreeSWITCH
Package: freeswitch-lua
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
-Description: A lua engine for freeswitch
+Description: A lua engine for FreeSWITCH
Package: freeswitch-codec-passthru-g7231
Architecture: any
Package: freeswitch-lang-en
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Recommends: freeswitch-sounds-en-us-callie-8000
+Suggests: freeswitch-sounds-en-us-callie-16000, freeswitch-sounds-en-us-callie-32000
Description: English language files for the FreeSWITCH open source telephony platform
+Package: freeswitch-sounds-en-us-callie-8000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: English language files for the FreeSWITCH open source telephony platform
+
+Package: freeswitch-sounds-en-us-callie-16000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: English language files for the FreeSWITCH open source telephony platform (16000)
+
+Package: freeswitch-sounds-en-us-callie-32000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: English language files for the FreeSWITCH open source telephony platform (32000)
+
+Package: freeswitch-sounds-music-8000
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: Music on hold files for the FreeSWITCH open source telephony platform
+
Package: freeswitch-lang-de
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
Description: Italian language files for the FreeSWITCH open source telephony platform
+
+Package: freeswitch-lang-es
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: Spanish language files for the FreeSWITCH open source telephony platform
+
+Package: freeswitch-lang-nl
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, freeswitch
+Description: Dutch language files for the FreeSWITCH open source telephony platform
+++ /dev/null
-# Startup settings fffor freeswitch
-# In this package install if monit is instaled it will automatically control
-# start and stop of freeswitch
-
-# Enable initd (let init handle start and stop of freeswitch)
-
-USE_INIT="false"
--- /dev/null
+opt/freeswitch/mod/mod_say_es.so*
--- /dev/null
+opt/freeswitch/mod/mod_say_nl.so*
--- /dev/null
+opt/freeswitch/sounds/en/us/callie/*/16000/*
+
--- /dev/null
+opt/freeswitch/sounds/en/us/callie/*/32000/*
+
--- /dev/null
+opt/freeswitch/sounds/en/us/callie/*/8000/*
+
--- /dev/null
+opt/freeswitch/sounds/music/8000/*
+
--- /dev/null
+# Startup settings for FreeSWITCH
+
+# Enable initd (let init handle start and stop of freeswitch).
+# Set to "true" (lowercase) to enable.
+
+FREESWITCH_ENABLED="false"
+
+# The parameters Freeswitch should be started with
+
+FREESWITCH_PARAMS="-nc"
+
DESC="FreeSwitch Voice Switching System"
NAME=freeswitch
DAEMON=/opt/freeswitch/bin/$NAME
-DAEMON_ARGS="-nc"
USER=freeswitch
PIDFILE=/opt/freeswitch/log/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Check if we are being executed by init
-. /etc/default/$NAME
CALLEDSCRIPT=`basename $0`
-echo $CALLEDSCRIPT
-case "$CALLEDSCRIPT" in
- freeswitch)
- ;;
- *)
- if [ "$USE_INIT" != "TRUE" ]; then
- echo "FreeSwitch disabled" ;
- exit 0 ;
- fi
- ;;
-esac
+
+if [ -r /etc/default/$NAME ]; then . /etc/default/$NAME; fi
+
+if [ "$FREESWITCH_ENABLED" != "true" ]; then
+ echo "$DESC not enabled yet. Edit /etc/default/$NAME first."
+ exit 0 ;
+fi
# Exit if the package is not installed
# [ -x "$DAEMON" ] || exit 0
start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon -c $USER --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
- $DAEMON_ARGS \
+ $FREESWITCH_PARAMS \
|| return 2
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend
opt/freeswitch/bin/scripts/*
opt/freeswitch/lib/libfreeswitch*.so*
opt/freeswitch/mod/mod_shout*
+opt/freeswitch/mod/mod_cdr_csv.so*
opt/freeswitch/mod/mod_console.so*
opt/freeswitch/mod/mod_expr.so*
opt/freeswitch/mod/mod_rss.so*
group voice
start program = "/etc/init.d/freeswitch start"
stop program = "/etc/init.d/freeswitch stop"
- if failed port 5060 type UDP then restart
+# Checks sip port on localhost, not wlways suitable
+# if failed port 5060 type UDP then restart
+# Checks mod_event_socket on localhost. Maybe more suitable
+ if failed port 8021 type TCP then restart
if 5 restarts within 5 cycles then timeout
depends on freeswitch_bin
depends on freeswitch_rc
check file freeswitch_bin with path /opt/freeswitch/bin/freeswitch
group voice
if failed checksum then unmonitor
- if failed permission 755 then unmonitor
+ if failed permission 750 then unmonitor
if failed uid freeswitch then unmonitor
- if failed gid daemon then unmonitor
+# if failed gid daemon then unmonitor
check file freeswitch_rc with path /etc/init.d/freeswitch
group voice
export DIRECTORIES_MODULES=
export DOTNET_MODULES=
export ENDPOINTS_MODULES=endpoints/mod_dingaling endpoints/mod_iax endpoints/mod_portaudio endpoints/mod_sofia endpoints/mod_woomera ../../libs/openzap/mod_openzap
-export EVENT_HANDLERS_MODULES=event_handlers/mod_event_multicast event_handlers/mod_event_socket
+export EVENT_HANDLERS_MODULES=event_handlers/mod_event_multicast event_handlers/mod_event_socket event_handlers/mod_cdr_csv
export FORMATS_MODULES=formats/mod_local_stream formats/mod_native_file formats/mod_sndfile formats/mod_tone_stream formats/mod_shout
export LANGUAGES_MODULES=languages/mod_perl languages/mod_lua
export LOGGERS_MODULES=loggers/mod_console loggers/mod_logfile loggers/mod_syslog
-export SAY_MODULES=say/mod_say_de say/mod_say_en say/mod_say_fr say/mod_say_it
+export SAY_MODULES=say/mod_say_en say/mod_say_it say/mod_say_de say/mod_say_fr say/mod_say_es say/mod_say_nl
export TIMERS_MODULES=
-export DISABLED_MODULES=applications/mod_soundtouch directories/mod_ldap languages/mod_java languages/mod_python languages/mod_spidermonkey_skel ast_tts/mod_cepstral asr_tts/mod_lumenvox endpoints/mod_wanpipe event_handlers/mod_event_test event_handlers/mod_radius_cdr event_handlers/mod_zeroconf say/mod_say_es say/mod_say_nl
+export DISABLED_MODULES=applications/mod_soundtouch directories/mod_ldap languages/mod_java languages/mod_python languages/mod_spidermonkey_skel ast_tts/mod_cepstral asr_tts/mod_lumenvox endpoints/mod_wanpipe event_handlers/mod_event_test event_handlers/mod_radius_cdr event_handlers/mod_zeroconf
export XML_INT_MODULES=xml_int/mod_xml_rpc xml_int/mod_xml_curl xml_int/mod_xml_cdr
export MYMODULES=$(PASSTHRU_CODEC_MODULES) $(SPIDERMONKEY_MODULES) $(APPLICATIONS_MODULES) $(ASR_TTS_MODULES) $(CODECS_MODULES) $(DIALPLANS_MODULES) $(DIRECTORIES_MODULES) $(DOTNET_MODULES) $(ENDPOINTS_MODULES) $(EVENT_HANDLERS_MODULES) $(FORMATS_MODULES) $(LANGUAGES_MODULES) $(LOGGERS_MODULES) $(SAY_MODULES) $(TIMERS_MODULES) $(XML_INT_MODULES)
export MODULES=$(MYMODULES)
config.status: configure
dh_testdir
- rm modules.conf
+ rm -f modules.conf
touch modules.conf
echo $(MODULES)
for i in $(MODULES); do echo $$i >> modules.conf; done
./configure --prefix=/opt/freeswitch --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) ${FEATURES}
-configure: bootstrap.sh
- AUTOCONF=${AUTOCONF} ./bootstrap.sh
+configure:
+ if test ! -f Makefile.in ; then \
+ if test -f ./bootstrap.sh ; then \
+ AUTOCONF=${AUTOCONF} ./bootstrap.sh ; \
+ else \
+ echo "No Makefile.in and no known way to bootstrap." ; \
+ exit 1; \
+ fi; \
+ fi;
build: build-stamp
build-stamp: config.status
dh_clean -k
dh_installdirs -A --sourcedir=debian/tmp
- $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+ $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install uhd-sounds-install moh-install
# Build architecture-independent files here.
# dh_installinfo
# dh_undocumented
# dh_installman
- cp debian/monit/freeswitch.monitrc debian/freeswitch/etc/monit/freswitch.monitrc
- cp debian/default/freeswitch debian/freeswitch/etc/default
+ cp debian/monit/freeswitch.monitrc debian/freeswitch/etc/monit/freeswitch.monitrc
dh_install --sourcedir=debian/tmp
dh_strip
dh_compress