--- asterisk-1.6.2.0~beta1.orig/debian/asterisk-config.preinst +++ asterisk-1.6.2.0~beta1/debian/asterisk-config.preinst @@ -0,0 +1,59 @@ +#! /bin/sh +# preinst script +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in + install|upgrade) + # chan_modem was removed on 1.4+ + if dpkg --compare-versions "$2" lt "1:1.4.0-1~"; then + rm_conffile asterisk-config "/etc/asterisk/modem.conf" + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- asterisk-1.6.2.0~beta1.orig/debian/changelog +++ asterisk-1.6.2.0~beta1/debian/changelog @@ -0,0 +1,2150 @@ +asterisk (1:1.6.2.0~beta1-1ubuntu1~ppa1~hardy1) hardy; urgency=low + + * Backport to hardy based on the svn packaging from the Debian VoIP team + - Set compat to 6 + - Set debhelper to 6 + - Add dependency on libxml2-dev + - Add dependency on libpt-1.11.2-dev + - Disable support for a few things that we are not using: h323, sqlite + - Add appdocsxml to install it in /usr/share/ + - Remove asterisk-h323.install + + -- Javier Uruen Val Sun, 03 May 2009 16:36:50 +0200 + +asterisk (1:1.6.1.0~dfsg-1) UNRELEASED; urgency=low + + [ Mark Purcell ] + * NOT RELEASED YET + + [ Tzafrir Cohen ] + * New upstream release (Closes: #522528). + * Depend explicitly on dahdi. + * Patch apptest_sleep dropped: merged upstream. + * Patch libtonezone_libm dropped: merged upstream. + * Patch h323-make-fix dropped: merged upstream. + * Use upstream's asterisk.conf rather than our bogus one. + * Also add the version-specific release summary. + + -- Tzafrir Cohen Wed, 29 Apr 2009 03:02:46 +0300 + +asterisk (1:1.6.1.0~dfsg~rc3-1) experimental; urgency=low + + [ Tzafrir Cohen ] + * Experimental 1.6.x branch. + * Remove bristuff for now. + * Also drop zap-fix-deadlock and zap-fix-cause34 that are in bristuff code. + * And likewise the example agi/xagi-test.c . + * Drop patch silence-buildsum-warning - a legitimate change for 1.6.x . + * Refresh patch debian-banner. + * Slightly rework patch hack-multiple-app-voicemail + * Drop patch h323 fixes as they fails and I don't fully understand them. + * drop patch func_devstate: was backport from 1.6. + * drop patch feature-bridge: was backport from 1.6. + * Drop vpb-handle-nocards that is not needed anymore. + * Patch disable_moh: Disable MOH file through the XML spec. + * Don't do ant makeopts manipulation in the rules, as makeopts gets + regenerated when running 'make install', rendering build-*-stamp + useless. + * Patch libtonezone_libm: libtonezone requires -lm . + * Separate API documentation to the progdoc package. + * Move configuration files to the doc package, as they are reference. + * Include the new asterisk.pdf . + * Depend on libgmime: allows uploads in the built-in httpd. + * Depend on libjack. Though app_jack also depends on libresample. + * Depend on liblua: For pbx_lua (dialplan in lua). + * Depend on libss7 and newer libpri (1.4.7) for latest chan_dahdi abilities. + * Depend on libtonezone from dahdi (ver. 2.0). + * Includes fix for AST-2009-001 (Closes: #513413). + * Remove hashtest and hashtest2: debugging utilities. + * Patch zap-fix-timing-source removed: Problem fixed. + * Build-Depends on libopenais-dev (for res_ais.so) + * Build-Depends on libosptk3-dev (for app_osplookup.so) + * Patch dahdi-fxsks-hookstate: Fix FXO dialout issue. + * Patch h323-make-fix: No, we should not need to run 'make' twice. + + [ Victor Seva ] + * Drop patch misdn_FOP. Applied upstream (r112521 branches/1.6.0/). + + [ Mark Purcell ] + * Update debian/watch + * asterisk-dbg -> Section: debug + + -- Mark Purcell Sun, 29 Mar 2009 22:21:47 +1100 + +asterisk (1:1.4.21.2~dfsg-3) UNRELEASED; urgency=low + + * Bumped Standards-Version to 3.8.0. + + -- Patrick Matthäi Wed, 8 Oct 2008 21:39:31 +0200 + +asterisk (1:1.4.21.2~dfsg-2) unstable; urgency=low + + [ Victor Seva ] + * support DEB_BUILD_OPTION noopt used to produce non-optimized builds. + (Closes: #492941). + * Depend on libcap2-dev instead of libcap-dev because libcap1 is no longer + maintained upstream. Thanks to Torsten Werner . + (Closes: #492620). + * Backport script fixes: + - Depend on debhelper >=5 on backport etch script. + - replace libcap2-dev by libcap-dev. + - remove lib-client2007b-dev. (Closes: #494405) + + [ Tzafrir Cohen ] + * Patch chan_zap so that asterisk starts even without a Zaptel timing + source. (Closes: #491310) + + [ Lionel Elie Mamane ] + * /etc/default/asterisk: Bring comments on AST_DUMPCORE_DIR in sync with + reality of implementation in /etc/init.d/asterisk. Change suggested + CORE_PATTERN to more secure ones. + * /etc/init.d/asterisk: Use the value of AST_DUMPCORE_DIR if it is a + directory, not if the value if DUMPCORE_DIR is a directory. + + [ Faidon Liambotis ] + * Backport a patch from Xorcom's tree fixing a deadlock situation caused + by the bristuff patch. (Closes: #493055) + * Backport a patch from Xorcom's tree fixing an occasional "Cause 34" error + on BRIs. + * Don't write /root/.asterisk_history when stopping asterisk with the init + script. (Closes: #500294) + * Eliminate warnings when calling some actions of the init script by + replacing obsolete asterisk commands with their newer counterpart. + + -- Faidon Liambotis Sat, 04 Oct 2008 01:21:40 +0300 + +asterisk (1:1.4.21.2~dfsg-1) unstable; urgency=high + + [ Victor Seva ] + * asterisk.postinst should always check group memberships (Closes: + #486097) patch by Tim Retout + * changed libc-client2007-dev to libc-client2007b-dev on Build-Depends + (fixes FTBFS). + + [ Tzafrir Cohen ] + * Depend on debhelper >= 6.0.7 due to dh_lintian (Closes: #492202). + * New upstream bugfix release. Fixes CVE-2008-3263 and CVE-2008-3264. + + [ Faidon Liambotis ] + * Do a quilt refresh on all patches. + * Remove the dh_makeshlibs call as it is unneeded and generates a lintian + warning. + + -- Faidon Liambotis Thu, 24 Jul 2008 19:51:20 +0300 + +asterisk (1:1.4.21.1~dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * New upstream bugfix release. + * Fix get-orig-source target to remove temporary files left in that tarball. + * The asterisk.h symlink moved to asterisk-dev where it should be. + + [ Mark Purcell ] + * asterisk-dev Replaces: asterisk (<< 1:1.4.21.1~dfsg-1) + * lintian cleanup: debian-copyright-line-too-long + * Call dh_lintian lintian-cleanup: package-contains-empty-directory + + -- Mark Purcell Wed, 16 Jul 2008 21:14:10 +1000 + +asterisk (1:1.4.21~dfsg-1) unstable; urgency=low + + * New upstream release. + * bison no longer needed to build Asterisk (Since 1.4.0). + * Patch armel_support applied upstream. + * Patches bristuff/zapata-gsm and bristuff/zapata-bri+euroisdn adjusted to + chan_zap changes (conf became a pointer in mkintf). + + -- Tzafrir Cohen Thu, 12 Jun 2008 21:30:40 +0300 + +asterisk (1:1.4.20~dfsg-1) unstable; urgency=low + + [ Victor Seva ] + * Patch sample files pointing now to the correct doc files. (Closes: #475681) + * Added support for armel, thanks to Riku Voipio. (Closes: #477389) + * Added asterisk-config.dirs in order to create etc/asterisk/manager.d dir, + and added a README.conf on it on rule install-indep. + + [ Tzafrir Cohen ] + * Provide /usr/include/asterisk.h as well (through a symlink). + * Remove {,} bashism from debian/rules (Closes: #478361). + + [ Faidon Liambotis ] + * New upstream version. + - Fix IAX performance issues introduced by security fix in 1.4.19.1 + - Dropped patches samples, vpb-driver-4.2.18, vpb_no_cards, incorporated + by upstream. + * Update to bristuff-0.4.0-RC1: + - Revert API changes to res_agi (xagi). + - Revert API changes to ast_sendtext() (ast-send-message). + - Merge several chan_zap changes (zapata-bri+euroisdn, zapata-gsm). + - Remove unused zapata-device-state, feature-parking_con, find-feature, + chan-capi, ast_channel_masquerade_locked, find-feature patches, + obsoleted by upstream. + - Remove uniqueid-01-use-pid-on-uniqueid-generation patch, dropped by + upstream. + - Rename app-zapras-fix-audiomode to isdn-fixes and include another fix + that we dropped earlier by mistake (r5162). + - Merge ast-send-message with ast-send-message-users, following upstream + split. + - Other minor and cosmetic fixes. + - Comment-out the only use of ast-send-message (in GSM) to avoid an ABI + change. We are not shipping GSM, hence this is not a feature regression. + * Conflict with asterisk-chan-capi << 1.1.1-1 which we broke with an ABI + change :( (Closes: #472379). + * Drop doc-base entries for sip.conf and zapata.conf, there was no point in + just listing those two configuration files. + * Remove -1 revision dependency on libpri and libopenh323-dev. + * Override some lintian warnings for asterisk (empty IAX firmware and + static-http directories) and asterisk-sounds-main (empty MOH and es/fr + sounds directories). + + -- Faidon Liambotis Sat, 07 Jun 2008 19:18:56 +0300 + +asterisk (1:1.4.19.1~dfsg-1) unstable; urgency=low + + [ Faidon Liambotis ] + * New upstream release. + - Dropped configure-libc-client, incorporated upstream. + - Adapted bristuff patches uniqueid-10-channel-ops-uniqueid, + uniqueid-30-app-chanspy, zapata-bri+euroisdn. + - Fixes CVE-2008-1897 / AST-2008-006 (Closes: #477472). + * Build with -O2 instead of the default -O6 (bug introduced in + 1.4.18~dfsg-1). + * Depend on libspeexdsp-dev because of the use of preprocessor features, + which were split from libspeex >= 1.2. + - FTBFS: codec_speex.c:99: error: expected specifier-qualifier-list + before 'SpeexPreprocessState' (Closes: #474789) + - Asterisk fails to install due to broken libspeex dependency + (Closes: #477086) + + [ Lionel Elie Mamane ] + * debian/rules: fix get-orig-source to actually work + * Fix genastkey so that keys are not world-readable by default. + + [ Tzafrir Cohen ] + * Watching downloads.digium.com directly again. + * Patch apptest_sleep: A woraround for TestServer fail on SEND DTMF 8. + + -- Mark Purcell Wed, 23 Apr 2008 22:50:35 +1000 + +asterisk (1:1.4.18.1~dfsg-1) unstable; urgency=high + + * New upstream release. + - Fixes a vulnerability in the RTP codec payload type handling + (AST-2008-002, CVE-2008-1289). + - Fixes a critical vulnerability that could be exploited to bypass SIP + authentication (AST-2008-003, CVE-2008-1332). + - Fixes a potential DoS vulnerability in the Manager interface + (AST-2008-004, CVE-2008-1333). + * Urgency high because of critical security fixes. + + -- Faidon Liambotis Wed, 19 Mar 2008 00:49:17 +0200 + +asterisk (1:1.4.18~dfsg-1) unstable; urgency=low + + [ Faidon Liambotis ] + * Update debian/copyright (packaging copyright, formatting etc.) + * Remove workaround for gcc ICE on hppa (#445336), since apparently that has + been fixed. + * Do not provide asterisk-classic/asterisk-bristuff, we don't want to + satisfy those dependencies anymore. + * Provide asterisk-1.4 virtual package, so that all reverse-dependencies + that use 1.4's ABI can depend on that. + * Switch asterisk-h323 to the new asterisk-1.4 dependency. + * Remove libc-client-dev dependency since it is satisfied in etch by a + version (2002) incompatible to the one that works. (Closes: #465524) + * Backport upstream's patch for chan_vpb to avoid crashes when no + VoiceTronix cards are present. (Closes: #466729) + * Backport feature Bridge from 1.6, thanks to Jon Webster. (Closes: #458475) + + [ Tzafrir Cohen ] + * New upstream release. + * Break bristuff BRI/EuroISDN patch: + - zapata_num_spans - already accepted by upstream. Independent of libpri + bristuff patch. + - zapata-bri+euroisdn - now does not depend on most bristuff interface + changes. But lacks: + - zapata_euroisdn_holded - Support for putting an ISDN phone on hold. + Depends on some other bristuff patches, and adds another interface change. + * patch use-libpri-bristuffed right next to zapata-bri+euroisdn, as + zapata-bri+euroisdn depends on it to build. + * patch tos-libcap remeved: merged by upstream. + * Adjusted patch bristuff/ast-device-state-CID to Asterisk 1.4.18. + + -- Faidon Liambotis Thu, 06 Mar 2008 04:32:33 +0200 + +asterisk (1:1.4.17~dfsg-2) unstable; urgency=low + + * Allow building vs. libc-client2007 (Closes: #458877). + + -- Tzafrir Cohen Thu, 03 Jan 2008 15:14:23 +0200 + +asterisk (1:1.4.17~dfsg-1) unstable; urgency=low + + * New upstream release. Fixes ASA-2008-001. + + -- Faidon Liambotis Thu, 03 Jan 2008 00:27:16 +0200 + +asterisk (1:1.4.16.2~dfsg-2) unstable; urgency=low + + * asterisk.init: fix start so that it works again. (Closes: #458022) + + -- Tzafrir Cohen Fri, 28 Dec 2007 02:46:38 +0200 + +asterisk (1:1.4.16.2~dfsg-1) unstable; urgency=low + + * New upstream release. (Closes: #457063) (Fixes CVE-2007-6430) + - Remove keep-1.4-abi, merged upstream. + - Adapt hack-multiple-app-voicemail, use-libpri-bristuffed, tos-libcap. + - Adapt bristuff patches app-dial-etc, chan-iax2-hangup-cause, + app-dial-priority-202, zapata-bri+euroisdn. + * Silence upstream's build sum warning but generate one on all modules so + that we can enable it at a later point. + * Make the init script's detection of a running daemon to be more precise. + * Bump Standards-Version to 3.7.3, no changes needed. + * Remove modem.conf on upgrades from 1.2 (i.e. etch). (Closes: #454332) + * Ressurect long-forgotten logrotate script. + + -- Faidon Liambotis Fri, 21 Dec 2007 22:38:03 +0200 + +asterisk (1:1.4.15~dfsg-1) unstable; urgency=low + + * New upstream release (Closes: #452054) + - Fix a potential corrupt of voicemail.conf on simultaneous PIN updates + (Closes: #353227) + + [ Tzafrir Cohen ] + * Add some sample/reference config files as documentation. + * Provide asterisk-bristuff for upgrading from Etch. + * Move libc-client to not be last, so debian/backports/xorcom.etch would + still work. + + [ Faidon Liambotis ] + * Really enable the libcap/ToS functionality; the previous patch didn't + enable the functionality, even though the code and the libcap.so + dependency were there. (Closes: #454342) + * Fix a minor issue with init script's stop target when running with + safe_asterisk. + * Add chan_vpb, adding support for VoiceTronix OpenSwitch and OpenLine + cards. (Closes: #396499) + * Fix debian/watch by using a pkg-voip wrapper to avoid upstream's silly + redirections. (Closes: #449706) + * Use DEBVERSION as asterisk's version string. + * Disable the MD5 build sum that breaks all out-of-tree plugins (duh!). + * Create /usr/local/share/asterisk/sounds to put all site-specific + non-modifiable sounds. + * Add a note about bugs.debian.org to the banner. + * Add noload for res_config_* since loading them results in errors and + doesn't provide any functionality. + * News entries were added but we never shipped the file; ship NEWS.Debian. + * Add an entry to NEWS.Debian warning users about app_voicemail_*.so + (Closes: #452596) + * Provide options in /etc/default/asterisk for configuring safe_asterisk. + (Closes: #381786) + + [ Tzafrir Cohen ] + * Provide a custom sounds directory under /var/lib - user-modifieble at + runtime and hence not under /usr. (Closes: #337209) + + -- Faidon Liambotis Thu, 06 Dec 2007 17:20:21 +0200 + +asterisk (1:1.4.13~dfsg-1) unstable; urgency=low + + * New upstream release. + - Implemented Dynamic DUNDi peering support (Closes: #439331) + - Removed merged patches: bashism-safeasterisk, ast_key_dir, + h323-add-missing-ptrace-guard, CVE-2007-4521. + - Adapted patches: make-clean-fixes, h323-no-deps-on-asterisk. + - Adapted bristuff 0.4.0-test4 to apply to 1.4.12 (bristuff.notice, + xagi, app-dial-c-callback, app-dial-priority-202) + * When DFSG-ing the tarball, create a fake codecs/ilbc/Makefile so that + make doesn't fail on clean. + * Pass NOISY_BUILD to make so that the GCC arguments can be examined in + build logs. + * Remove versioned dependency on dpkg-dev since that particular version is + present since etch (sarge is not supported as a backport target anymore). + * Backport a patch from trunk so that Asterisk can set the IP ToS bits when + it is run as a simple user (as we do). + * Re-enable IMAP support and enable ODBC support; this time they are + provided as app_voicemail_imap.so and _odbc.so so that they don't break + existing setups. + * Build with -O1 on hppa to workaround gcc-4.2 ICE (#445336). + * Zaptel package added support for Voicetronix OpenPCI cards, mention it on + asterisk's description. + + -- Faidon Liambotis Wed, 10 Oct 2007 22:18:16 +0300 + +asterisk (1:1.4.11~dfsg-4) unstable; urgency=low + + * Remove imap support to get back original files voicemail functionality. + * Fix comment in patches/bristuff/zapata-bri+euroisdn (by nickzxcv). + + -- Tzafrir Cohen Sun, 30 Sep 2007 15:12:09 +0200 + +asterisk (1:1.4.11~dfsg-3) unstable; urgency=low + + * Depend on libsnmp-dev instead of libsnmp10-dev. Fixes FTBFS + (Closes: #444322) + + -- Faidon Liambotis Fri, 28 Sep 2007 05:58:29 +0300 + +asterisk (1:1.4.11~dfsg-2) unstable; urgency=low + + [ Faidon Liambotis ] + * Depend on libpri-dev >= 1.4.1-1 for the bristuffed header. + (Closes: #439197) + * Added a 1.4 backport of the DEVSTATE() dialplan function which allows + retrieving any device state in the dialplan, as well as creating custom + device states that are controllable from the dialplan. + * Replace Build-Depends libc-client-dev (which wasn't used) with + libc-client2006j2-dev and enable Voicemail IMAP storage + (configure-libc-client). + * Build depend on libcurl4-openssl-dev instead of libcurl4-dev which is a + virtual package. This also means using the more complete OpenSSL libcurl + backend instead of the GnuTLS one. + * Add a versioned >= 1.4 dependency of asterisk in asterisk-h323. + * Don't use MAKEFLAGS as a variable in debian/rules since it has a special + meaning for make. Reported by Simon Richter. + * Add Homepage field, as supported by dpkg 1.14.6. + * Fix init.d stop when using safe_asterisk. (Closes: #376514) + * Drop asterisk-web-vmail package and place the script in + /usr/share/doc/asterisk. + * Move static-http and sample.call to asterisk's examples. + + [ Kilian Krause ] + * Update backports scripts for libcurl4*-dev + * Fix IMAP crash with upstream source snipplet. (Closes: #440187) + + [ Tzafrir Cohen ] + * Support increasing open files limit from init.d script. + + -- Faidon Liambotis Wed, 26 Sep 2007 13:32:01 +0300 + +asterisk (1:1.4.11~dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * Remove libgtk2.0-dev from Build-Depends since the GTK+ console was not + getting built anyway. + + [ Kilian Krause ] + * Add dpkg-dev (>= 1.13.19) to Build-Depends for binary:Version and + source:Version. + + [ Faidon Liambotis ] + * New upstream release. (Closes: #439062) + - AST-2007-020 Resource Exhaustion vulnerability in SIP channel driver + * Switch to quilt as a patch management system instead of dpatch. + * Add bristuff 0.4.0-test4 + - Split into smaller, individual patches (bristuff/). + - Mention HFC-S/HFC-4S support in the Description. + - Use libpri-bristuffed.so.1 and its respective header + (use-libpri-bristuffed). + - Ship xagi-test.c as an example. + - Add a news item to NEWS.Debian stating bristuff's inclusion. + * Major overhaul of the postinst scripts, completely replacing asterisk_fix. + - Create Asterisk's directories on asterisk.dirs to track them using dpkg. + - Add asterisk.postinst which calls adduser, chown, chmod. Improve error + handling. + - Don't do unnecessary stuff on asterisk-config postinst. + (Closes: #431506) + - chmod /etc/asterisk on build-time to allow the user to modify the + permissions; this required a lintian override. + - Honor dpkg-statoverride on all the chowned/chmoded directories and + configuration files under /etc/asterisk. + - Handle asterisk-config -> asterisk installation order properly + (Closes: #408708) + - Don't add asterisk user to audio and dialout groups if existed before. + This allows the administrator to remove the membership. + - Don't depend on adduser from asterisk-config. + * Remove Suggests to gnomemeeting (it's a dummy package nowdays), + asterisk-rate-engine and add one for twinkle. + * Remove Conflicts for an old version of asterisk-oh323 which was only + present until sarge. + * Remove versioned dependencies on ancient (pre-sarge) versions of sed and + adduser. + * Patch channels/h323/ast_h323.cxx to add some missing PTRACING #ifdef + (h323-add-missing-ptrace-guard). + * h323-workaround-openh323-segfault patch: workaround a libopenh323 bug + (#438815) which causes Asterisk to segfault on startup. (Closes: #435146) + * Remove -XCVS from dh_installexamples arguments. Upstream doesn't use CVS + anymore. + * Add a README.Debian for asterisk-h323 that explains the differences + between the different H.323 channel drivers, taken from the asterisk-oh323 + package. + * Clarify asterisk-h323's description and mention the other channel drivers. + * Suggest asterisk-h323 from asterisk. + + -- Faidon Liambotis Wed, 22 Aug 2007 20:55:12 +0300 + +asterisk (1:1.4.10~dfsg-1) unstable; urgency=low + + * New upstream release + - Fwd: [asterisk-announce] ASA-2007-019: Remote crash vulnerability in + Skinny channel driver (Closes: #436808) + + [ Mark Purcell ] + * debhelper(1) states Build-Depends: debhelper (>= 5) + - aids backports + * Update debian/backports for etch, edgy, dapper and feisty + - http://status.buildserver.net/packages/status.php?package=asterisk&subdist=pkg-voip + + [ Faidon Liambotis ] + * Refer to /usr/share/common-licenses/GPL-2 instead of GPL. The code is + -for now- GPLv2-only and in light of GPLv3, pointing to GPL is misleading. + * Add ast_key_dir patch to move keys from /var/lib/asterisk/keys to + /usr/share/asterisk/keys where they should be. + * Actually ship keys, including Junction Networks' by fixing pubkey_jnctn + patch. + * Handle space/newline-delimited directories on /etc/asterisk when doing + chmod on postinst. + * Correct descriptions of packages in debian/control, adapting them to the + present and correcting some spelling mistakes. (Closes: #428671) + * Add a noload directive for cdr_sqlite.so in the default modules.conf since + it writes unconditionally to the database file without being rotated, + resulting in unexpected waste of disk space. (Closes: #301883) + * Delete duplicated creation of /var/run/asterisk in the init script. + + -- Mark Purcell Thu, 09 Aug 2007 22:47:00 +0100 + +asterisk (1:1.4.9~dfsg-1) unstable; urgency=high + + [ Tzafrir Cohen ] + * New upstream release. + - ASA-2007-018 - DoS Resource Exhaustion vulnerability in IAX2 + + [ Faidon Liambotis ] + * Add myself to Uploaders. + * Fix "debian/rules clean" to cleanup correctly the tree by calling "make + distclean" instead of "make clean". Also, fix some stuff in the upstream + Makefiles (debian/patches/make-clean-fixes). Fixes a lintian warning. + * Add XS-Vcs-Svn and XS-Vcs-Browser to debian/control. + * Move examples from all packages (debian/examples) to asterisk-config only. + * Add eagi-test.c, eagi-sphinx-test.c, fastagi-test and static-http to + examples. + * Remove Conflicts/Replaces/Depends to pre-sarge versions, they're useless + even for backports. + + [ Mark Purcell ] + * Include asterisk.init changes from Martin + - Asterisk does not create /var/run/asterisk directory if not existent + (Closes: #413541) + * Backout asterisk-h323 Suggests:/ Recommends: asterisk-oh323. The former + works, the latter does not with asterisk-1.4.x + * Upstream fixes from 1.4.x branch: + - Multiple security flaws in Asterisk (Closes: #421467) + - Debug switch wrong in /etc/default/asterisk (Closes: #413544) + - Upgrading destroys astdb (Closes: #354132) + - Upgrading destroys astdb (Closes: #354132) + - asterisk bindaddr in sip and iax config is to fixed ip not + Interfaces (Closes: #316443) + - Incorrect callerid syntax in sip.conf causes incorrect error + (Closes: #323275) + - dropouts (Closes: #335079) + - Does not include cdr_sqlite userfield support by default (Closes: + #344097) + - Asterisk crashes on sparc when playing 'demo-moreinfo' + (Closes: #344484) + - fresh install - crash after dialing IAX test (Closes: #350001) + - asterisk_fix script fails to set variables for adduser, user + creation fails (Closes: #383075) + - Debug switch wrong in /etc/default/asterisk (Closes: #413544) + - When using L option on Dial, instead of warning asterisk disconnects + the call (Closes: #419894) + - Patch for fastagi handling (Closes: #368948) + - bristuff patch breaks cause codes in Hangup() (Closes: #320350) + * add debian/patches/basim-safeasterisk.dpatch + - contrib/scripts/safe_asterisk should explicitly link to a cli + (Closes: #413543) + * Adding a restart when convenient in Asterisk (Closes: #413816) + * asterisk-h323: libpt.so.1.10.2 => not found (Closes: #434076) + + -- Mark Purcell Thu, 26 Jul 2007 16:52:29 +0100 + +asterisk (1:1.4.8~dfsg-2) unstable; urgency=low + + * Add patch from Faidon debian/patches/dbug433884.dpatch: + - Should not depend on libopenH323, libpt, libSDL, libssl, libldap, + ... (Closes: #433884) + - Fails to restart after upgrade due to dep on libpt.so.1.10.2 + (Closes: #434066) + + -- Mark Purcell Sat, 21 Jul 2007 11:41:01 +0100 + +asterisk (1:1.4.8~dfsg-1) unstable; urgency=high + + * New upstream release + - ASA-2007-017: Remote crash vulnerability in + STUN implementation (Closes: #433681) + * Urgency high for remote crash vulnerability + * Updated standard version to 3.7.2 . + + -- Mark Purcell Wed, 18 Jul 2007 20:51:46 +0100 + +asterisk (1:1.4.6~dfsg-1) unstable; urgency=low + + [ Mark Purcell ] + * CVE-2007-2488 was addressed 1:1.4.5~dfsg-1 + * CVE-2007-1595 was addressed 1:1.4.0~dfsg-1 + + [ Tzafrir Cohen ] + * New upstream release. + * Added asterisk-dbg for debugging symbols. + * Updated priorities of some packages. + * Updated list of supported hardware in description. + + -- Mark Purcell Wed, 04 Jul 2007 18:31:00 +0100 + +asterisk (1:1.4.5~dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * New upstream release. + + [ Mark Purcell ] + * Debconf7 Release :-) + * Build-Depends: libpq-dev + - obsolete build dependency postgresql-dev (Closes: #389376) + + -- Mark Purcell Mon, 18 Jun 2007 10:18:13 +0100 + +asterisk (1:1.4.4~dfsg-3) unstable; urgency=low + + * Build-Depends: libcurl4-dev | libcurl-dev + - uninstallable due to dependancy on libcurl3 (Closes: #426393) + + -- Mark Purcell Sat, 02 Jun 2007 10:52:05 +0100 + +asterisk (1:1.4.4~dfsg-2) unstable; urgency=low + + * Missing debian/changelog entries + * Upstream calls make twice to build h323, copy in debian/rules + - Asterisks chan_h323 doesn't work because of an undefined symbol + (Closes: #421552) + * Cleanup debian/patches + * chmod +x asterisk-fix + - Setting up asterisk (1.4.3~dfsg-1) -> id: asterisk: No such user + (Closes: #422237) + + -- Mark Purcell Thu, 17 May 2007 07:35:30 +0100 + +asterisk (1:1.4.4~dfsg-1) unstable; urgency=low + + * New Upstream Release + - Fix a crash in chan_zap + - Fix some cases where IAX2 calls would get dropped + - Merge a re-write of channel group counting support that fixes a lot of + issues + - Fix some DTMF issues related to the use of chan_agent + - Fix a crash that occurs when using dialplan functions to set global + variables + + -- Mark Purcell Wed, 25 Apr 2007 18:11:44 +1000 + +asterisk (1:1.4.3~dfsg-1) unstable; urgency=high + + * Urgency high as this fixes a number of Asterisk Security Advisories (ASA) + + * New upstream release + - [asteriskteam@digium.com: [asterisk-announce] ASA-2007-011: Multiple + problems in SIP channel parser handling response codes] (Closes: + #420864) + - [asteriskteam@digium.com: [asterisk-announce] ASA-2007-012: Remote + Crash Vulnerability in Manager Interface] (Closes: #420866) + - [asteriskteam@digium.com: [asterisk-announce] ASA-2007-010: Two + stack buffer overflows in SIP channel's T.38 SDP parsing code] + (Closes: #420868) + - CVE-2007-1594: Asterisk segfaults upon receipt of a certain SIP + packet (SIP Response code 0) (Closes: #419820) + + * Update debian/NEWS to broadcast the demise of bristuff + * Asterisk-classic, asterisk-bristuff are depreciated + - asterisk has circular Depends on asterisk-bristuff|asterisk-classic + (Closes: #384674) + * Ship UPGRADE.txt and refer to it in debian/NEWS + - UPGRADE.txt cannot be found in any package (Closes: #419164) + + -- Mark Purcell Wed, 25 Apr 2007 16:47:31 +1000 + +asterisk (1:1.4.2~dfsg-5) unstable; urgency=low + + * Bump Build-Depends: libsnmp10-dev | libsnmp-dev + * Only ship default/asterisk in asterisk package + - Asterisk-config and asterisk 1:1.4.2~dfsg-4 both contain + /etc/default/asterisk (Closes: #418656) + * Lintian fixes debian-rules-sets-DH_COMPAT + + -- Mark Purcell Sat, 14 Apr 2007 16:44:18 +0100 + +asterisk (1:1.4.2~dfsg-4) experimental; urgency=low + + [ Tzafrir Cohen ] + * The dummy fetch was not executable when generated from tar+diff. + + [ Mark Purcell ] + * Create debian/rules binary-arch & binary-indep targets + * Move debian/rules magic to package.install files + + -- Mark Purcell Thu, 29 Mar 2007 00:31:41 +0100 + +asterisk (1:1.4.2~dfsg-3) experimental; urgency=low + + * Fix syntax of for dummy fetch (Closes: #416143). + * LSB init section in init.d script. + * Merge other init.d changes from trunk. + + -- Tzafrir Cohen Sun, 25 Mar 2007 16:19:37 +0200 + +asterisk (1:1.4.2~dfsg-2) experimental; urgency=low + + [ Tzafrir Cohen ] + * Fix default varrundir using make vars (Closes: #415799). + * Don't run autoconf if you don't need (Closes: #415865). + * Require zaptel >= 1.4.1, for ZT_EVENT_REMOVED . + + [ Mark Purcell ] + * Include chan_h323.so in debian/asterisk-h323.install + * Please package Asterisk-1.4.0 (Closes: #405723) + * Add Build-Depends: libgtk2.0-dev, libc-client-dev + * configure --with-pwlib=/usr/share/pwlib/include/ \ + --with-h323=/usr/share/openh323/ + * debian/asterisk.default - fix -D/-d typo in PARAMS (Closes LP#68169) + * debian/asterisk.init: + - create /var/run/ directory if necessary and set proper permissions + * Move dh_installinit to architecture dependant + * Move ASTVARRUNDIR to /var/run/asterisk/ + - PID & control files go in wrong place (Closes: #415799) + + -- Mark Purcell Sat, 24 Mar 2007 18:32:45 +0000 + +asterisk (1:1.4.2~dfsg-1) experimental; urgency=low + + * New upstream release. + - SIP INVITE DoS, supposedly fixed in 1.4.2 and 1.2.17, which is + released today 19/03/2007 (Closes: #415466) + * asterisk Depends: ${shlibs:Depends} + + -- Mark Purcell Tue, 20 Mar 2007 19:07:18 +0000 + +asterisk (1:1.4.1~dfsg-1) experimental; urgency=low + + [ Tzafrir Cohen ] + * New upstream release. + - Please package Asterisk-1.4.0 (Closes: #405723) + * A package that builds. + * Removed asterisk-sounds.install: does not belong here. + * Removed makefile_noiaxy.dpatch: applied by upstream. + * Config examples in a separate examples subdirectory. + * Generate explicitly some missing subdirectories. + * Man pages are included in upstream now. + * set ASTDATADIR=/usr/share/asterisk . + * A bunch of other fils moved for 1.4 . + * Use system gsm (only requires an explicit --with-gsm) + * Allow chrooted building with no wget. + * h323_no_exit.dpatch: Don't requires two rounds of building. + + [ Mark Purcell ] + * configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) + --prefix=/usr --mandir=\$${prefix}/share/man -- + infodir=\$${prefix}/share/info + + -- Mark Purcell Mon, 19 Mar 2007 06:24:43 +0000 + +asterisk (1:1.4.0~dfsg-1) UNRELEASED; urgency=low + + * New upstream release (1.4) + * Sandbox to start playing with 1.4, it uses autotools :-), + it also uses ASTDATADIR :-) :-) + * need to understand this menuselect and how to encorporate into debian. + * need to discuss with upstream iLBC conflict with GPL + * Ugly hack in version number. + * get-orig-source now works, though. + * No more asterisk-classic and asterisk-bristuff + * FreePlay Music files location changed + * Disabling h323 build for now, until I figure what's wrong. + * Extra Build-Deps: libiksemel-dev, libradiusclient-ng2-dev, freetds-dev, + libvorbis-dev, libsnmp9-dev + * Simply use configure. No workarounds. + * Edit menuselect.makeopts to avoid downloading MOH files. + * makefile_noiaxy.dpatch: don't try to copy the non-existing iaxy.bin , + * zapbri.dpatch: support zapbri devices + * chanzap_chanremoved.dpatch: handle ZT_EVENT_REMOVED event from zaptel + + -- Mark Purcell Mon, 25 Sep 2006 08:46:16 +0100 + +asterisk (1:1.2.16~dfsg-1) unstable; urgency=high + + [ Tzafrir Cohen ] + * New upstream release. Also fixes remote SIP security hole. + * Updated bristuff patch. + * Fix umask of Asterisk for the voicemail. + + -- Tzafrir Cohen Sun, 4 Mar 2007 00:35:53 +0200 + +asterisk (1:1.2.15~dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * New upstream release. + * ukcid.dpatch: adapted to chan_conf. + * bristuff.dpatch: adapted to chan_conf. + * daemon_color.dpatch: make rastrisk colourful even without safe_asterisk. + * No need to edit a config file to start Asterisk. + * Use asterisk.conf based on README.asterisk.conf: + - Set default user to asterisk. + - Make the control socket writabe by the group asterisk. + * don't remove stereorize and streamplayer. + * A man page for stereorize. + * Create /etc/asterisk/manager.d (Closes: #410715). + * Check that Asterisk is alive before sending a command (Closes: #389448). + * Use MAKEBUILDOPTS instead of MAKEFLAGS, which is a reserved gmake name. + * Removing build depepndency on obsolete and unused libzap-dev. + * New transcoding interfaces from zaptel.h of zaptel 1.2.13 or 1.4 seem + to be required for Asterisk 1.2.15 . + + -- Mark Purcell Sat, 3 Mar 2007 17:14:25 +0000 + +asterisk (1:1.2.14~dfsg-5) UNRELEASED; urgency=low + + [ Tzafrir Cohen ] + * Bristuff 0.3.0-PRE-1x + + -- Tzafrir Cohen Mon, 22 Jan 2007 23:30:34 +0200 + +asterisk (1:1.2.14~dfsg-4) unstable; urgency=high + + * Add missing "fi" to asterisk_fix. (Closes: #406961) + + -- Kilian Krause Mon, 15 Jan 2007 12:05:18 +0100 + +asterisk (1:1.2.14~dfsg-3) unstable; urgency=low + + * Write a more robust version of the FHS-update for + /usr/share/asterisk/sounds/priv-callerintros. + * Update 30_ast-data-dir to complete fix for #406714. Thanks to Lionel! + + -- Kilian Krause Sun, 14 Jan 2007 13:38:57 +0100 + +asterisk (1:1.2.14~dfsg-2) unstable; urgency=low + + * Install private callerinfos in /var/lib/ where they belong acording to + FHS. (Closes: #406714) + + -- Kilian Krause Sat, 13 Jan 2007 12:01:33 +0100 + +asterisk (1:1.2.14~dfsg-1) unstable; urgency=low + + * New upstream release. + * Build against libspeex-dev (>= 1.1.12-3) with updated shlibs + (Closes: #403544) + * Update bristuff patch to apply cleanly with 1.2.14 until new upstream + version is out. + * Remove hardcoded gcc (Closes: #316802) + * Fix upstream clean target. (Closes: #393659) + + -- Kilian Krause Wed, 3 Jan 2007 21:03:19 +0100 + +asterisk (1:1.2.13~dfsg-2) unstable; urgency=low + + [ Tzafrir Cohen ] + * less_docs.dpatch: remove unnecessary doxygen docs. asterisk-doc's size + is now 1.6M (7.7M installed). + + [ Mark Purcell ] + * asterisk-classic, asterisk-bristuff: + /usr/lib/asterisk/modules/format_ogg_vorbis.so gone missing when + rebuilt (Closes: #397147) + + -- Mark Purcell Mon, 6 Nov 2006 06:33:19 +0000 + +asterisk (1:1.2.13~dfsg-1) unstable; urgency=high + + [ Kilian Krause ] + * Fixup dfsg versions with increased upstream build count. + + [ Santiago Ruano Rincón ] + * Added cdr_sqlite3_custom dpatch + + [ Mark Purcell ] + * New upstream release + - Remote compromise (Closes: #394025) + - CVE-2006-5444/5:security issues in asterisk (Closes: #395080) + - Urgency high as this fixes remote compromise security issue + - Information disclosure of voice mail messages through vmail.cgi + (Closes: #338116) + - package asterisk-dev should contain asterisk.h main header (Closes: + #342138) + - format_ogg_vorbis.so was present in i386, no longer in packages + (Closes: #375141) + * Update debian/patches/bristuff.dpatch + * bristuff-0.3.0-PRE-1v + - Please package bristuff 0.3.0PREu (Closes: #394122) + - please include app_pickup.c from bristuff (Closes: #348194) + * Build Depends: dpkg ( >= 1.13.19) + - Asterisk must build-depend upon dpkg ( >= 1.13.19) (Closes: #386113) + * Build-Depends: libpq-dev + - obsolete build dependency postgresql-dev (Closes: #389376) + + -- Mark Purcell Wed, 25 Oct 2006 06:46:52 +0100 + +asterisk (1:1.2.12.1.dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * New upstream release + * bristuff.dpatch: version adapted. + * apprecord_sprintf.dpatch removed: already applied. + + [ Mark Purcell ] + * binary blob in asterisk-classic package (Closes: #386361) + * Cleanup bristuff.dpatch + + -- Mark Purcell Sun, 24 Sep 2006 14:45:58 +0100 + +asterisk (1:1.2.11.dfsg-1) unstable; urgency=high + + [ Tzafrir Cohen] + * apprecord_sprintf.dpatch: fix format string issue in app_record.so . + + [ Mark Purcell ] + * New Upstream Release + * Urgency high as fixes CVE-2006-4346 + * CVE-2006-4346: Asterisk MGCP AUEP Response Handling Buffer + Overflow (Closes: Bug#385060) + * Please package Asterisk 1.2.11 and Zaptel 1.2.8 (Closes: #384283) + * Better error handling on init.d reload, if asterisk isn't running + * Lintian cleanup: not-binnmuable-any-depends-all + * Lintian cleanup: not-binnmuable-all-depends-any + * Use restart in asterisk_fix + + -- Mark Purcell Sat, 2 Sep 2006 13:01:02 +0100 + +asterisk (1:1.2.10.dfsg-3) unstable; urgency=low + + [ Kilian Krause ] + * Add iaxy.bin to asterisk debs to have working IAX support. + * asterisk_fix is included on the main asterisk package + (Closes: Bug#287025, Bug#360233, Bug#381861) + * Various fixes to asterisk_fix + + [ Mark Purcell ] + * Remove Build-Depends: libgtk1.2-dev (only for asterisk-gtk) + * export PROC := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) + * asterisk-{classic-bristuff} Depends: asterisk + * asterisk_fix needs to fix /var/run/asterisk + * Move doc/asterisk -> asterisk-doc package + + [ Tzafrir Cohen] + * New upstream release (Closes: #385060). + * bristuff 0.3.0-PRE-1s (adapted to asterisk 1.2.11). + + -- Mark Purcell Thu, 17 Aug 2006 20:31:02 +0100 + +asterisk (1:1.2.10.dfsg-2) unstable; urgency=high + + * IAX2 channel driver security patch [CVE-2006-2898] + - CVE-2006-2898: Denial of service in Asterisk (Closes: #380054) + + -- Mark Purcell Thu, 27 Jul 2006 08:09:47 +0100 + +asterisk (1:1.2.10.dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * New upstream release. + * bristuff.dpatch updated for the new version. + * dfsg tarball also removes ilbc. + * Cleanups to asterisk_fix + + [ Mark Purcell ] + * Build-Depends: libpri-dev (>= 1.2.3-1) + * Fixes: + - Please package version 1.2.9.1 (Closes: #372527) + + -- Mark Purcell Mon, 17 Jul 2006 21:15:50 +0100 + +asterisk (1:1.2.9.1.dfsg-1) unstable; urgency=high + + * New upstream release. [CVE-2006-2898] + + [ Mark Purcell ] + * Update debian/watch for numeric upstream versions + + [ Kilian Krause ] + * Remove unused correct_pid.dpatch (has apparently been fixed with 1.2 + upstream) + * debian/patches/100_nonroot.dpatch, debian/patches/20_Makefile.dpatch, + debian/patches/25_subdirs_Makefiles.dpatch: Remove unused patches + + [ Tzafrir Cohen ] + * reunite init.d and logrotate scripts in the package asterisk + * Re-add correct_pid_display.dpatch + * bristuff 0.3.0-PRE1s (gsm functionality missing: needs libgstam) + * sys_readline.dpatch: Realine support in the CLI. TODO: tab completion + * sys_editline.dpatch: alternativly, simply use the system version of + editline (not used). + * func_odbc_12.dpatch: backport of func_odbc (Closes: #364633) + * brazilian_syntax.dpatch (using "pt_BR") + * vm_he.dpatch: Hebrew in app_voicemail + * The data_dir patch also moves agi-bin/ and firmware/ + * option_detach: using -F instead of -D (the same as upstream) + * asterisk.init: added "zaptel-fix" to unload and reload zaptel modules + + -- Kilian Krause Fri, 16 Jun 2006 18:04:50 +0000 + +asterisk (1:1.2.7.1.dfsg-3) unstable; urgency=high + + * Urgency high as this is a security fix [CVE-2006-2898] + * Added 99_CVE-2006-2898.dpatch from Joey Schulze + - Fixes: Bug in the IAX2 channel allows remote attackers to craft + a denial of service. + + -- Mark Purcell Tue, 13 Jun 2006 05:11:44 +0100 + +asterisk (1:1.2.7.1.dfsg-2) unstable; urgency=high + + [ Kilian Krause ] + * Urgency bumped since 1.2.7 is a security update [CVE-2006-1827] + (Closes: #364195) + + [ Mark Purcell ] + * Previous Upload also fixes: + - cannot install - directories not created (Closes: #360233) + - package uninstallable (Closes: #359970) + * Update postinst to fix: fails to upgrade when /etc/asterisk/voicemail.conf + is deleted (Closes: #360220) + * Link debian/asterisk-bristuff.asterisk.{logrotate,init} & + provide debian/asterisk-classic.asterisk.logfile + - Fixes: init.d and logrotate.d conflicts (Closes: #360181) + + -- Mark Purcell Sun, 23 Apr 2006 13:26:29 +0100 + +asterisk (1:1.2.7.1.dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * New upstream release. + * nomarch.dpatch: removed the patching to internal libgsm, as we don't use + it (and it broke in this version) + * bristuff.dpatch: based on the patch from bristuff-0.3.0-PRE1n + * bristuff.dpatch: A small fix in chan_sip.c + * bristuff.dpatch: Disabling "libgsm" until it is renamed + * 30_ast-data-dir.dpatch: the symlink sounds/voicemail is now gone + * rules: do fail if bristuff patching hasfailed + * zap_restart.dpatch: allow restarting zaptel channel with "zap restart" + * backport_playdtmf.dpatch: a harmless backport (no impact if not used) + * completed the merge of logrotate and init.d scripts + + [ Lionel Elie Mamane ] + * When not running asterisk, do it successfully, not by failure. + (closes: #360234) + * Create /var/log/asterisk/cdr-csv, not cdr-cvs. + + [ Mark Purcell ] + * Update debian/control for asterisk-h323 package description + * Create /var/spool/asterisk & /var/lib/asterisk in debian/*.postinst + * New upstream release. Fixes: + - Version 1.2.5 is out (Closes: #355299) + - since 1.2.0 no chan_modem (Closes: #343232) + - Undefined symbol in chan_zap.so (Closes: #339559) + - Unapplying patches fail (Closes: #345676) + - utils.c:619 tvfix: warning negative timestamp... (Closes: #347929) + - creates /.asterisk_history on reboot (Closes: #307218) + * h323 modules can be unstable so dont load my default + * Cleanup debian/patches to remove obsolete/ old patches + + -- Mark Purcell Fri, 21 Apr 2006 17:33:31 +0100 + +asterisk (1:1.2.6.dfsg-1) unstable; urgency=low + + * New upstream release. (Closes: #355299) + * correct_pid_display.dpatch: adjusted to 1.2.6 + * 30_ast-data-dir.dpatch: adjusted to 1.2.6 + * debian/control: Add adduser to depends of asterisk-config to shut up + lintian. + * rules: no need to copy config to the bristuff install + * rules: but use cp -a for ast_config, as there may be subdirs. + + -- Tzafrir Cohen Mon, 10 Apr 2006 19:00:12 +0300 + +asterisk (1:1.2.4.dfsg-7) unstable; urgency=low + + * Recompile to fix missing asterisk-config from last binNMU round + (Closes: #356712, #358413, #355524, #358145) + * postinstall: Add /var/spool/asterisk/meetme if nonexistant. + (Closes: #355046) + * asterisk.init: Install both asterisk-classic and asterisk-bristuff with + /etc/init.d/asterisk (Closes: #354729) + * logroate: create /var/log/asterisk/cdr-custom/ as well as cdr-csv + (Closes: #355048) + * logrotate: share location of logrotate file as /etc/logrotate.d/asterisk + for both classic and bristuff version (Closes: #356712) + * delete chan_capi modules from bristuff + * Move postinstall and postrm to asterisk-classsic, asterisk-bristuff and + asterisk-config. (Closes: #355524) + + -- Kilian Krause Thu, 30 Mar 2006 11:55:03 +0200 + +asterisk (1:1.2.4.dfsg-6) unstable; urgency=low + + * Add chan_h323 back with new Atlas_devel3 OpenH323. + + -- Kilian Krause Sat, 18 Feb 2006 17:55:24 +0000 + +asterisk (1:1.2.4.dfsg-5) unstable; urgency=low + + * Fix install of asterisk-bristuff with dh_install. + + -- Kilian Krause Tue, 14 Feb 2006 20:23:56 +0100 + +asterisk (1:1.2.4.dfsg-4) unstable; urgency=low + + * Create missing /var/spool/asterisk/voicemail in postinst (Closes: #352586) + + -- Kilian Krause Sun, 12 Feb 2006 22:51:50 +0100 + +asterisk (1:1.2.4.dfsg-3) unstable; urgency=low + + * Fix asterisk-bristuff install target to catch correct versions. + + -- Kilian Krause Sun, 12 Feb 2006 12:34:31 +0000 + +asterisk (1:1.2.4.dfsg-2) unstable; urgency=low + + * update to bristuff 0.3.0-PRE-1k + + -- Kilian Krause Thu, 9 Feb 2006 18:12:08 +0000 + +asterisk (1:1.2.4.dfsg-1) unstable; urgency=low + + [ Tzafrir Cohen ] + * Fix PID display (Closes: #338646) + * changes to the init.d script (Tzafrir) + * debian/ast_config/ place here configurutaion files that will override + the defaults from the source, though not get into the sample documentation + dir + * debian/ast_config/manager.conf: asterisk does listen onthe manager by + default, but only on localhost. Other packages need not edit manager.conf + to get a manager acount + * bristuff 0.3.0-PRE-1f + * option_detach.dpatch: Adds option -D: always daemonize (even with -v,-d) + (conflicts with bristuff, though) + * ukcid.dpatch: UK Caller ID patch for the X100P. (Closes: #302380) + + [ Kilian Krause ] + * New upstream release. (Closes: #350905) + * Bumping depends on libpri and zaptel to according 1.2 versions. + * Build-Depends on libpri1.2 since new ABI caused new package name. + * Removed alternatives from Build-Depends since sbuild will only take first + anyway to ensure constant rebuilds. + * Add a noload for chan_capi by default, so that we d not stop loading when + no CAPI is installed. (Closes: #328835) + * Include smsq by adding Build-Depends on libpopt-dev (Closes: #348090) + + -- Kilian Krause Sun, 5 Feb 2006 11:44:28 +0100 + +asterisk (1:1.2.1.dfsg-3) unstable; urgency=low + + * Remove -msoft-float from compile flags to fix compilation on arm. + (Closes: #343154) + * Provide nonexistant dirs before running chown on them. (Closes: #341810) + * Depend on Perl module in libapache-dbi-perl or libdbi-perl or web-vmail + (Closes: #337448) + * Fix permissions on voicemail.conf. (Closes: #304615) + * Build-Depend on gsfonts to have Helvetica font for doxygen + (Closes: #343079) + + -- Kilian Krause Mon, 2 Jan 2006 00:15:59 +0000 + +asterisk (1:1.2.1.dfsg-2) unstable; urgency=low + + [ Tzafrir Cohen ] + * bristuff 0.3.0-PRE-1d . Still disabled by default + * libpri_bristuffed.dpatch: link chan_zap with libpri-bristuffed.so.1 + * Use asterisk(8) as a man page for rasterisk + * Removing binary steroize: can be done with soxmix of package sox. + * Removing binary streamplay: can be done with netcat + + [ Kilian Krause ] + * Fix asterisk-dev to include asterisk.h + + -- Tzafrir Cohen Sat, 31 Dec 2005 21:17:44 +0200 + +asterisk (1:1.2.1.dfsg-1) unstable; urgency=low + + * New upstream release + - Please package asterisk 1.2.1 (Closes: #342463) + * Temporary disable bristuff for upstream release + * sip-1.914.dpatch merged upstream + + -- Mark Purcell Wed, 7 Dec 2005 21:59:20 +0000 + +asterisk (1:1.2.0.dfsg-6) unstable; urgency=low + + * Add Build-Depends: libcurl3-dev | libcurl-dev + - Should build-depend on libcurl3-dev (Closes: #341363) + * Add Build-Depends: doxygen + - Missing build-dependency on doxygen (Closes: #341362) + * Build-Depends: adduser (>= 3.63) + * disable chan_zap building (in channels makefile) against old + libmfcr2 (Closes: #342139) + * seperate api docs and configuration samples (Closes: #341395) + * Add sip-1.913.dpatch; SIP error 400 on outgoing calls (Closes: #340574) + + -- Mark Purcell Mon, 5 Dec 2005 23:49:40 +0000 + +asterisk (1:1.2.0.dfsg-5) unstable; urgency=low + + [ Tzafrir Cohen ] + * Added bristuff 0.3.0-PRE1 + + [ Mark Purcell ] + * asterisk-sounds-main Replaces: asterisk-sounds-extra + - asterisk-sounds-{main,extra}: file conflict (Closes: #339791) + + -- Mark Purcell Thu, 1 Dec 2005 17:37:13 +0000 + +asterisk (1:1.2.0.dfsg-4) unstable; urgency=low + + * Fix 50_debian-libgsm.dpatch to apply correctly + - asterisk - FTBFS: Tries to build a i386 assembler file (Closes: + #340102) + + -- Mark Purcell Mon, 21 Nov 2005 19:56:03 +0000 + +asterisk (1:1.2.0.dfsg-3) unstable; urgency=low + + * Remove -march to fix FTBFS. (Closes: #338753) + + -- Kilian Krause Sat, 19 Nov 2005 19:36:31 +0000 + +asterisk (1:1.2.0.dfsg-2) unstable; urgency=low + + * libreadline4-dev is superseeded by libreadline5-dev. Fixed build-depends. + + -- Kilian Krause Sat, 19 Nov 2005 12:12:51 +0000 + +asterisk (1:1.2.0.dfsg-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 17 Nov 2005 18:17:02 +0000 + +asterisk (1:1.2.0-rc2.dfsg-1) experimental; urgency=low + + * New upstream release + + -- Mark Purcell Sun, 13 Nov 2005 17:58:08 +0000 + +asterisk (1:1.2.0-rc1.dfsg-1) experimental; urgency=low + + * New upstream release + * Suggests: asterisk-rate-engine + * debian/rules touch .cleancount (upstream bug?) + + -- Mark Purcell Wed, 9 Nov 2005 22:05:30 +0000 + +asterisk (1:1.2.0-beta2.dfsg-3) experimental; urgency=low + + * Fix debian/patches/30_ast-data-dir with /var/run/asterisk. Thanks + Alessandro Polverini + + -- Mark Purcell Tue, 8 Nov 2005 22:00:29 +0000 + +asterisk (1:1.2.0-beta2.dfsg-2) experimental; urgency=low + + * Copyright audit into debian/copyright (Closes: #331318) + * Please package 1.2 beta 2 (Closes: #336749) + + -- Mark Purcell Mon, 7 Nov 2005 22:58:27 +0000 + +asterisk (1:1.2.0-beta2.dfsg-1) experimental; urgency=low + + * New upstream release + * Update Build-Depends: libpri1 >= 1.2.0-beta2 + * Remove Build-Depends: doxygen. Takes too long for experimental ;-) + + -- Mark Purcell Tue, 1 Nov 2005 22:27:43 +0000 + +asterisk (1:1.2.0-beta1.dfsg-1) experimental; urgency=low + + [ Tzafrir Cohen ] + * recreated system_libgsm patch, http://bugs.digium.com/view.php?id=5434 + * Added public key from Junction Networks (pubkey_jnctn.dpatch). + Any other keys for IAX providers we can add? + * updating to a beta of Asterisk 1.2 + * added defaults_debian.dpatch to set pathes + * BuildDepends on graphviz + * disabled most patches: still need to review them + * What about h323? + * deleted from patches/00list a number of patches that should not go in + + [ Mark Purcell ] + * Fix: old-fsf-address-in-copyright-file + * Please package version 1.2 betas (Closes: #325268) + + -- Mark Purcell Thu, 20 Oct 2005 19:42:14 +0100 + +asterisk (1:1.0.9.dfsg-6) UNRELEASED; urgency=low + + * Fix memleak bug (http://bugs.digium.com/view.php?id=4318) + * Fix depends to adduser 3.64 (Closes: #326198) + + -- Kilian Krause Wed, 7 Sep 2005 21:22:40 +0200 + +asterisk (1:1.0.9.dfsg-5) unstable; urgency=low + + [ Kilian Krause ] + * debian/control: fix GCI to read CGI. (Closes: #311291) + + [ Mark Purcell ] + * /var/lib/dpkg/info/asterisk.postinst: line 22: adduser: command not + found (Closes: #322115) + * debian/patches/chan-modem.dpatch from Simon Peter + - chan_modem.c should set default read & write format (Closes: + #303903) + * apply patch from Jérôme Warnier + - Asterisk autosupport script not recognized as such (Closes: #316799) + * Updated debian/postrm: + - 'apt-get --purge remove asterisk' removes configuration files from + another package (Closes: #318455) + + -- Mark Purcell Tue, 9 Aug 2005 22:07:13 +0100 + +asterisk (1:1.0.9.dfsg-4) unstable; urgency=low + + * Cleanup bristuff to build under gcc4, thanks for the suggestions + - Closes: #318337: FTBFS. channel.c:64: error: static declaration of + 'uniquelock' follows non-static declaration + + -- Mark Purcell Fri, 22 Jul 2005 10:28:15 +1000 + +asterisk (1:1.0.9.dfsg-3) unstable; urgency=low + + * Cleanup 70_debian-libpe-fe.dpatch to check in Makefile + * Enable bristuff-0.2.0-RC8j.dpatch + * Remove debian/patches/08_debian-zaptel.dpatch as it is no longer + needed with new zaptel-source package + * Cleanup debian/patches/ + * Conflicts: asterisk-oh323 (<= 0.6.6pre3-3) + - Closes: #318189: asterisk-oh323: chan_oh323.so cannot find symbol + and Asterisk crashes + - Closes: #318216: chan_oh323.so symbols + * Cleanup postinit error: adduser asterisk audio; adduser asterisk + dialout + * Incorporate suggestions from Tzafrir Cohen + - postinst script has an error + - modified astdir patch, so it won't conflict with bristuff patch + - typo in the debian/asterisk.default: s/exra/extra/ + - build-depends both on zaptel-source (>= 1.0.6) and simply + on zaptel-source, The latter is probably unnecessary + - man pages for the other executables in the package + + -- Mark Purcell Thu, 14 Jul 2005 07:22:59 +0100 + +asterisk (1:1.0.9.dfsg-2) unstable; urgency=low + + * Closes: #301490: Please add patch for Italian syntax + * Closes: #305734: On PowerPC, hanging up on voicemail causes non-stop + log messages + + -- Mark Purcell Fri, 1 Jul 2005 23:24:53 +0100 + +asterisk (1:1.0.9.dfsg-1) unstable; urgency=low + + * New upstream release + - Closes: #315578: New version of asterisk and bristuff released + * Remove BRI patch while we work on it, to allow 1.0.9 to unstable + + -- Mark Purcell Fri, 1 Jul 2005 22:38:24 +0100 + +asterisk (1:1.0.8.dfsg-1) UNRELEASED; urgency=low + + * (NOT RELEASED YET) New upstream release + + -- Mark Purcell Fri, 24 Jun 2005 23:25:02 +0100 + +asterisk (1:1.0.7.dfsg.1-4) unstable; urgency=low + + * debian/control: fixed build-depends on sed's version greater than Woody. + (Closes: #308885) + + -- Kilian Krause Sat, 21 May 2005 14:15:03 +0200 + +asterisk (1:1.0.7.dfsg.1-3) unstable; urgency=low + + * Jose Carlos + + Fix a typo in NEWS.Readme + + debian/postint: Add asterisk user to dialout group too. This is needed + for asterisk to have enoug permissions to access zaptel devices. + + debian/control: allow a local asterisk-config-local package to satisfy + dependencies. Conflict with asterisk-config + + -- Jose Carlos Garcia Sogo Sun, 8 May 2005 22:06:44 +0200 + +asterisk (1:1.0.7.dfsg.1-2) unstable; urgency=low + + * Mark Purcell + + Update debian/watch to use svn-upgrade + * Kilian Krause + + debian/asterisk.init: fixed restart problem with breaking up after stop. + + debian/asterisk.init: fixed reference to WRAPPER_DEAMON which is only + DEAMON for us. (Closes:#300707) + + -- Kilian Krause Mon, 21 Mar 2005 10:59:01 +0100 + +asterisk (1:1.0.7.dfsg.1-1) unstable; urgency=low + + * New upstream release (Ensure non-dfsg MOH is not included in orig.tar) + + -- Mark Purcell Sun, 20 Mar 2005 10:30:44 +0000 + +asterisk (1:1.0.7-1) unstable; urgency=low + + * New upstream release. (Closes: #300403) + + Fixed music on hold. (Closes: #300370) + * Re-enabled speex codec. (Closes: #300373) + * As asterisk-h323 is empty, we are no longer depending on openh323, so + we don't have build conflicts between asterisk and zaptel. (Closes: #287260) + * debian/rules: Fixed duplicate execution of configure and unrepresentable + changes to source. (Closes: #299184) + * debian/patches/80_skinny.dpatch: removed. Incorporated in the 1.0.7 + release. + * debian/patches/97_bristuff.dpatch: fixed problems to build on AMD64 with + gcc-4.0 (Closes: #297561) + + -- Kilian Krause Sat, 19 Mar 2005 22:26:45 +0100 + +asterisk (1:1.0.6-2) unstable; urgency=low + + * fixed location of sounds dir in addmailbox (Closes: #298769) + + -- Kilian Krause Wed, 9 Mar 2005 22:09:05 +0100 + +asterisk (1:1.0.6-1) unstable; urgency=low + + * New upstream release. (asterisk 1.0.6, bristuff RC7k, Closes: #298128) + * debian/control: explicitly depend on zlib1g-dev. (Closes: #296967) + * Make sure we have the newer asterisk-config to not conflict + /etc/default/asterisk. (Closes: #297719) + * as there is no longer a conflict with libnewt-dev, it was added to the + build deps for astman + * debian/control: add astman and cdr_sqlite (Closes: #259342) + * asterisk.default, asterisk.init: removed hack to load zaphfc correctly. + We'll leave this to zaptel and it's modprobe.d features. + + -- Kilian Krause Sat, 5 Mar 2005 20:03:42 +0100 + +asterisk (1:1.0.5-4) unstable; urgency=low + + * debian/patches/00list,debian/control: Enable bristuff RC7f by default. + * debian/asterisk.init, debian/asterisk.default: Cleanup zaphfc preloading + as inspired by Tzafrir Cohen. + * debian/control: Remove speex as B-D, it's broken when imported from + debian. Added autotools-dev for editline. + * deiban/rules: fix asterisk.8.gz error in lintian. Bring new autotools for + editline's configure. + * reintroduce chan_zap (Closes: #296656) + + -- Kilian Krause Thu, 24 Feb 2005 01:24:45 +0100 + +asterisk (1:1.0.5-3) unstable; urgency=low + + * debian/patches/08_debian-zaptel.dpatch, debian/control: fixed zaptel.h + include to take zaptel-source's version. + * debian/patches/97_bristuff.dpatch: + include bristuff from junghanns.net (not enabled by default now, would + close: #286797). We need libpri and zaptel with bristuff patch first. + * 18_debian-libedit.dpatch: removed due to command history problem. + (Closes:#281690) + * debian/asterisk.init: Added grace timeout of 2 secs before hard shutting + down running daemons to don't scatter incorrect warnings. Don't run the + asterisk daemon unless RUNASTERISK=yes. (Will not bind ports from chroots) + * debian/asterisk-config.default: Disabled autostart - especially when + installing in chroots this was quite annoying. + * debian/rules: Remove the asterisk.8.gz recompression. (Closes: #295220) + * debian/README.Debian: Added first version. Thanks to Tzafrir Cohen for the + template! (Closes: #270072) + * debian/asterisk.deafult: moved the /etc/default to the asterisk package, + as /etc/init.d/asterisk in there needs it. + * debian/80_skinny.dpatch: Added + http://bugs.digium.com/bug_view_page.php?bug_id=0003496. Thanks to Johan + Thelmén . (Closes:#295658) + * debian/control: remove chan_h323 from being built for now. For now it's + being replaced by asterisk-oh323 until chan_h323 does build and work ok + with latest OpenH323 again. + + -- Kilian Krause Mon, 21 Feb 2005 23:13:57 +0100 + +asterisk (1:1.0.5-2) unstable; urgency=low + + * Debian VoIP Team upload. + * asterisk.init, asterisk-config.default: probably fixed start-as-user-with- + multiple-groups-problem. + * patches/40_initgroups.dpatch: added patch from Florian Weimer + . Thanks! (Closes: #293124) + * debian/postinst: Make asterisk user's home /var/lib/asterisk upon user + request. + * debian/control: Bump libpri build-depends to 1.0.4-1. (Closes: #293990) + + -- Kilian Krause Tue, 8 Feb 2005 11:40:43 +0100 + +asterisk (1:1.0.5-1) unstable; urgency=low + + * Debian VoIP Team upload. + * New upstream release. + + * Kilian Krause: + - debian/asterisk.init: fixed multiple GID problem when starting asterisk (as + reported by Raoul Bönisch and Simon Peter). Unfortunatelly this does + remove the chance to run as real-time prio. + - debian/asterisk.init: fixed stale stop by using start-stop-server after + soft shutdown (Closes: #263879) + - debian/asterisk.init: Fixed running as root problem for #279052. At least + through the /etc/init.d/asterisk you won't be able to run asterisk as + root (not even with another username). (Closes: #279052) + - debian/asterisk.init: Added switch to run asterisk via safe_asterisk + optionally for automatic restart (Closes: #266805) + - debian/patches/01_security_hotfix_287851.dpatch: Removed, as is + incorporated in 1.0.4 upstream release. + + * Jose Carlos + - debian/rules: add a check at build time for fpm sounds. If they exist, + abort, as we must remember to remove those from sources in each new + upstream release. + - debian/patches: 20_Makefile.dpatch: updated + + -- Jose Carlos Garcia Sogo Fri, 28 Jan 2005 23:31:14 +0100 + +asterisk (1:1.0.3-2) unstable; urgency=low + + * Apply missing 25_subdirs_Makefile patch. + + -- Jose Carlos Garcia Sogo Sat, 15 Jan 2005 18:23:40 +0100 + +asterisk (1:1.0.3-1) unstable; urgency=high + + * Debian VoIP Team upload. + * New upstream version. (Closes: #284889) + + * Kilian Krause: + - ACK NMU. (Thanks Steve!): + + debian/patches/01_security_hotfix_287851.dpatch: Patched to + fix logging strings vulnerability. (Closes: #287851) + + * Jose Carlos Garcia Sogo + - Using again dpatch. + - debian/patches: populated with different patches. + - 08_debian-zaptel: Using zaptel.h file from version 1:1.0.0-2 of + zaptel-source package. + - removed sounds licensed from FreePlayMusic from source, + as the license for them is not DFSG compliant (Closes: #288429) + - applied patch to make asterisk compile on amd64 with + gcc-4.0 (Closes: #288831) + - debian/asterisk.init: + + Changed how daemon is restarted in init file. (Closes: #287025) + + Using -r in checks in init file. (Closes: #287456) + - debian/asterisk-config.default + + Run by default as group asterisk. + - Fix some lintian warnings and errors: + + Description: should start with lowercase letter. + + Bumped Standars-Version to 3.6.1. No changes needed. + + Removed duplicate dependencies. + + Recompress asterisk.8 manpage with max level (--best option) + + -- Jose Carlos Garcia Sogo Sat, 15 Jan 2005 13:11:49 +0100 + +asterisk (1:1.0.2-3.1) unstable; urgency=high + + * Non-maintainer upload. + * High-urgency upload for sarge-targetted RC bugfix + * Fix multiple format string vulnerabilities, reported by Jan + Niehusmann. Closes: #287851. + + -- Steve Langasek Sat, 8 Jan 2005 02:54:45 -0800 + +asterisk (1:1.0.2-3) unstable; urgency=low + + * Closes: #281524: running asterisk with realtime priority + * Include changes from Tzafrir Cohen + + -- Mark Purcell Thu, 2 Dec 2004 02:10:12 +1100 + +asterisk (1:1.0.2-2) unstable; urgency=low + + * fixup init.d/asterisk to logger reload. Thanks Daniel Pocock + * Closes: #260575: chan_zap.so: undefined symbol + * Build-Depends: libpri1 >= 0.6 + * Closes: #279905: dependency issue breaks voicemail setup + * Build-Depends: asterisk-sounds-main (>= 1.0.2) + * Closes: #269942: package Debian asterisk-sounds + * Rename asterisk-sounds to asterisk-sounds-main to avoid upstream + conflict + * Closes: #277404: Please split out GTK console + * Split off asterisk-gtk-console package to contain all X11 + dependancies + + -- Mark Purcell Sat, 6 Nov 2004 13:20:33 +1100 + +asterisk (1:1.0.2-1) unstable; urgency=low + + * New upstream release + * Closes: #279540: Please package newer version of asterisk + * Closes: #275808: logrotate errors and emails + + -- Mark Purcell Thu, 4 Nov 2004 18:19:09 +1100 + +asterisk (1:1.0.1-2) unstable; urgency=low + + * Closes: #275808: logrotate errors and emails + * Add init.d/asterisk logger-reload|extensions-reload options & use + logger reload in asterisk.logrotate. Thanks Daniel Pocock + + -- Mark Purcell Wed, 13 Oct 2004 22:31:22 +1000 + +asterisk (1:1.0.1-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Wed, 6 Oct 2004 14:39:12 +1000 + +asterisk (1:1.0.0-4) unstable; urgency=high + + * Urgency high for sarge release + * Closes: #273570: asterisk-sounds: sounds/letters directory is missing + + -- Mark Purcell Wed, 29 Sep 2004 07:48:16 +1000 + +asterisk (1:1.0.0-3) unstable; urgency=low + + * Closes: #273780: under ALSA, infinite-loops immediately on + installation + * Comment out autoload of chan_oss from modules.conf + * Closes: #272999: asterisk_1:0.9.1+1.0RC2-2_hppa: FTBFS: + [anaFilter.o] Error 1 + * Version 1.0.0 now builds on hppa + * Closes: #273576: chan_zap.so module is missing + * check for ../include/linux/zaptel.h in channels/Makefile + * Closes: #273572: Music on hold has wrong default directory + * refer to correct /usr/share/asterisk/mohmp3 directory + + -- Mark Purcell Tue, 28 Sep 2004 23:06:03 +1000 + +asterisk (1:1.0.0-2) unstable; urgency=medium + + * Rebuild with zaptel.h_1.0.0 and libpri-dev_1.0.0 + + -- Mark Purcell Sun, 26 Sep 2004 08:32:11 +1000 + +asterisk (1:1.0.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Fri, 24 Sep 2004 20:23:31 +1000 + +asterisk (1:0.9.1+1.0RC2-2) unstable; urgency=low + + * Use asterisk.8.gz man page + * Remove back PROC optomizations from Makefile, enable build on hppa + + -- Mark Purcell Thu, 23 Sep 2004 18:20:45 +1000 + +asterisk (1:0.9.1+1.0RC2-1) unstable; urgency=low + + * New upstream release + * Back out dpatch (Makes new upstream release straight forward) + + -- Mark Purcell Thu, 23 Sep 2004 08:35:08 +1000 + +asterisk (1:0.9.1+1.0RC1-9) unstable; urgency=low + + * Breakup monolithic patch into components. + + -- Mark Purcell Wed, 22 Sep 2004 18:47:31 +1000 + +asterisk (1:0.9.1+1.0RC1-8) unstable; urgency=medium + + * debian/patches/11_makefile-sanitize.dpatch: fixed patch to make gsm + work again. (Closes: #266167) + + -- Kilian Krause Tue, 17 Aug 2004 15:34:21 +0200 + +asterisk (1:0.9.1+1.0RC1-7) unstable; urgency=low + + * debian/rules, debian/patches/10_rollup-1.0-1.dpatch, + debian/patches/11_makefile-sanitize.dpatch: Incorporate fixes proposed by + Thiemo Seufer . + Should fix the FTBFS on hppa. + + -- Kilian Krause Sun, 15 Aug 2004 20:16:26 +0200 + +asterisk (1:0.9.1+1.0RC1-6) unstable; urgency=low + + * debian/control: suggest gnomemeeting. (At least tell people, which clients + they need) Also add dpatch as Build-Dep. (Closes: #265036) + * Closes: #262011: SIP cancels fail due to Request-URI mismatch + * debian/patches/20_chan_sip.dpatch: Apply chan_sip patch from Jan Niehusmann + + -- Kilian Krause Sat, 14 Aug 2004 14:05:36 +0000 + +asterisk (1:0.9.1+1.0RC1-5) unstable; urgency=low + + * debian/control: make sure we're rebuilding with rtti enabled openh323 + * debian/rules: make svn-buildpacakge not choke on failing clean target + + -- Kilian Krause Mon, 9 Aug 2004 14:37:38 +0200 + +asterisk (1:0.9.1+1.0RC1-4) unstable; urgency=low + + * Cleanup wierd .diff.gz file + + -- Mark Purcell Wed, 28 Jul 2004 19:00:32 +1000 + +asterisk (1:0.9.1+1.0RC1-3) unstable; urgency=low + + * Rebuild with existing libtonezone1 + + -- Mark Purcell Wed, 28 Jul 2004 18:10:52 +1000 + +asterisk (1:0.9.1+1.0RC1-2) unstable; urgency=low + + * Cleanup codecs/ilbc/Makefile to remove -march sillyness (which is + already defined above anyway + * Debian already has libedit.a Don't build, fails on mips anyway due to old config.guess + + -- Mark Purcell Wed, 21 Jul 2004 19:21:51 +1000 + +asterisk (1:0.9.1+1.0RC1-1) unstable; urgency=low + + * New upstream release (Closes: Bug#260370) + * Closes: #247401: doesn't upgrade cleanly - initscript + problems ? + + -- Mark Purcell Tue, 20 Jul 2004 19:20:37 +1000 + +asterisk (1:0.9.1-3) unstable; urgency=low + + * allow init.d/asterisk distribution via GPL + * Remove -I/usr/include/ptlib/unix from h323 Makefile, Thanks Ray + Dassen (Closes: Bug#259564) + * Closes: #259572: Unmet dependencies + * Maintainer: Debian VoIP Team + Uploaders: Mark Purcell , + Kilian Krause , + Jose Carlos Garcia Sogo , + Goedson Teixeira Paixao , + Santiago Garcia Mantinan + * Next step. Get this all back into svn! + + -- Mark Purcell Sun, 18 Jul 2004 10:40:22 +1000 + +asterisk (1:0.9.1-2) unstable; urgency=low + + * Rebuild with libopenh323-dev (1.12.2-4) from sarge for H.323 support + + -- Mark Purcell Wed, 14 Jul 2004 18:35:42 +1000 + +asterisk (1:0.9.1-1) unstable; urgency=low + + * New upstream release. Previous version WAS tagged as 1.0 in CVS :-( + * Closes: #249046: no ring indication + * Closes: #254654: init.d/asterisk restart kills asterisk + * Build-Depends: libgtk1.2-dev, libspeex-dev (Closes: Bug#253639) + * Turn off broken H.323 support (Closes: Bug#255662) + * Closes: #250302: Package description is slightly outdated and + incorrect + * Closes: #255685: Syntax error in configuration file, + /etc/asterisk/sip.conf + * Closes: #228722: please add postgres support for asterisk + + -- Mark Purcell Sat, 3 Jul 2004 22:47:41 +1000 + +asterisk (1.0-2) unstable; urgency=low + + * Rebuild for new libopenh323-dev + + -- Mark Purcell Sat, 3 Jul 2004 21:56:58 +1000 + +asterisk (1.0-2) unstable; urgency=low + + * Merged 1.0-1 and 0.9.0-2 + + -- Jose Carlos Garcia Sogo Tue, 8 Jun 2004 00:10:16 +0200 + +asterisk (1.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Mon, 31 May 2004 21:51:18 +1000 + +asterisk (0.9.0-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Sun, 18 Apr 2004 22:51:59 +1000 + +asterisk (0.7.2-4) unstable; urgency=low + + * Update channels/h323/Makefile Closes: #235010: + asterisk_0.7.2-3(unstable/sparc): arch-dependent CFLAGS + + -- Mark Purcell Fri, 27 Feb 2004 12:14:26 +1100 + +asterisk (0.7.2-3) unstable; urgency=low + + * Add Build-Depends: libopenh323-dev (Closes: Bug#233649) + + -- Mark Purcell Tue, 24 Feb 2004 11:55:57 +1100 + +asterisk (0.7.2-2) unstable; urgency=low + + * Build-Depends: libpri-dev (Closes:Bug#199548) + * Include Suggests: rate-engine + + -- Mark Purcell Thu, 5 Feb 2004 17:26:02 +1100 + +asterisk (0.7.2-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Thu, 5 Feb 2004 16:25:28 +1100 + +asterisk (0.7.1-3) unstable; urgency=low + + * Build with libopenh323 support (Closes: Bug#195233) + * Include Suggests: ohphone + + -- Mark Purcell Tue, 3 Feb 2004 08:47:47 +1100 + +asterisk (0.7.1-2) unstable; urgency=low + + * Remove ppc fixup in codecs/lpc10/Makefile again. Prevents build on + ia64, mk68 et al + + -- Mark Purcell Fri, 16 Jan 2004 11:46:57 +1100 + +asterisk (0.7.1-1) unstable; urgency=low + + * New upstream release + * i686 optomised build + + -- Mark Purcell Thu, 15 Jan 2004 23:06:01 +1100 + +asterisk (0.7.0-1) unstable; urgency=low + + * LCA2004 release. Thanks Internode for the wireless access + * New upstream release + * Clean up bad symlinks in vm (Closes: Bug#220714) + * Apply restart gracefully patch from Nick Estes (Closes: Bug#217004) + * Fixup permission/ ownership problems in /etc/asterisk (Closes: + Bug#216995) + * Fixup master call log issues (Closes: Bug#217003) + * Remove Build-Depends: libmysql-dev - see doc/README.mysql (Closes: + Bug#222255) + * Build with include/linux/zaptel.h from zaptel-0.8.0.tar.gz + * Include Build-Depends: postgresql-dev + * Include Build-Depends: unixodbc-dev + + -- Mark Purcell Wed, 14 Jan 2004 10:10:02 +1100 + +asterisk (0.5.0-3) unstable; urgency=low + + * Remove Suggests: gnophone (Orphaned and removed) + * Clean up bad symlinks in vm (Closes: Bug#220714) + * Apply restart gracefully patch from Nick Estes (Closes: Bug#217004) + * Fixup permission/ ownership problems in /etc/asterisk (Closes: + Bug#216995) + * Fixup master call log issues (Closes: Bug#217003) + + -- Mark Purcell Tue, 13 Jan 2004 21:01:16 +1100 + +asterisk (0.5.0-2) unstable; urgency=low + + * Build-Depends: debhelper (>= 4.0.4) (Closes: Bug#216725) + + -- Mark Purcell Fri, 31 Oct 2003 06:59:11 +1100 + +asterisk (0.5.0-1) unstable; urgency=low + + * New upstream release (Closes: Bug#196761) + * Build with include/linux/zaptel.h from zaptel-0.7.0.tar.gz + + -- Mark Purcell Tue, 16 Sep 2003 23:40:05 +1000 + +asterisk (0.4.0-6) unstable; urgency=low + + * Include dh_install in debian/rules (Closes: Bug#207879) + + -- Mark Purcell Wed, 10 Sep 2003 23:07:37 +1000 + +asterisk (0.4.0-5) unstable; urgency=low + + * Rebuild for libnewt-utf8-0 (NOT AVAILABLE) + * Build-Depend: libnewt-dev + + -- Mark Purcell Sat, 5 Jul 2003 15:17:57 +1000 + +asterisk (0.4.0-4) unstable; urgency=low + + * include Build-Depends: libgtk1.2-dev (Closes: Bug#194489) + + -- Mark Purcell Sat, 5 Jul 2003 15:12:02 +1000 + +asterisk (0.4.0-3) unstable; urgency=low + + * Rebuild for libtonezone-0.60, libzaptel-0.60 + * Change codecs/codec_gsm.c:#include (Closes: Bug#190082) + * Start after isdnactivecards debian/rules dh_installinit (Closes: + Bug#191062) + * Change to Build-Depends: libnetw-utf8-dev + * Update Tormenta URL in debian/control + + -- Mark Purcell Sat, 10 May 2003 16:58:03 +1000 + +asterisk (0.4.0-2) unstable; urgency=low + + * Remove ppc 'fixup' in codecs/lpc10/Makefile (Closes: Bug#189743) + * Updated description (Closes: Bug#168779) + + -- Mark Purcell Sun, 20 Apr 2003 08:37:49 +1000 + +asterisk (0.4.0-1) unstable; urgency=low + + * New upstream release + * cdr/Makefile CFLAGS+=-fPIC -DPIC (Closes: Bug#188915) + * Include include/linux/zaptel.h from zaptel-0.6.0.tar.gz + + -- Mark Purcell Sat, 19 Apr 2003 21:11:45 +1000 + +asterisk (0.3.0-2) unstable; urgency=low + + * Build-Depends: libmysqlclient-dev, libgtk2.0-dev (Closes: Bug#188188) + + -- Mark Purcell Thu, 10 Apr 2003 20:08:38 +1000 + +asterisk (0.3.0-1) unstable; urgency=low + + * New upstream release + * channels/chan_zap_new.c is depreciated + * Debian patches to upstream Makefile are a lot cleaner!! + * Update /etc/init.d/asterisk stop to use 'stop now' command + * Hack AST_DATA_DIR to provide asterisk-sounds under /usr/share/asterisk + * `chown asterisk.asterisk /var/lib/asterisk` on install + * Remove dh_undocumented + * chan_oss failing again :-( + * Force Depends: libspeex1 (dpkg-shlibs bug?) + + -- Mark Purcell Tue, 8 Apr 2003 21:27:52 +1000 + +asterisk (0.2.0-cvs20030103-3) unstable; urgency=low + + * Include Build-Depends: libasounds2-dev + * Update channels/Makefile to include Debian zaptel.h dir (Closes: Bug#178868) + * Thanks to mdz for the new libzap-dev and other patches + + -- Mark Purcell Sat, 8 Mar 2003 15:45:40 +1100 + +asterisk (0.2.0-cvs20030103-2) unstable; urgency=low + + * Revert -march in codecs/lpc10/Makefile + + -- Mark Purcell Sat, 25 Jan 2003 08:38:51 +1100 + +asterisk (0.2.0-cvs20030103-1) unstable; urgency=low + + * New upstream release + * Use invoke-rc.d in logrotate script (Closes: Bug#174633) + + -- Mark Purcell Fri, 24 Jan 2003 21:57:43 +1100 + +asterisk (0.2.0-4) unstable; urgency=low + + * Add Build-Depends: bison (Closes: Bug#169312) + + -- Mark Purcell Sun, 17 Nov 2002 09:03:01 +1100 + +asterisk (0.2.0-3) unstable; urgency=low + + * Fixed bison problems. ThanksMartijn + * Move gethostname in app_voicemail.c (Closes: Bug#168936) + * Move 0.2.0 to unstable. If you have OSS problems use asterisk/testing. + + -- Mark Purcell Fri, 15 Nov 2002 20:36:03 +1100 + +asterisk (0.2.0-2) experimental; urgency=low + + * Incorporate changes from mdz (Remove graphviz, build astman) + * Force Build-Deps: bison-1.35 :( + + -- Mark Purcell Sat, 26 Oct 2002 12:59:12 +1000 + +asterisk (0.2.0-1) experimental; urgency=low + + * New upstream release (Closes: Bug#163852) + * Uploaded to experimental as I am having problems with the chan_oss driver + which is a critial component. + + -- Mark Purcell Wed, 9 Oct 2002 08:02:38 +1000 + +asterisk (0.1.12-5) unstable; urgency=low + + * Remove chown against /var/lib/asterisk (Closes: Bug#154774) + * Fixup vm symlink (Closes: Bug#158800) + * Fixup location of iaxtel.pub keys + + -- Mark Purcell Sun, 8 Sep 2002 20:56:24 +1000 + +asterisk (0.1.12-4) unstable; urgency=low + + * Seperate into indep packages; asterisk, asterisk-[sounds,dev,doc] + * Sounds & images from /var/lib/asterisk to FHS compliant /usr/share/asterisk + * Remove DEBUG options from normal build + * Include Build-Depends: doxygen + + -- Mark Purcell Wed, 24 Jul 2002 15:07:51 +1000 + +asterisk (0.1.12-3) unstable; urgency=low + + * Update Description + * Use dpkg-architecture to set processor optimisations (Closes: #153175) + + -- Mark Purcell Wed, 17 Jul 2002 21:23:33 +1000 + +asterisk (0.1.12-2) unstable; urgency=low + + * Fixup build check for /etc/asterisk + + -- Mark Purcell Tue, 9 Jul 2002 07:32:17 +1000 + +asterisk (0.1.12-1) unstable; urgency=low + + * New upstream release + * Fixup typo in /etc/init.d/asterisk + * Include [cdr_mysql.so] => (MySQL CDR Backend) + * Use excellent init.d script idea from Sim IJskes + * Fixup broken postinst & postinst scripts + + -- Mark Purcell Mon, 8 Jul 2002 23:07:27 +1000 + +asterisk (0.1.11-5) unstable; urgency=low + + * Include zaptel support (Closes: Bug#151274) + + -- Mark Purcell Fri, 5 Jul 2002 23:59:17 +1000 + +asterisk (0.1.11-4) unstable; urgency=low + + * Add init.d from Matt Zimmerman (Closes: Bug#150573) + * More updates from Matt Zimmerman: (Closes: Bug#151201) + - place socket and fifo in /var/run/asterisk instead of /var/run + - fix mkfifo call (bug uncovered by running as non-root), patch + sent upstream also + - create postinst with necessary adduser and chown calls + * Install logrotate from Matt Zimmerman (Closes: Bug#151198) + * Disable geteuid check to allow running as non-root + * Add asterisk to audio group by default + + -- Mark Purcell Sat, 29 Jun 2002 01:34:56 +1000 + +asterisk (0.1.11-3) unstable; urgency=high + + * Update cdr/Makefile to include CFLAGS+=-fPIC -DPIC (Closes: Bug#144052) + + -- Mark Purcell Sat, 27 Apr 2002 21:19:32 +1000 + +asterisk (0.1.11-2) unstable; urgency=low + + * Move from non-us to main/comm + * Update copyright file to reflect upstream CVS LICENCE change to permit + linking with OpenSSL/ OpenH323 (Closes: Bug#141164) + + -- Mark Purcell Fri, 19 Apr 2002 20:11:58 +1000 + +asterisk (0.1.11-1) unstable; urgency=low + + * New upstream release + * Update debian/control + * Include README.cdr & README.iax + + -- Mark Purcell Mon, 18 Mar 2002 15:46:39 +1100 + +asterisk (0.1.10-3) unstable; urgency=low + + * Include CFLAGS+=-fPIC -DPIC in res/Makefile for hppa build + + -- Mark Purcell Fri, 1 Mar 2002 20:58:02 +1100 + +asterisk (0.1.10-2) unstable; urgency=low + + * Change Build-Depends: libssl-dev (Closes: Bug#134821) + + -- Mark Purcell Wed, 20 Feb 2002 22:28:35 +1100 + +asterisk (0.1.10-1) unstable; urgency=low + + * New upstream release + + -- Mark Purcell Wed, 20 Feb 2002 22:28:00 +1100 + +asterisk (0.1.9-5) unstable; urgency=low + + * Better make that Architecture: any if I want this to autobuild :-) + + -- Mark Purcell Wed, 2 Jan 2002 13:00:09 +1100 + +asterisk (0.1.9-4) unstable; urgency=low + + * Exclude MMX optimsed asm codecs/gsm/src/k6opt.s to enable non-x86 & + non-k6 builds (Closes: Bug#127225) + + -- Mark Purcell Wed, 2 Jan 2002 12:59:38 +1100 + +asterisk (0.1.9-3) unstable; urgency=low + + * New maintainer (Closes: Bug#123497) + * Set Arch to i386 as this contains x86 assember code + + -- Mark Purcell Sat, 29 Dec 2001 10:25:21 +1100 + +asterisk (0.1.9-2) unstable; urgency=high + + * apps/Makefile, codecs/gsm/Makefile: Missed an -mpentium in CFLAGS. + Closes: #126552. + + -- Matej Vela Thu, 27 Dec 2001 04:00:50 +0100 + +asterisk (0.1.9-1) unstable; urgency=medium + + * QA upload. + * New upstream version. + * Package is orphaned; maintainer set to Debian QA Group. + * debian/postrm: Ensure correct exit status. Closes: #105523. + * debian/control: s/API's/APIs/ Closes: #124423. + * debian/conffiles: Already handled by debhelper; removed. + * Conforms to Standards version 3.5.6: + * debian/copyright: Include module licensing exception and GSM and + ADPCM copyrights. + * debian/rules: + * Use dh_undocumented rather than a verbatim copy of undocumented.7. + * Pass ChangeLog to dh_installchangelogs. + * Support DEB_BUILD_OPTIONS. + + -- Matej Vela Tue, 25 Dec 2001 19:16:48 +0100 + +asterisk (0.1.6-1.2) unstable; urgency=low + + * NMU + * Fix makefiles, add -fPIC to builds. Closes: #104779 + + -- LaMont Jones Sun, 15 Jul 2001 15:15:46 -0600 + +asterisk (0.1.6-1.1) unstable; urgency=low + + * NMU with permission of Raphael Bossek. + * Corrected an error in channels/adtranvofr.h that prevented + big endian from compiling. (closes: #87273, #89868, #93913) + * Added build dependencies. + * Added the location of the upstream source to debian/copyright. + + -- Adrian Bunk Tue, 15 May 2001 00:22:31 +0200 + +asterisk (0.1.6-1) unstable; urgency=low + + * New upstream version. + + -- Raphael Bossek Mon, 19 Feb 2001 15:48:43 +0100 + --- asterisk-1.6.2.0~beta1.orig/debian/rules +++ asterisk-1.6.2.0~beta1/debian/rules @@ -0,0 +1,238 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +export PROC := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU) + +ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) + BUILDFLAGS += OPTIMIZE=-O0 +else + BUILDFLAGS += OPTIMIZE=-O2 +endif +BUILDFLAGS += MAKECMDGOALS=dont-optimize + +# show full gcc arguments instead of [CC] and [LD] +BUILDFLAGS += NOISY_BUILD=yes + +# Force music files selection: +BUILDFLAGS += MENUSELECT_MOH= \ + ASTDATADIR=/usr/share/asterisk \ + ASTVARRUNDIR=/var/run/asterisk \ + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +include /usr/share/quilt/quilt.make + +DEBVERSION:=$(shell head -n 1 debian/changelog \ + | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') +DEB_NOEPOCH_VERSION:=$(shell echo $(DEBVERSION) | cut -d':' -f 2) +DEB_SRC_VERSION:=$(shell echo $(DEB_NOEPOCH_VERSION) | sed -e 's/-[0-9.]*$$//') +UPVERSION:=$(shell echo $(DEB_SRC_VERSION) | sed -e 's/[.~]dfsg//' -e 's/~\(rc[0-9]\)/-\1/') + +FILENAME := asterisk_$(DEB_SRC_VERSION).orig.tar.gz +UPFILENAME := asterisk_$(UPVERSION).orig.tar.gz +URL := http://downloads.digium.com/pub/asterisk/releases/asterisk-$(UPVERSION).tar.gz + +# make sure we have 'fetch' . We need to have either wget or fetch +# on the system. However it is generally not a good idea to actually +# get remote tarballs at build time. So if nither wget nor fetch +# happen to be installed, the configure script will find a dummy +# fetch script that always returns an error. +FETCH_ENV = PATH=$$PATH:$(CURDIR)/debian/dummyprogs + + +check-sounds: + ( [ ! -f sounds/asterisk-moh-freeplay-wav.tar.gz ] && \ + [ ! -f sounds/fpm-calm-river.mp3 ] && \ + [ ! -f sounds/fpm-sunshine.mp3 ] && \ + [ ! -f sounds/fpm-world-mix.mp3 ] ) || \ + (echo "WARNING: non-free fpm sounds must be removed from sources before packaging." ; false ) + touch $@ + +config.status: check-sounds patch + dh_testdir + + [ -f .version.bak ] || cp -a .version .version.bak + echo $(DEB_NOEPOCH_VERSION) > .version + + if [ ! -r configure.debian_sav ]; then cp -a configure configure.debian_sav; fi + #./bootstrap.sh # also runs autoonf. TODO: currently not needed. + + chmod 755 $(CURDIR)/debian/dummyprogs/fetch + + $(FETCH_ENV) ./configure \ + --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --with-cap \ + --with-gsm \ + --without-imap \ + --with-pwlib=/usr/share/pwlib/include/ \ + --without-h323 + + +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: config.status + dh_testdir + + $(FETCH_ENV) $(MAKE) $(BUILDFLAGS) + + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: config.status + dh_testdir + + # Add here command to compile/build the arch indep package. +ifndef ASTERISK_NO_DOCS + $(FETCH_ENV) $(MAKE) progdocs +endif + touch $@ + + +clean: cleaned unpatch +# make clean breaks if we don't patch it up, hence the dependency +cleaned: patch + dh_testdir + dh_testroot + + # Add here commands to clean up after the build process. + $(MAKE) distclean + -$(RM) -rf debian/build + + if [ -r configure.debian_sav ]; then mv configure.debian_sav configure; fi + -test -d configs && chmod -x configs/*.sample + -$(RM) -f build-arch-stamp build-indep-stamp config.status check-sounds menuselect.makeopts + + [ ! -f .version.bak ] || mv .version.bak .version + + dh_clean + +install: install-arch install-indep +install-arch: build-arch + dh_testdir + dh_testroot + dh_clean -k -s + dh_installdirs -s + + $(FETCH_ENV) $(MAKE) $(BUILDFLAGS) DESTDIR=$(CURDIR)/debian/tmp install + cp -a configs $(CURDIR)/debian/tmp/usr/share/asterisk/conf + + dh_install -s --sourcedir=debian/tmp + + $(RM) -f $(CURDIR)/debian/asterisk/usr/sbin/streamplayer + $(RM) -f $(CURDIR)/debian/asterisk/usr/sbin/stereorize + $(RM) -f $(CURDIR)/debian/asterisk/usr/sbin/hashtest* + touch $@ + +install-indep: build-indep + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + + $(FETCH_ENV) $(MAKE) $(BUILDFLAGS) DESTDIR=$(CURDIR)/debian/tmp install samples + + dh_install -i --sourcedir=debian/tmp + + # create a simple config + echo "; please read doc/manager.txt" > $(CURDIR)/debian/asterisk-config/etc/asterisk/manager.d/README.conf + +# Build architecture-independent files here. +binary-indep: install-indep + dh_testdir -i + dh_testroot -i + dh_installlogrotate -i + dh_installdocs -i -XREADME.cygwin + dh_installexamples -i + dh_installcron -i + dh_installchangelogs ChangeLog -i + dh_link -i + dh_compress -i + dh_fixperms -i + # should follow dh_fixperms; asterisk configurations may contain + # sensitive information, such as passwords + chmod o-rwx $(CURDIR)/debian/asterisk-config/etc/asterisk/* + chmod o+rx $(CURDIR)/debian/asterisk-config/etc/asterisk/manager.d + dh_installdeb -i + rm -rf $(CURDIR)/debian/asterisk-doc/usr/share/doc/asterisk-doc/doc/api + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: install-arch + dh_testdir -a + dh_testroot -a + dh_installlogrotate -a + dh_installdocs -a + dh_installman utils/*.1 doc/*.8 contrib/scripts/*.8 + dh_installexamples -a + dh_installchangelogs ChangeLog -a + dh_installinit -a -- defaults 21 + dh_strip -a --dbg-package=asterisk-dbg + dh_link -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a +# rm -f debian/asterisk/usr/lib/asterisk/modules/chan_h323.so + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +print-version: + @@echo "Debian version: $(DEBVERSION)" + @@echo "Upstream version: $(UPVERSION)" + +TMP_TARBALL_TOP=../tarballs/asterisk-$(UPVERSION).tmp/asterisk-$(UPVERSION) +get-orig-source: + @@dh_testdir + @@[ -d ../tarballs/. ]||mkdir -p ../tarballs + @@echo Downloading $(UPFILENAME) from $(URL) ... + @@wget -nv -T10 -t3 -O ../tarballs/$(UPFILENAME) $(URL) + @@echo Repacking as DFSG-free... + @@mkdir -p ../tarballs/asterisk-$(UPVERSION).tmp/ + @@cd ../tarballs/asterisk-$(UPVERSION).tmp ; \ + tar xfz ../$(UPFILENAME) + @@rm -f $(TMP_TARBALL_TOP)/sounds/fpm-*.mp3 + @@rm -f $(TMP_TARBALL_TOP)/sounds/asterisk-moh-freeplay-wav.tar.gz + @@rm -rf $(TMP_TARBALL_TOP)/codecs/ilbc/* + # in case the tarball is not clean: + @@rm -rf $(TMP_TARBALL_TOP)/*/.makeopts + @@rm -rf $(TMP_TARBALL_TOP)/*/.*.makeopts + @@rm -rf $(TMP_TARBALL_TOP)/*/.moduleinfo + @@rm -rf $(TMP_TARBALL_TOP)/*/.*.moduleinfo + @@rm -rf $(TMP_TARBALL_TOP)/menuselect-tree + @@printf "all:\nclean:\n.PHONY: all clean\n" > \ + $(TMP_TARBALL_TOP)/codecs/ilbc/Makefile + @@rm -f $(TMP_TARBALL_TOP)/codecs/codec_ilbc.c + @@rm -rf $(TMP_TARBALL_TOP)/contrib/firmware/ + @@cd ../tarballs/asterisk-$(UPVERSION).tmp ; \ + tar cfz ../$(FILENAME) * + @@echo Cleaning up... + @@$(RM) -rf ../tarballs/asterisk-$(UPVERSION).tmp/ + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install clean patch unpatch --- asterisk-1.6.2.0~beta1.orig/debian/watch +++ asterisk-1.6.2.0~beta1/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=dversionmangle=s/\~dfsg//,downloadurlmangle=s/.*ref=// \ + http://downloads.digium.com/pub/telephony/asterisk/releases/asterisk-([0-9.]*).tar.gz debian svn-upgrade --- asterisk-1.6.2.0~beta1.orig/debian/astgenkey.8 +++ asterisk-1.6.2.0~beta1/debian/astgenkey.8 @@ -0,0 +1,129 @@ +.\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $ +.\" +.\" transcript compatibility for postscript use. +.\" +.\" synopsis: .P! +.\" +.de P! +.fl +\!!1 setgray +.fl +\\&.\" +.fl +\!!0 setgray +.fl \" force out current output buffer +\!!save /psv exch def currentpoint translate 0 0 moveto +\!!/showpage{}def +.fl \" prolog +.sy sed \-e 's/^/!/' \\$1\" bring in postscript file +\!!psv restore +. +.de pF +.ie \\*(f1 .ds f1 \\n(.f +.el .ie \\*(f2 .ds f2 \\n(.f +.el .ie \\*(f3 .ds f3 \\n(.f +.el .ie \\*(f4 .ds f4 \\n(.f +.el .tm ? font overflow +.ft \\$1 +.. +.de fP +.ie !\\*(f4 \{\ +. ft \\*(f4 +. ds f4\" +' br \} +.el .ie !\\*(f3 \{\ +. ft \\*(f3 +. ds f3\" +' br \} +.el .ie !\\*(f2 \{\ +. ft \\*(f2 +. ds f2\" +' br \} +.el .ie !\\*(f1 \{\ +. ft \\*(f1 +. ds f1\" +' br \} +.el .tm ? font underflow +.. +.ds f1\" +.ds f2\" +.ds f3\" +.ds f4\" +'\" t +.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n +.TH ASTGENKEY 8 "May 14th, 2005" "Asterisk" "Linux Programmer's Manual" +.SH NAME +.B astgenkey +-- generates keys for for Asterisk IAX2 RSA authentication +.SH SYNOPSIS +.PP +.B astgenkey +[ -q ] [ -n ] [ \fIkeyname\fP ] + +.SH DESCRIPTION +.B genzaptelconf +This script generates an RSA private and public key pair in PEM format +for use by Asterisk. The private key should be kept a secret, as it can +be used to fake your system's identity. Thus by default (without the +option +.I -n +) the script will create a passphrase-encrypted copy of your secret key: +without entering the passphrase you won't be able to use it. + +However if you want to use such a key with Asterisk, you'll have to start +it interactively, because the scripts that start asterisk can't use that +encrypted key. + +The key is identified by a name. If you don't write the name on the +command-line you'll be prompted for one. The outputs of the script are: + +.I name\fB.pub +.RS +The public key: not secret. Send this to the other side. +.RE + +.I name\fB.key +.RS +The private key: secret. +.RE + +Those files should be copied to +.I /var/lib/asterisk/keys + +(The private key: on your system. The public key: on other systems) + +To see the currently-installed keys from the asterisk CLI, use the command + +.RS +show keys +.RE + +.SH OPTIONS +.B -q +.RS +Run quietly. +.RE + +.B -n +.RS +Don't encrypt the private key. +.RE + +.SH FILES +.I /var/lib/asterisk/keys +.RS +.RE + +.SH "SEE ALSO" +asterisk(8), genrsa(1), rsa(1), + +http://www.voip-info.org/wiki-Asterisk+iax+rsa+auth + +.SH "AUTHOR" +This manual page was written by Tzafrir Cohen +Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 any +later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. --- asterisk-1.6.2.0~beta1.orig/debian/control +++ asterisk-1.6.2.0~beta1/debian/control @@ -0,0 +1,162 @@ +Source: asterisk +Priority: optional +Section: comm +Maintainer: Debian VoIP Team +Uploaders: Mark Purcell , Kilian Krause , Tzafrir Cohen , Faidon Liambotis +Build-Depends: quilt, + debhelper (>= 5), + libreadline5-dev, + libgsm1-dev, + libpt-1.11.2-dev, + libssl-dev, +# libtonezone-dev (>= 1:2.0.0), + libtonezone-dev, + libasound2-dev, + libpq-dev, + libxml2-dev, + unixodbc-dev, + libpri-dev, +# libss7-dev, + dahdi-source, + autotools-dev, + libnewt-dev, +# libsqlite-dev, + libspeex-dev, + graphviz, +# libcurl4-openssl-dev | libcurl-dev, + doxygen, + gsfonts, + libpopt-dev, +# libopenh323-dev (>= 1.17.4), + libiksemel-dev, + libradiusclient-ng-dev, + freetds-dev, + libvorbis-dev, + libsnmp9-dev, + libgmime-2.0-2-dev | libgmime2-dev, + liblua5.1-0-dev, + libcap-dev, + zlib1g-dev +# libtonezone with an epoch of 1 is from Zaptel. TODO: this is lousy. +#Build-Conflicts: libtonezone-dev (>> 1:1.0.0-1) +Standards-Version: 3.8.0 +Homepage: http://www.asterisk.org/ +Vcs-Svn: svn://svn.debian.org/pkg-voip/asterisk/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/asterisk/?op=log + +Package: asterisk +Architecture: any +Section: comm +Depends: ${shlibs:Depends}, asterisk-config (= ${source:Version}) | asterisk-config-custom, adduser, asterisk-sounds-main, dahdi +Conflicts: asterisk-classic, asterisk-bristuff, asterisk-chan-capi (<< 1.1.1-1~) +Replaces: asterisk-classic, asterisk-bristuff +Provides: asterisk-1.6.1 +Suggests: ekiga, ohphone, twinkle, kphone, asterisk-doc, asterisk-dev, asterisk-h323 +Description: Open Source Private Branch Exchange (PBX) + Asterisk is an Open Source PBX and telephony toolkit. It is, in a + sense, middleware between Internet and telephony channels on the bottom, + and Internet and telephony applications at the top. + . + Asterisk can be used with Voice over IP (SIP, H.323, IAX and more) standards, + or the Public Switched Telephone Network (PSTN) through supported hardware. + . + Supported hardware: + . + * All Wildcard (tm) ISDN PRI cards from Digium (http://www.digium.com) + * HFC-S/HFC-4S-based ISDN BRI cards (Junghanns.NET, beroNet, Digium etc.) + * All TDM (FXO/FXS) cards from Digium + * Various clones of Digium cards such as those by OpenVox + * Xorcom Astribank USB telephony adapter (http://www.xorcom.com) + * Voicetronix OpenPCI, OpenLine and OpenSwitch cards + * CAPI-compatible ISDN cards (using the add-on package chan-capi) + * Full Duplex Sound Card (ALSA or OSS) supported by Linux + * Tormenta T1/E1 card (http://www.zapatatelephony.org) + * QuickNet Internet PhoneJack and LineJack (http://www.quicknet.net) + . + This is the main package that includes the Asterisk daemon and most channel + drivers and applications. + +Package: asterisk-h323 +Architecture: any +Section: comm +Depends: asterisk, ${shlibs:Depends} +Description: H.323 protocol support for Asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This channel driver (chan_h323) provides support for the H.323 protocol + for Asterisk. This is an implementation originally contributed by NuFone and + nowdays maintained and distributed by Digium, Inc. Hence, it is considered + the official H.323 chanel driver. + . + This is one of many H.323 channel implementations for Asterisk with others + being chan_oh323 and chan_ooh323c, distributed by Debian as asterisk-oh323 and + asterisk-ooh323c, respectively. + . + For more information about the Asterisk PBX, have a look at the Asterisk + package. + +Package: asterisk-doc +Recommends: asterisk +Section: doc +Priority: extra +Architecture: all +Description: Source code documentation for Asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the documentation for configuring an Asterisk system. + +Package: asterisk-progdoc +Recommends: asterisk +Section: doc +Priority: extra +Architecture: all +Description: Source code documentation for Asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the source code documentation needed if you wish to + extend Asterisk by writing loadable modules for it. + +Package: asterisk-dev +Architecture: all +Recommends: asterisk +Section: devel +Priority: extra +Replaces: asterisk (<< 1:1.4.21.1~dfsg-1) +Description: Development files for Asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the include files used if you wish to compile a + package which requires Asterisk's source file headers. + +Package: asterisk-dbg +Architecture: any +Depends: asterisk (= ${binary:Version}) +Section: debug +Priority: extra +Description: Debugging symbols for Asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package includes the debugging symbols useful for debugging + Asterisk. The debugging symbols are used for execution tracing and core + dump analysis. + +Package: asterisk-sounds-main +Architecture: all +Recommends: asterisk +Replaces: asterisk-sounds-extra +Section: comm +Description: Core Sound files for Asterisk (English) + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the default (core) sound files in English, useful for + the operation of Asterisk. + +Package: asterisk-config +Recommends: asterisk +Conflicts: asterisk-config-custom +Architecture: all +Section: comm +Description: Configuration files for Asterisk + Asterisk is an Open Source PBX and telephony toolkit. + . + This package contains the default configuration files of Asterisk. --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-doc.docs +++ asterisk-1.6.2.0~beta1/debian/asterisk-doc.docs @@ -0,0 +1,8 @@ +BUGS +README +CREDITS +CHANGES +UPGRADE.txt +doc +contrib +configs --- asterisk-1.6.2.0~beta1.orig/debian/README.Debian +++ asterisk-1.6.2.0~beta1/debian/README.Debian @@ -0,0 +1,92 @@ +Welcome to the world of telephone switch owners. Asterisk is a quite powerful +and probably one of the feature-richest open-source PBXes out there. To get you +a brief impression where to start tweaking, we've included this doc. (Thanks to +Tzafrir Cohen for a proposal of this) + +File Locations +============== +See /etc/asterisk/asterisk.conf for pathnames. All the configuration is done +from the *.conf files there. + +Sounds reside at /usr/share/asterisk/sounds. Voicemail mailboxes are below +/var/spool/asterisk/voicemail using symlinks. + +User, Groups, Permissions +========================= +By default the package will create user and group 'asterisk' and will run as +them. It will run with real-time priority (-p) by default. It will also add +itself to the group audio to enable the daemon to access sound cards and to +the group dialout to access Zaptel devices. Running as root is disabled in +/etc/init.d/asterisk for security reasons. + +To change those values you can edit /etc/default/asterisk. + +Alternatively, edit /etc/asterisk/asterisk.conf . + +init.d Script Commands +====================== +In addition to reload, that runs the asterisk CLI command 'reload' there +are also extensions-reload ('extensions reload') and logger-reload +('logger-reload') to load only parts of the configuration file. + +Asterisk supports a number of non-default parameters at startup. For debugging +it is often useful to run 'asterisk -U asterisk -vvvgc' from the console. Add +more -v for even higher verbosity. You can attach a remote console to a running +asterisk daemon with 'asterisk -vcr'. When testing, make sure to use the "-U +asterisk", or asterisk may write files with root ownership. In that case you +might not be able to restart the daemon without altering permissions to the +files first. + +Alternatively use '/etc/init.d/asterisk debug'. + +Asterisk is run with a umask of 007 by default, to allow writing +group-owned voicemail files. To change this value, set the value if 'UMASK' +in /etc/default/asterisk . + +Getting started with config and more features +============================================= +Of course the default config is far from a plug'n'play for every environment. +You need to setup a proper dialplan in extensions.conf, remove the demo entries +and maybe remove FreeWorldDialup too in case you don't participate there. For +more info on how to setup a proper dialplan, fax, enum and configuration of +asterisk, please checkout + http://www.voip-info.org/wiki-Asterisk+quickstart + http://www.voip-info.org/wiki-Asterisk+config+files +or the larger HowTos at: + http://www.automated.it/guidetoasterisk.htm +or + http://www.asteriskdocs.org/ (Asterisk Handbook) + + +Open Files Limit +================ +Asterisk uses one file-handle (and sometimes more) per call. Hence if you +have many simultaneous calls, you often bump into the per-process limit +of 1024 file handles, and get the error: "Too man open files". + +To enlarge that limit, set: MAXFILES in /etc/default/asterisk . + + +Missing Modules +=============== +The following modules are included in the source tree of Asterisk but +were not built: + +* apps/app_ivrdemo.c: Disabled by default. Demo code. +* apps/app_jack.c: Depends on libresample. See TODO.Debian . +* apps/app_rpt.c: Disabled by default. Not popular. Potential quality issues. +* apps/app_skel.c: Disabled by default. Demo code. +* channels/chan_misdn.c: mISDN (1.x) only included in Experimental. See + package misdn-user. +* channels/chan_nbs: NBS not included. Never packaged. Looks quite Asterisk + specific and not really useful. +* channels/chan_usbradio: Disabled by default. Not popular. Potential + quality issues. +* codecs/codec_resample.c: Depends on libresample. See TODO.Debian . +* pbx/pbx_gtkconsole.c: Disabled by default. Mostly pointless and adss + unnecessary dependencies. + + +Enjoy your PBX! + +Kilian Krause (for the pkg-voip team) --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-progdoc.docs +++ asterisk-1.6.2.0~beta1/debian/asterisk-progdoc.docs @@ -0,0 +1 @@ +doc/api/* --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-config.examples +++ asterisk-1.6.2.0~beta1/debian/asterisk-config.examples @@ -0,0 +1,5 @@ +configs +agi/agi-test.agi +agi/eagi-test.c +agi/eagi-sphinx-test.c +agi/fastagi-test --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-dev.links +++ asterisk-1.6.2.0~beta1/debian/asterisk-dev.links @@ -0,0 +1 @@ +usr/include/asterisk/asterisk.h usr/include/asterisk.h --- asterisk-1.6.2.0~beta1.orig/debian/astman.1 +++ asterisk-1.6.2.0~beta1/debian/astman.1 @@ -0,0 +1,102 @@ +.\" $Header: /aolnet/dev/src/CVS/sgml/docbook-to-man/cmd/docbook-to-man.sh,v 1.1.1.1 1998/11/13 21:31:59 db3l Exp $ +.\" +.\" transcript compatibility for postscript use. +.\" +.\" synopsis: .P! +.\" +.de P! +.fl +\!!1 setgray +.fl +\\&.\" +.fl +\!!0 setgray +.fl \" force out current output buffer +\!!save /psv exch def currentpoint translate 0 0 moveto +\!!/showpage{}def +.fl \" prolog +.sy sed \-e 's/^/!/' \\$1\" bring in postscript file +\!!psv restore +. +.de pF +.ie \\*(f1 .ds f1 \\n(.f +.el .ie \\*(f2 .ds f2 \\n(.f +.el .ie \\*(f3 .ds f3 \\n(.f +.el .ie \\*(f4 .ds f4 \\n(.f +.el .tm ? font overflow +.ft \\$1 +.. +.de fP +.ie !\\*(f4 \{\ +. ft \\*(f4 +. ds f4\" +' br \} +.el .ie !\\*(f3 \{\ +. ft \\*(f3 +. ds f3\" +' br \} +.el .ie !\\*(f2 \{\ +. ft \\*(f2 +. ds f2\" +' br \} +.el .ie !\\*(f1 \{\ +. ft \\*(f1 +. ds f1\" +' br \} +.el .tm ? font underflow +.. +.ds f1\" +.ds f2\" +.ds f3\" +.ds f4\" +'\" t +.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n +.TH ASTMAN 1 "Jun 12th, 2005" "astman" "Linux Programmer's Manual" +.SH NAME +.B astman +-- a client to asterisk's manager interface +.SH SYNOPSIS +.PP +.B astman +.I hostname + +.SH DESCRIPTION +.B astman +This program is a full-screen (terminal) client for Asterisk's manager +interface. + +.SH OPTIONS +.B hostname + +The host name or IP address to connect to (TCP port 5038). If astman +fails to connect it will exit immidiately. + +.SH USAGE +If \fBastman\fR has successfully cunnected to the manager port it will +prompt the user for a username and a secret (password) for the manager +interface on the remote Asterisk manager interface. It will then be able +to report existing channels (calls). You will then be able to redirect +calls to or terminate them. + +.SH "SEE ALSO" +asterisk(8) + +http://www.voip-info.org/wiki-Asterisk+astman + +.SH BUGS +The hostname does not default to localhost. + +Impossible to use a port other than 5038. + +The username and password cannot be defined from the command-line. + +I mean, what's the point in a man page if the syntax is so simple? + +.SH "AUTHOR" +This manual page was written by Tzafrir Cohen +Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 any +later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-sounds-main.install +++ asterisk-1.6.2.0~beta1/debian/asterisk-sounds-main.install @@ -0,0 +1,2 @@ +usr/share/asterisk/sounds +usr/share/asterisk/moh --- asterisk-1.6.2.0~beta1.orig/debian/safe_asterisk.8 +++ asterisk-1.6.2.0~beta1/debian/safe_asterisk.8 @@ -0,0 +1,62 @@ +.TH SAFE_ASTERISK 8 "Jun 30th, 2005" "Asterisk" "Linux Programmer's Manual" +.SH NAME +.B safe_asterisk +\(em A wrapper to run the asterisk executable in a loop +.SH SYNOPSIS +.PP +.B safe_asterisk +.I [ asterisk_params ] + +.SH DESCRIPTION +.B safe_asterisk +is a script that runs asterisk in a loop, which can be useful if you +fear asterisk may crash. + +The script does not run in the background like a standard service. Rather, +it runs in its own linux virtual console (9, by default). +It also uses the option '-c' of asterisk(8) to avoid detaching asterisk +from that terminal. + +safe_asterisk also runs asterisk with unlimited core file size, and thus +asterisk will dump core in case of a crash. + +To get a "picture" of console 9, from another terminal (e.g: from a +remote shell session) you can use: + + screendump 9 + +The init script of the Debian package should be able to run safe_asterisk +as the asterisk service, if so configured. See coments in +/etc/default/asterisk + +.SH FILES +.B /tmp +.RS +safe_asterisk runs in that directory, rather than in / as usual. +.RE + +.B /tmp/core +.RS +If core files were generated there, they may be +.RE + +.SH BUGS +While showing the output on a console is useful, using screen(1) as +the terminal may be better. + +The script does not read configuration from standard location under /etc + +It uses fixed locations under /tmp , and thus may be exposed to a +symlink attacks. + +.SH SEE ALSO +asterisk(8), screendump(9) + +.SH "AUTHOR" +This manual page was written by Tzafrir Cohen +Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 any +later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. --- asterisk-1.6.2.0~beta1.orig/debian/compat +++ asterisk-1.6.2.0~beta1/debian/compat @@ -0,0 +1 @@ +6 --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.default +++ asterisk-1.6.2.0~beta1/debian/asterisk.default @@ -0,0 +1,78 @@ +# This file allows you to alter the configuration of the Asterisk +# init.d script. Normally you should leave the file as-is. +# +# RUNASTERISK: If set to anything other that 'yes', the asterisk init.d script +# will not run. The default is 'yes'. +#RUNASTERISK=no +# +# +# AST_REALTIME: if set to anything other than "no", asterisk will run in +# real-time priority (pass '-p' to asterisk). un-rem the +# following line to disable asterisk from running in real-time +# priority +#AST_REALTIME=no +# +# PARAMS: extra parameters to pass to asterisk: generate cores in +# case of crash, and be more verbose. -F guarantees that Asterisk +# will still run daemonized. +# +# Instead of adding switches here, consider editing +# /etc/asterisk/asterisk.conf +#PARAMS="-F -g -vvv" +# +# +# RUNASTSAFE: run safe_asterisk rather than asterisk (will auto-restart upon +# crash). This is generally less tested and has some known issues +# with properly starting and stopping Asterisk. +#RUNASTSAFE=yes +# +# ASTSAFE_CONSOLE: whether you want safe_asterisk to spawn a console for Asterisk. +#ASTSAFE_CONSOLE=yes +# +# ASTSAFE_TTY: tty for Asterisk to run on (only for safe_asterisk) +#ASTSAFE_TTY=9 +# +# MAXFILES: Set this to the number of open file handles the Asterisk +# process can have. Useful if you get "Too many open files" error. +#MAXFILES=8192 +# +# AST_DUMPCORE: if set to anything other than "no", asterisk will be run with +# the option -g (to tell it to dump core on crash) and its +# working directory will be set to /var/spool/asterisk, as that +# directory is writable and hence core files can be written there. +# See /etc/init.d/asterisk for some other relevant variables. +# +# It is recommended that you install asterisk-dbg to be able +# to produce meaningful backtraces from the core file. +# +# By default core files will be written to /tmp (can be +# changed by setting AST_DUMPCORE_DIR). Alternatively, see +# CORE_PATTERN below. +#AST_DUMPCORE=yes +# +# AST_DUMPCORE_DIR: By default asterisk runs in the directory '/' like any +# daemon. Setting this allows you to tell it to tell the +# Asterisk daemon to run in a different directory if +# AST_DUMPCORE is enabled. The default is +# /var/spool/asterisk. That is a good choice because it +# is writable (thus enabling the actual writing of the +# core file) but relatively immune to symlink attacks +# (because not world-writable like /tmp/). +# Note, however, that if CORE_PATTERN is an absolute +# path, it will override AST_DUMPCORE_DIR. +# +# CORE_PATTERN: If you use AST_DUMPCORE above, this is optionally set to a +# pattern of the core file. The default is not to touch the +# core_pattern settings, which is generally a good idea as +# it affects every core file generated on your system. +# +# However if you just enable generation of core files and run +# asterisk as a daemon it will fail to write core files. +# +# Alternatively you can set this independently elsewhere. +# See http://lxr.linux.no/source/Documentation/sysctl/kernel.txt +# Here is what Asterisk's ast_grab_core +# script would expect: +#CORE_PATTERN='core.%p' +# But you might prefer something like: +#CORE_PATTERN='core.%e.%t' --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-dev.install +++ asterisk-1.6.2.0~beta1/debian/asterisk-dev.install @@ -0,0 +1,2 @@ +usr/include/asterisk +../../include/asterisk.h usr/include/asterisk --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.init +++ asterisk-1.6.2.0~beta1/debian/asterisk.init @@ -0,0 +1,242 @@ +#! /bin/sh +# +# asterisk start the asterisk PBX +# (c) Mark Purcell +# (c) Tzafrir Cohen +# (c) Faidon Liambotis + +# This package is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# Based on: +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +### BEGIN INIT INFO +# Provides: asterisk +# Required-Start: $local_fs zaptel +# Required-Stop: $local_fs +# Should-Start: +# Should-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Asterisk PBX +# Description: Controls the Asterisk PBX +### END INIT INFO + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +NAME=asterisk +USER=$NAME +GROUP=$USER +DAEMON=/usr/sbin/$NAME +DESC="Asterisk PBX" +PIDFILE="/var/run/asterisk/asterisk.pid" +ASTSAFE_PIDFILE="/var/run/asterisk/asterisk_safe.pid" +PIDFILE_DIR=`dirname $PIDFILE` +UMASK=007 # by default +#MAXFILES=1024 # (the system default) + +# by default: use real-time priority +PARAMS="" +CHDIR_PARM="" +AST_REALTIME="yes" +RUNASTERISK="yes" +AST_DUMPCORE="no" +AST_DUMPCORE_DIR="/var/spool/asterisk" # only used if AST_DUMPCORE != no +# core_pattern. See: http://lxr.linux.no/source/Documentation/sysctl/kernel.txt +#CORE_PATTERN= +if [ -r /etc/default/$NAME ]; then . /etc/default/$NAME; fi + +if [ "$RUNASTERISK" != "yes" ];then + echo "Asterisk not yet configured. Edit /etc/default/asterisk first." + exit 0 +fi + +if [ "$AST_REALTIME" != "no" ] +then + PARAMS="$PARAMS -p" +fi + +if [ "$AST_DUMPCORE" != "no" ] +then + PARAMS="$PARAMS -g" + if [ "$CORE_PATTERN" != '' ] + then + echo "$CORE_PATTERN" >/proc/sys/kernel/core_pattern + fi + if [ -d "$AST_DUMPCORE_DIR" ] + then + CHDIR_PARM="--chdir $AST_DUMPCORE_DIR" + fi +fi + +if [ "x$USER" = "x" ] +then + echo "Error: empty USER name" + exit 1 +fi +if [ `id -u "$USER"` = 0 ] +then + echo "Starting as root not supported." + exit 1 +fi +PARAMS="$PARAMS -U $USER" + +if [ "x$AST_DEBUG_PARAMS" = x ] +then + AST_DEBUG_PARAMS=-cvvvvvddddd +fi +if [ "$RUNASTSAFE" = "yes" ];then + # The value of WRAPPER_DAEMON in can be set in /etc/default/asterisk + WRAPPER_DAEMON=${WRAPPER_DAEMON:-/usr/sbin/safe_asterisk} + REALDAEMON="$WRAPPER_DAEMON" +else + REALDAEMON="$DAEMON" +fi + +test -x $DAEMON || exit 0 + +if [ ! -d "$PIDFILE_DIR" ];then + mkdir "$PIDFILE_DIR" + chown $USER:$GROUP "$PIDFILE_DIR" +fi + +set -e + +if [ "$UMASK" != '' ] +then + umask $UMASK +fi + +# allow changing the per-process open files limit: +if [ "$MAXFILES" != '' ] +then + ulimit -n $MAXFILES +fi + +status() { + plist=`ps ax | awk "{ if (\\$5 == \"$DAEMON\") print \\$1 }"` + if [ "$plist" = "" ]; then + echo "$DESC is stopped" + return 1 + else + echo "$DESC is running: $plist" + return 0 + fi +} + +asterisk_rx() { + if ! status >/dev/null; then return 0; fi + + # if $HOME is set, asterisk -rx writes a .asterisk_history there + ( + unset HOME + + $DAEMON -rx "$1" + ) +} + +case "$1" in + debug) + # we add too many special parameters that I don't want to skip + # accidentally. I'm afraid that skipping -U once may cause + # confusing results. I also want to maintain the user's choice + # of -p + echo "Debugging $DESC: " + $DAEMON $PARAMS $AST_DEBUG_PARAMS + exit 0 + ;; + start) + if status > /dev/null; then + echo "$DESC is already running. Use restart." + exit 0 + fi + echo -n "Starting $DESC: " + if [ "$RUNASTSAFE" != "yes" ];then + # TODO: what if we cought the wrapper just as its asterisk + # was killed? status should check for the wrapper if we're in + # "safe mode" + if status > /dev/null; then + echo "$DESC is already running. Use restart." + exit 0 + fi + start-stop-daemon --start --group $GROUP --pidfile "$PIDFILE" \ + $CHDIR_PARM \ + --exec $REALDAEMON -- $PARAMS + else + start-stop-daemon --start --group $GROUP \ + --background --make-pidfile \ + $CHDIR_PARM --pidfile "$ASTSAFE_PIDFILE" \ + --exec $REALDAEMON -- $PARAMS + fi + + + echo "$NAME." + ;; + stop) + echo -n "Stopping $DESC: $NAME" + # Try gracefully. + # this may hang in some cases. Specifically, when the asterisk + # processes is stopped. No bother to worry about cleanup: + # it will either fail or die when asterisk dies. + ( asterisk_rx 'stop now' > /dev/null 2>&1 & ) & + if [ "$RUNASTSAFE" = "yes" ];then + start-stop-daemon --stop --quiet --oknodo \ + --pidfile $ASTSAFE_PIDFILE + rm -f $ASTSAFE_PIDFILE + fi + # just making sure it's really, really dead. + # KILL is necessary just in case there's an asterisk -r in the background + start-stop-daemon --stop --quiet --oknodo --retry=0/2/TERM/2/KILL/5 --exec $DAEMON + echo "." + ;; + reload) + echo "Reloading $DESC configuration files." + asterisk_rx 'module reload' + ;; + logger-reload) + asterisk_rx 'logger reload' + ;; + extensions-reload|dialplan-reload) + echo "Reloading $DESC configuration files." + asterisk_rx 'dialplan reload' + ;; + restart-convenient) + asterisk_rx 'restart when convenient' + ;; + restart|force-reload) + $0 stop + $0 start + ;; + status) + status + exit $? + ;; + zaptel-fix) + echo "Unloading and reloading loading Asterisk and Zaptel:" + $0 stop + /etc/init.d/zaptel unload + # load modules from /etc/modules. This will break if you count on + # discover/hotplug + /etc/init.d/module-init-tools + /etc/init.d/zaptel start + $0 start + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|reload|status|debug|logger-reload|extensions-reload|restart-convenient|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- asterisk-1.6.2.0~beta1.orig/debian/autosupport.8 +++ asterisk-1.6.2.0~beta1/debian/autosupport.8 @@ -0,0 +1,41 @@ +.TH AUTOSUPPORT 8 "Jul 5th, 2005" "Asterisk" "Linux Programmer's Manual" +.SH NAME +.B autosupport +\(em interactive script to provide Digium[tm]'s support with information +.SH SYNOPSIS +.PP +.B autosupport + +.SH DESCRIPTION +.B autoasupport +is a script that is normally run by a user contacting Digium's support +to automate gathering support information. + +It will probe the system for some configuration and run-time information, +and will also prompt the user for some optional access information (IP +address, login and password). + +The information is written to /root/digiuminfo which the user is expected +to attach to a support ticket to Digium. + +The script must be run as root as it reads Asterisk's configuration and +the disk information using hdparm(8). + +.SH FILES +.B /root/digiuminfo +.RS +The output of the script goes there +.RE + +.SH SEE ALSO +asterisk(8) + +.SH "AUTHOR" +autosupport was written by John Bigelow . +This manual page was written by Tzafrir Cohen +Permission is granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 any +later version published by the Free Software Foundation. + +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. --- asterisk-1.6.2.0~beta1.orig/debian/patches/astgenkey-security +++ asterisk-1.6.2.0~beta1/debian/patches/astgenkey-security @@ -0,0 +1,22 @@ +astgenkey should generate a private key that is not world-readable. + +Upstream bug: http://bugs.digium.com/view.php?id=12373 + +Upstream has not accepted this patch and chose intead to document this +as a known minor issue. + + -- Lionel Elie Mamane + +--- a/contrib/scripts/astgenkey ++++ b/contrib/scripts/astgenkey +@@ -47,7 +47,10 @@ done + rm -f ${KEY}.key ${KEY}.pub + + echo "Generating SSL key '$KEY': " ++umask 0077 + openssl genrsa -out ${KEY}.key ${DES3} 1024 ++[ "$(id -u)" = 0 ] && chown asterisk: ${KEY}.key ++umask 0022 + openssl rsa -in ${KEY}.key -pubout -out ${KEY}.pub + + if [ -f "${KEY}.key" ] && [ -f "${KEY}.pub" ]; then --- asterisk-1.6.2.0~beta1.orig/debian/patches/series +++ asterisk-1.6.2.0~beta1/debian/patches/series @@ -0,0 +1,22 @@ +### upstream fixes +appdocsxml +allow-tilde-destdir + +debian-banner +hack-multiple-app-voicemail +#astvarrundir +make-clean-fixes +safe_asterisk-config +#safe_asterisk-nobg +# Remed-out for now. Should be fixed later on: +#h323-no-deps-on-asterisk +#h323-workaround-openh323-segfault + +astgenkey-security + +### new features +#pubkey_jnctn + +# bugfixes on top of everything +disable_moh +dahdi-fxsks-hookstate --- asterisk-1.6.2.0~beta1.orig/debian/patches/make-clean-fixes +++ asterisk-1.6.2.0~beta1/debian/patches/make-clean-fixes @@ -0,0 +1,29 @@ +Don't remove sounds on dist-clean, upstream tarballs come with +one of them. + + -- Faidon Liambotis + +Currently no upstream issue. But anyway, we should revisit it when we decide +on packaging of sound files. + +--- a/Makefile ++++ b/Makefile +@@ -389,7 +389,6 @@ dist-clean: distclean + + distclean: $(SUBDIRS_DIST_CLEAN) clean + @$(MAKE) -C menuselect dist-clean +- @$(MAKE) -C sounds dist-clean + rm -f menuselect.makeopts makeopts menuselect-tree menuselect.makedeps + rm -f makeopts.embed_rules + rm -f config.log config.status +@@ -399,6 +398,10 @@ distclean: $(SUBDIRS_DIST_CLEAN) clean + rm -rf doc/api + rm -f build_tools/menuselect-deps + ++# tarballs distributed by Digium include sounds ++all-clean: distclean ++ @$(MAKE) -C sounds dist-clean ++ + datafiles: _all + if [ x`$(ID) -un` = xroot ]; then CFLAGS="$(ASTCFLAGS)" sh build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi + # Should static HTTP be installed during make samples or even with its own target ala --- asterisk-1.6.2.0~beta1.orig/debian/patches/h323-workaround-openh323-segfault +++ asterisk-1.6.2.0~beta1/debian/patches/h323-workaround-openh323-segfault @@ -0,0 +1,30 @@ +Hack dynamic loader to workaround libopenh323 bug + +libopenh323 is buggy and crashes on dlclose() when the library was opened with +RTLD_LAZY (#438815). Hack around this by opening it with RTLD_NOW by matching +the module names (chan_h323.so and the external chan_oh323.so) + +This is a very crude hack needed because we are removing libopenh323 +dependencies from the asterisk binary. (h323-no-deps-on-asterisk) +Namely, it will have unexpected results if e.g. the user renames the module +for any reason. + +Should be removed when #438815 closes. + + -- Faidon Liambotis + +--- a/main/loader.c ++++ b/main/loader.c +@@ -359,6 +359,12 @@ static struct ast_module *load_dynamic_m + + strcpy(resource_being_loaded->resource, resource); + ++ /* libopenh323 is buggy and segfaults on dlclose() when opened with ++ * RTLD_LAZY. Workaround this until it gets fixed */ ++ if (!strcasecmp(resource, "chan_h323.so") || ++ !strcasecmp(resource, "chan_oh323.so")) ++ lib = dlopen(fn, RTLD_NOW | RTLD_LOCAL); ++ + if (!(lib = dlopen(fn, RTLD_LAZY | RTLD_LOCAL))) { + ast_log(LOG_WARNING, "Error loading module '%s': %s\n", resource_in, dlerror()); + free(resource_being_loaded); --- asterisk-1.6.2.0~beta1.orig/debian/patches/debian-banner +++ asterisk-1.6.2.0~beta1/debian/patches/debian-banner @@ -0,0 +1,15 @@ + + -- Faidon Liambotis + +--- a/main/asterisk.c ++++ b/main/asterisk.c +@@ -142,6 +142,9 @@ int daemon(int, int); /* defined in lib + "This is free software, with components licensed under the GNU General Public\n" \ + "License version 2 and other licenses; you are welcome to redistribute it under\n" \ + "certain conditions. Type 'core show license' for details.\n" \ ++ "=========================================================================\n" \ ++ "This package has been modified for the Debian GNU/Linux distribution\n" \ ++ "Please report all bugs to http://bugs.debian.org/asterisk\n" \ + "=========================================================================\n", ast_get_version()) \ + + /*! \defgroup main_options Main Configuration Options --- asterisk-1.6.2.0~beta1.orig/debian/patches/disable_moh +++ asterisk-1.6.2.0~beta1/debian/patches/disable_moh @@ -0,0 +1,15 @@ +Make the FreePlay on-hold music not enabled by-default. +This implies that it is disabled. This is needed as we remove it +from the tarball of Debian due to license issues. + + Tzafrir Cohen +--- a/sounds/sounds.xml ++++ b/sounds/sounds.xml +@@ -45,7 +45,6 @@ + + + +- yes + + + --- asterisk-1.6.2.0~beta1.orig/debian/patches/safe_asterisk-config +++ asterisk-1.6.2.0~beta1/debian/patches/safe_asterisk-config @@ -0,0 +1,43 @@ +Use ASTSAFE_TTY and ASTSAFE_CONSOLE from /etc/default/asterisk to configure +safe_asterisk. + +Closes: #381786 + + -- Faidon Liambotis + +--- a/contrib/scripts/safe_asterisk ++++ b/contrib/scripts/safe_asterisk +@@ -1,9 +1,13 @@ + #!/bin/sh + # vim:textwidth=80:tabstop=4:shiftwidth=4:smartindent:autoindent + ++if [ -f /etc/default/asterisk ]; then ++ . /etc/default/asterisk; ++fi ++ + CLIARGS="$*" # Grab any args passed to safe_asterisk +-TTY=9 # TTY (if you want one) for Asterisk to run on +-CONSOLE=yes # Whether or not you want a console ++TTY=${ASTSAFE_TTY:-9} # TTY (if you want one) for Asterisk to run on ++CONSOLE=${ASTSAFE_CONSOLE:-yes} # Whether or not you want a console + #NOTIFY=ben@alkaloid.net # Who to notify about crashes + #EXEC=/path/to/somescript # Run this command if Asterisk crashes + MACHINE=`hostname` # To specify which machine has crashed when getting the mail +@@ -85,7 +89,7 @@ ulimit -c unlimited + # Don't fork when running "safely" + # + ASTARGS="" +-if [ "$TTY" != "" ]; then ++if [ "$TTY" != "no" ]; then + if [ -c /dev/tty${TTY} ]; then + TTY=tty${TTY} + elif [ -c /dev/vc/${TTY} ]; then +@@ -125,7 +129,7 @@ run_asterisk() + { + while :; do + +- if [ "$TTY" != "" ]; then ++ if [ "$TTY" != "no" ]; then + cd /tmp + stty sane < /dev/${TTY} + nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY} --- asterisk-1.6.2.0~beta1.orig/debian/patches/h323-no-deps-on-asterisk +++ asterisk-1.6.2.0~beta1/debian/patches/h323-no-deps-on-asterisk @@ -0,0 +1,37 @@ +Don't link the Asterisk binary with the H.323 libraries since they are only +used by separate shared object, chan_h323.so. (Closes: #433884) + +WARNING: this will make Asterisk segfault (see #435146) when loading +chan_h323.so because libopenh323 is buggy (#438815). +We are working around this, see patch h323-workaround-openh323-segfault. + + -- Faidon Liambotis + +--- a/main/Makefile ++++ b/main/Makefile +@@ -131,13 +131,6 @@ AST_EMBED_LDFLAGS:=$(foreach dep,$(EMBED + AST_EMBED_LIBS:=$(foreach dep,$(EMBED_LIBS),$(value $(dep))) + OBJS:=$(sort $(OBJS)) + +-ifneq ($(wildcard ../channels/h323/Makefile.ast),) +- include ../channels/h323/Makefile.ast +-else +- H323LDFLAGS= +- H323LDLIBS= +-endif +- + asterisk: $(OBJS) editline/libedit.a db1-ast/libdb1.a $(AST_EMBED_LDSCRIPTS) + @$(ASTTOPDIR)/build_tools/make_build_h > $(ASTTOPDIR)/include/asterisk/build.h.tmp + @if cmp -s $(ASTTOPDIR)/include/asterisk/build.h.tmp $(ASTTOPDIR)/include/asterisk/build.h ; then echo ; else \ +@@ -146,11 +139,7 @@ asterisk: $(OBJS) editline/libedit.a db1 + @rm -f $(ASTTOPDIR)/include/asterisk/build.h.tmp + @$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c + $(ECHO_PREFIX) echo " [LD] $^ -> $@" +-ifneq ($(findstring chan_h323,$(MENUSELECT_CHANNELS)),) + $(CMD_PREFIX) $(CC) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) +-else +- $(CMD_PREFIX) $(CXX) $(STATIC_BUILD) -o $@ $(ASTLINK) $(AST_EMBED_LDFLAGS) $(ASTLDFLAGS) $(H323LDFLAGS) $^ buildinfo.o $(AST_LIBS) $(AST_EMBED_LIBS) $(H323LDLIBS) +-endif + $(CMD_PREFIX) $(ASTTOPDIR)/build_tools/strip_nonapi $@ || rm $@ + + clean:: --- asterisk-1.6.2.0~beta1.orig/debian/patches/pubkey_jnctn +++ asterisk-1.6.2.0~beta1/debian/patches/pubkey_jnctn @@ -0,0 +1,35 @@ +Public key for Junction Networks. From http://www.jnctn.net/jnctn.pub +at Wed, 12 Oct 2005 23:35:06 +0200 + +See also http://www.junctionnetworks.com/Asterisk-config.htm + + -- Tzafrir Cohen + +Also fix the Makefile to copy all keys on make install instead of mentioning +them explicitely. + +Forwarded as a note to #10811. + + -- Faidon Liambotis + +--- /dev/null ++++ b/keys/jnctn.pub +@@ -0,0 +1,6 @@ ++-----BEGIN PUBLIC KEY----- ++MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWaDv4190BpeL5K+Yuq5Q7+vPs ++FVrkibbIp+Io1gCQ6CGZJbR0kUZvTdf58bBdG0zqf6azFN8XPaNz9PVLDl+KgHwU ++3Ilu//eX8ph8Wu+Oxs/ymi/hzKm+Cd6aty94zYuqiegc0KdrjvU5TLQAkIQpiB6k ++CvuIm0R0XXQjj3R7LwIDAQAB ++-----END PUBLIC KEY----- +--- a/Makefile ++++ b/Makefile +@@ -469,8 +469,7 @@ bininstall: _all installdirs $(SUBDIRS_I + mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware + mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax + mkdir -p $(DESTDIR)$(ASTMANDIR)/man8 +- $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys +- $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys ++ $(INSTALL) -m 644 keys/* $(DESTDIR)$(ASTDATADIR)/keys + $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 + $(INSTALL) -m 644 contrib/scripts/astgenkey.8 $(DESTDIR)$(ASTMANDIR)/man8 + $(INSTALL) -m 644 contrib/scripts/autosupport.8 $(DESTDIR)$(ASTMANDIR)/man8 --- asterisk-1.6.2.0~beta1.orig/debian/patches/hack-multiple-app-voicemail +++ asterisk-1.6.2.0~beta1/debian/patches/hack-multiple-app-voicemail @@ -0,0 +1,67 @@ +This is a very ugly hack on upstream's Makefiles to allow building multiple +variants of app_voicemail. Three variants are created: + * app_voicemail.so: plain old filesystem storage that doesn't break existing + setups + * app_voicemail_imap.so: IMAP storage + * app_voicemail_odbc.so: ODBC storage (and app_directory_odbc.so) +All these conflict with each other and Asterisk will refuse to load them +concurrently. +They are marked noload on our default autoload configuration. + +Patch suggested to upstream but rejected for being "hackish": + + http://bugs.digium.com/view.php?id=13822 + + -- Faidon Liambotis + +--- a/apps/Makefile ++++ b/apps/Makefile +@@ -15,6 +15,8 @@ MODULE_PREFIX=app + MENUSELECT_CATEGORY=APPS + MENUSELECT_DESCRIPTION=Applications + ++MODS_C_ADDITIONAL=app_directory_odbc app_voicemail_imap app_voicemail_odbc ++ + MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail) + ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),) + MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE) +@@ -27,6 +29,28 @@ endif + + all: _all + ++add_depends_cmd = sed -i -e '/^\/\*\*\* MODULEINFO/a\\t$(1)<\/depend>' ++app_voicemail_imap.c: app_voicemail.c ++ cp $< $@ ++ $(call add_depends_cmd,imap_tk) $@ ++ $(call add_depends_cmd,ssl) $@ ++app_voicemail_odbc.c: app_voicemail.c ++ cp $< $@ ++ $(call add_depends_cmd,unixodbc) $@ ++ $(call add_depends_cmd,ltdl) $@ ++ ++app_directory_odbc.c: app_directory.c ++ cp $< $@ ++ $(call add_depends_cmd,unixodbc) $@ ++ $(call add_depends_cmd,ltdl) $@ ++ ++clean:: ++ rm -f app_voicemail_*.c ++ ++app_voicemail_imap.o: ASTCFLAGS+=-DIMAP_STORAGE ++app_voicemail_odbc.o: ASTCFLAGS+=-DODBC_STORAGE ++app_directory_odbc.o: ASTCFLAGS+=-DODBC_STORAGE ++ + include $(ASTTOPDIR)/Makefile.moddir_rules + + ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) +--- a/Makefile.moddir_rules ++++ b/Makefile.moddir_rules +@@ -43,7 +43,7 @@ include $(ASTTOPDIR)/Makefile.rules + # Use MODULE_EXCLUDE to specify additional modules to exclude. + + ifneq ($(MODULE_PREFIX),) +- ALL_C_MODS:= ++ ALL_C_MODS:=$(MODS_C_ADDITIONAL) + ALL_C_MODS+=$(foreach p,$(MODULE_PREFIX),$(patsubst %.c,%,$(wildcard $(p)_*.c))) + ALL_CC_MODS:= + ALL_CC_MODS+=$(foreach p,$(MODULE_PREFIX),$(patsubst %.cc,%,$(wildcard $(p)_*.cc))) --- asterisk-1.6.2.0~beta1.orig/debian/patches/allow-tilde-destdir +++ asterisk-1.6.2.0~beta1/debian/patches/allow-tilde-destdir @@ -0,0 +1,21 @@ +badshell is disallowing tildes (~) in the DESTDIR directory to warn people +who use a shell that doesn't expand it to $HOMEDIR. + +However, we have such a tilde in our directory (~dfsg) that isn't expanded +to $HOMEDIR nor shouldn't be. + +This patch relaxes this test just for cases where the ~ is followed by a '/', +which should catch most cases. + +Upstream issue: http://bugs.digium.com/view.php?id=14718 +--- a/Makefile ++++ b/Makefile +@@ -575,7 +575,7 @@ oldmodcheck: + fi + + badshell: +-ifneq ($(findstring ~,$(DESTDIR)),) ++ifneq ($(findstring ~/,$(DESTDIR)),) + @echo "Your shell doesn't do ~ expansion when expected (specifically, when doing \"make install DESTDIR=~/path\")." + @echo "Try replacing ~ with \$$HOME, as in \"make install DESTDIR=\$$HOME/path\"." + @exit 1 --- asterisk-1.6.2.0~beta1.orig/debian/patches/silence-buildsum-warning +++ asterisk-1.6.2.0~beta1/debian/patches/silence-buildsum-warning @@ -0,0 +1,18 @@ +Several of our modules were compiled before build sum was introduced. +Avoid annoying our users for now. We will enable this option at a later point +when most of the modules will get a compilation with the new headers. + + -- Faidon Liambotis + +--- a/main/loader.c ++++ b/main/loader.c +@@ -625,7 +625,9 @@ static unsigned int inspect_module(const + } + + if (!ast_test_flag(mod->info, AST_MODFLAG_BUILDSUM)) { ++ /* + ast_log(LOG_WARNING, "Module '%s' was not compiled against a recent version of Asterisk and may cause instability.\n", mod->resource); ++ */ + } else if (!ast_strlen_zero(mod->info->buildopt_sum) && + strcmp(buildopt_sum, mod->info->buildopt_sum)) { + ast_log(LOG_WARNING, "Module '%s' was not compiled with the same compile-time options as this version of Asterisk.\n", mod->resource); --- asterisk-1.6.2.0~beta1.orig/debian/patches/astvarrundir +++ asterisk-1.6.2.0~beta1/debian/patches/astvarrundir @@ -0,0 +1,15 @@ +Install appdocsxml in ASTDATADIR + +Fixed in 1.6.2 +--- a/Makefile ++++ b/Makefile +@@ -573,7 +573,7 @@ + mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax + mkdir -p $(DESTDIR)$(ASTMANDIR)/man8 + $(INSTALL) -m 644 doc/core-*.xml $(DESTDIR)$(ASTDATADIR)/documentation +- $(INSTALL) -m 644 doc/appdocsxml.dtd $(DESTDIR)$(ASTVARLIBDIR)/documentation ++ $(INSTALL) -m 644 doc/appdocsxml.dtd $(DESTDIR)$(ASTDATADIR)/documentation + $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys + $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys + $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 + --- asterisk-1.6.2.0~beta1.orig/debian/patches/appdocsxml +++ asterisk-1.6.2.0~beta1/debian/patches/appdocsxml @@ -0,0 +1,13 @@ +Index: asterisk-1.6.2.0~beta1/Makefile +=================================================================== +--- asterisk-1.6.2.0~beta1.orig/Makefile 2009-05-03 16:54:35.000000000 +0200 ++++ asterisk-1.6.2.0~beta1/Makefile 2009-05-03 16:54:47.000000000 +0200 +@@ -573,7 +573,7 @@ + mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax + mkdir -p $(DESTDIR)$(ASTMANDIR)/man8 + $(INSTALL) -m 644 doc/core-*.xml $(DESTDIR)$(ASTDATADIR)/documentation +- $(INSTALL) -m 644 doc/appdocsxml.dtd $(DESTDIR)$(ASTVARLIBDIR)/documentation ++ $(INSTALL) -m 644 doc/appdocsxml.dtd $(DESTDIR)$(ASTDATADIR)/documentation + $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys + $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys + $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 --- asterisk-1.6.2.0~beta1.orig/debian/patches/safe_asterisk-nobg +++ asterisk-1.6.2.0~beta1/debian/patches/safe_asterisk-nobg @@ -0,0 +1,32 @@ +Add an option to safe_asterisk so that it won't background. + +This is intended to work with start-stop-daemon's --background option which +results in a correct pidfile since the process doesn't fork. + +#376514, #362281 + +Needs more work from me to not change behavior for users but only for the +init script. After that, it can safely go upstream. + + -- Faidon Liambotis + +--- a/contrib/scripts/safe_asterisk ++++ b/contrib/scripts/safe_asterisk +@@ -15,6 +15,7 @@ DUMPDROP=/tmp + SLEEPSECS=4 + ASTSBINDIR=__ASTERISK_SBIN_DIR__ + ASTPIDFILE=__ASTERISK_VARRUN_DIR__/asterisk.pid ++BACKGROUND=0 + + # comment this line out to have this script _not_ kill all mpg123 processes when + # asterisk exits +@@ -179,4 +180,8 @@ run_asterisk() + done + } + +-run_asterisk & ++if [ "$BACKGROUND" = "1" ]; then ++ run_asterisk & ++else ++ run_asterisk ++fi --- asterisk-1.6.2.0~beta1.orig/debian/patches/dahdi-fxsks-hookstate +++ asterisk-1.6.2.0~beta1/debian/patches/dahdi-fxsks-hookstate @@ -0,0 +1,31 @@ +Allow FXO channels to send out calls even before someone calls in through +them. + +This rxisoffhook does not work. Before 1.6.0 it was wrapped in a #ifdef +DAHDI_CHECK_HOOKSTATE (or rather: ZAP_CHECK_HOOKSTATE). In 1.6 it is +accidentally enabled by default. + +On DAHDI (the kernel) this field is not properly initialized at startup. +And thus it will only work after an incoming ring. + +Upstream issue: http://bugs.digium.com/view.php?id=14577 + +--- a/channels/chan_dahdi.c ++++ b/channels/chan_dahdi.c +@@ -9295,12 +9295,16 @@ static inline int available(struct dahdi + /* When "onhook" that means no battery on the line, and thus + it is out of service..., if it's on a TDM card... If it's a channel + bank, there is no telling... */ ++#ifdef DAHDI_CHECK_HOOKSTATE + if (par.rxbits > -1) + return 1; + if (par.rxisoffhook) + return 1; + else + return 0; ++#else ++ return 1; ++#endif + } else if (par.rxisoffhook) { + ast_debug(1, "Channel %d off hook, can't use\n", p->channel); + /* Not available when the other end is off hook */ --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.install +++ asterisk-1.6.2.0~beta1/debian/asterisk.install @@ -0,0 +1,5 @@ +usr/lib/asterisk +usr/sbin +usr/share/asterisk/firmware +usr/share/asterisk/keys +usr/share/asterisk/conf --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.dirs +++ asterisk-1.6.2.0~beta1/debian/asterisk.dirs @@ -0,0 +1,21 @@ +etc/asterisk + +usr/share/asterisk +var/log/asterisk +var/spool/asterisk +var/lib/asterisk +var/run/asterisk + +usr/share/asterisk/static-http + +var/lib/asterisk/moh +var/lib/asterisk/sounds/custom +var/log/asterisk/cdr-csv +var/log/asterisk/cdr-custom +var/spool/asterisk/dictate +var/spool/asterisk/meetme +var/spool/asterisk/monitor +var/spool/asterisk/system +var/spool/asterisk/tmp +var/spool/asterisk/voicemail +var/spool/asterisk/outgoing --- asterisk-1.6.2.0~beta1.orig/debian/copyright +++ asterisk-1.6.2.0~beta1/debian/copyright @@ -0,0 +1,272 @@ +This package was debianized by Mark Purcell on +Fri Apr 19 19:58:40 EST 2002 + +It is now maintained by the Debian VoIP Team + + +Asterisk was downloaded from http://www.asterisk.org/ +Bristuff was downloaded from http://www.junghanns.net/asterisk/ + +Upstream Authors: Asterisk: Digium, Inc. + Bristuff: Klaus-Peter Junghanns + +Debian asterisk-xxx.dfsg.tar.gz +=============================== + * The Debian version of the upstream asterisk source has had the fpm Music +on Hold removed as this music has only been licenced for use within +asterisk which is incompatible with the Debian Free Software Guildlines (DFSG) +. + + * The iLBC codec library code has been removed from the Debian asterisk +package as it does not conform with the DFSG. + + * The contrib/firmware/iax/iaxy.bin binary firmware without source has been + removed. + +Copyright +========= + +Copyright (C) 2001-2004 Digium and others.... + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + + On Debian GNU/Linux systems, the complete text of the GNU General + Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. + + Asterisk is distributed under GNU General Public License. The GPL also + must apply to all loadable modules as well, except as defined below. + + Digium, Inc. (formerly Linux Support Services) retains copyright to all + of the core Asterisk system, and therefore can grant, at its sole discretion, + the ability for companies, individuals, or organizations to create + proprietary or Open Source (but non-GPL'd) modules which may be dynamically + linked at runtime with the portions of Asterisk which fall under our + copyright umbrella, or are distributed under more flexible licenses than GPL + + If you wish to use our code in other GPL programs, don't worry -- there + is no requirement that you provide the same exemption in your GPL'd + products (although if you've written a module for Asterisk we would + strongly encourage you to make the same excemption that we do). + + Specific permission is also granted to OpenSSL and OpenH323 to link to + Asterisk. + + If you have any questions, whatsoever, regarding our licensing policy, + please contact us. + + The 'Asterisk' name and logos are trademarks owned by Digium, Inc., + and use of them is subject to our trademark licensing policies. If you + wish to use these trademarks for purposes other than simple + redistribution of Asterisk source code obtained from Digium, you + should contact our licensing department to determine the necessary + steps you must take. + + If you have any questions regarding our licensing policy, please + contact us: + + +1.877.546.8963 (via telephone in the USA) + +1.256.428.6000 (via telephone outside the USA) + +1.256.864.0464 (via FAX inside or outside the USA) + IAX2/misery.digium.com/6000 (via IAX2) + licensing@digium.com (via email) + + Digium, Inc. + 150 West Park Loop + Suite 100 + Huntsville, AL 35806 + USA + +Other source code in Asterisk: + + GSM source: + + Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann, + Technische Universitaet Berlin + + Any use of this software is permitted provided that this notice is not + removed and that neither the authors nor the Technische Universitaet Berlin + are deemed to have made any representations as to the suitability of this + software for any purpose nor are held responsible for any defects of + this software. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE. + + As a matter of courtesy, the authors request to be informed about uses + this software has found, about bugs in this software, and about any + improvements that may be of general interest. + + Berlin, 28.11.1994 + Jutta Degener + Carsten Bormann + + ADPCM source: + + Copyright 1992 by Stichting Mathematisch Centrum, Amsterdam, The + Netherlands. + + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the names of Stichting Mathematisch + Centrum or CWI not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior permission. + + STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO + THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND + FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE + FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT + OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + Bristuff: + + Copyright (C) 2004, 2005 Junghanns.NET GmbH + + Klaus-Peter Junghanns + + This program is free software and may be modified and + distributed under the terms of the GNU General Public License. + + The packaging Debian (debian/ directory) is: + + Copyright (c) Kilian Krause + Copyright (c) Mark Purcell + Copyright (c) Tzafrir Cohen + Copyright (c) Faidon Liambotis + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + + On Debian GNU/Linux systems, the complete text of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL'. + +Other portions of code: + +aescrypt.c: Copyright (c) 2003, Dr Brian Gladman , + Worcester, UK. +aeskey.c: Copyright (c) 2003, Dr Brian Gladman , + Worcester, UK. +dlfcn.c:Copyright (c) 2002 Jorge Acereda & + Peter O'Gorman +dns.c: * Copyright (C) 1999 - 2005 Thorsten Lockert +dnsmgr.c: * Copyright (C) 2005, Kevin P. Fleming +dsp.c: Copyright (C) 2001 Steve Underwood +indications.c: * Copyright (C) 2002, Pauline Middelink +jitterbuf.c: * Copyright (C) 2004-2005, Horizon Wimba, Inc. +jitterbuf.h: * Copyright (C) 2004-2005, Horizon Wimba, Inc. +md5.c: * written by Colin Plumb in 1993, no copyright is claimed. +plc.c: * Copyright (C) 2004 Steve Underwood +poll.c: Copyright (c) 1995-2002 Brian M. Clapper +slinfactory.c: * Copyright (C) 2005, Anthony Minessale II. +apps/app_alarmreceiver.c: * Copyright (C) 2004 - 2005 Steve Rodgers +apps/app_chanspy.c: * Copyright (C) 2005 Anthony Minessale II + (anthmct@yahoo.com) +apps/app_controlplayback.c: * Copyright (C) 1999 - 2005, Digium, Inc. +apps/app_curl.c: * Copyright (C) 2004 - 2005, Tilghman Lesher +apps/app_cut.c: * Copyright (c) 2003 Tilghman Lesher. +apps/app_db.c: * Copyright (C) 2003, Jefferson Noxon +apps/app_dictate.c: * Copyright (C) 2005, Anthony Minessale II +apps/app_directed_pickup.c: * Copyright (C) 2005, Joshua Colp +apps/app_dumpchan.c: * Copyright (C) 2004 - 2005, Anthony Minessale II. +apps/app_eval.c: * Copyright (c) 2004 - 2005, Tilghman Lesher. +apps/app_exec.c: * Copyright (c) 2004 - 2005, Tilghman Lesher. +apps/app_festival.c: * Copyright (C) 2002, Christos Ricudis +apps/app_forkcdr.c: * Copyright (C) 1999 - 2005, Anthony Minessale + anthmct@yahoo.com +apps/app_hasnewvoicemail.c: * Changes Copyright (c) 2004 - 2005 + Todd Freeman +apps/app_hasnewvoicemail.c: * Copyright (c) 2003 Tilghman Lesher. +apps/app_math.c: * Copyright (C) 2004 - 2005, Andy Powell +apps/app_md5.c: * Copyright (C) 2005, Olle E. Johansson, Edvina.net +apps/app_mixmonitor.c: * Copyright (C) 2005, Anthony Minessale II +apps/app_random.c: * Copyright (c) 2003 - 2005 Tilghman Lesher. +apps/app_rpt.c: * Copyright (C) 2002-2005, Jim Dixon, WB6NIL +apps/app_sayunixtime.c: * Copyright (c) 2003 Tilghman Lesher. +apps/app_settransfercapability.c: * Copyright (C) 2005, Frank Sautter, + levigo holding gmbh, www.levigo.de +apps/app_sms.c: * Copyright (C) 2004 - 2005, Adrian Kennard, +apps/app_sql_postgres.c: * Copyright (C) 2002, Christos Ricudis +apps/app_verbose.c: * Copyright (c) 2004 - 2005 Tilghman Lesher. +apps/app_while.c: * Copyright 2004 - 2005, Anthony Minessale +cdr/cdr_sqlite.c: * Copyright (C) 2004 - 2005, Holger Schurig +cdr/cdr_tds.c: Copyright (C) 1994, 1996, 1997, 2000, 2001 Free Software + Foundation, Inc. +channels/chan_misdn.c: * Copyright (C) 2004, Christian Richter +channels/chan_misdn_config.c: * Copyright (C) 2005, Christian Richter +channels/chan_modem_bestdata.c: * Copyright (C) 1999, Mark Spencer and + 2001 Jim Dixon +channels/chan_vpb.c: * Copyright (C) 2003, Paul Bagyenda +channels/chan_vpb.c: * Copyright (C) 2004 - 2005, Ben Kramer +channels/DialTone.h: * Copyright (C) 1999, Mark Spencer +channels/Makefile:# Copyright (C) 1999-2005, Mark Spencer +doc/README.backtrace:Copyright 2004 Free Software Foundation, Inc. +editline/: * Copyright (c) 1992, 1993 + * The Regents of the University of California. +editline/editline.3:.\" Copyright (c) 1997-1999 The NetBSD Foundation, Inc. +editline/install-sh:# Copyright 1991 by the Massachusetts Institute of + Technology +formats/format_au.c: * Copyright (C) 2005, Andriy Pylypenko +formats/format_g726.c: * Copyright (c) 2004 - 2005, inAccess Networks +formats/format_ogg_vorbis.c: * Copyright (C) 2005, Jeff Ollie +formats/format_sln.c: * Copyright (C) 1999 - 2005, Anthony Minessale +funcs/func_cdr.c: * Portions Copyright (C) 2005, Anthony Minessale II +funcs/func_db.c: * Copyright (C) 2005, Russell Bryant +funcs/func_db.c: * Copyright (C) 2003, Jefferson Noxon +funcs/func_logic.c: * Portions Copyright (C) 2005, Anthony Minessale II +funcs/func_math.c: * Copyright (C) 2004 - 2005, Andy Powell +funcs/func_md5.c: * Copyright (C) 2005, Olle E. Johansson, Edvina.net +funcs/func_md5.c: * Copyright (C) 2005, Russell Bryant +funcs/func_strings.c: * Portions Copyright (C) 2005, Tilghman Lesher. +funcs/func_strings.c: * Portions Copyright (C) 2005, Anthony Minessale II +res/res_config_odbc.c: * Copyright (C) 2004 - 2005 Anthony Minessale II +res/res_indications.c: * Copyright (C) 2002, Pauline Middelink +res/res_odbc.c: * Copyright (C) 2004 - 2005 Anthony Minessale II +utils/smsq.c: * Copyright (C) 2004 - 2005 Adrian Kennard +utils/streamplayer.c: fprintf(stderr, "Copyright (C) 2005 + -- Russell Bryant -- Digium, Inc.\n\n"); +channels/misdn/: * Copyright (C) 2004, Christian Richter +codecs/ilbc/: Copyright (C) The Internet Society (2004). +contrib/scripts/managerproxy.pl:# Copyright (c) 2004 David C. Troy + +contrib/scripts/retrieve_extensions_from_sql.pl:# Copyright: + 2004 Peter Nixon +db1-ast/*/*: * Copyright (c) 1990, 1993, 1994 + * The Regents of the University of California. +editline/np/: * Copyright (c) 1998 The NetBSD Foundation, Inc. +editline/np/strlcat.c: * Copyright (c) 1998 Todd C. Miller + +include/asterisk/aes.h: Copyright (c) 2003, Dr Brian Gladman + , Worcester, UK. +include/asterisk/dlfcn-compat.h:Copyright (c) 2002 Jorge Acereda + & + Peter O'Gorman +include/asterisk/plc.h: * Copyright (C) 2004 Steve Underwood +include/asterisk/poll-compat.h: Copyright (c) 1995-2002 Brian M. Clapper +include/asterisk/res_odbc.h: * Copyright (C) 2004 - 2005, Anthony Minessale II +include/asterisk/slinfactory.h: * Copyright (C) 2005, Anthony Minessale II --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-config.postinst +++ asterisk-1.6.2.0~beta1/debian/asterisk-config.postinst @@ -0,0 +1,51 @@ +#! /bin/sh + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# + +case "$1" in + configure) + set +e # ignore errors temporarily + + # find conffiles under /etc/asterisk belonging to asterisk-config + # and chown them to user asterisk. + dpkg-query -W -f='${Conffiles}\n' asterisk-config 2>/dev/null | \ + sed -nr -e 's; (/etc/asterisk/.*) [0-9a-f]*;\1;p' | \ + while read conffile; do + chown asterisk: ${conffile} 2>/dev/null + done + + # handle them in the end with a glob since it's way faster + dpkg-statoverride --quiet --list '/etc/asterisk/*' | while read STAT; do + chown `echo $STAT | cut -d' ' -f 1,2,4 | sed 's/ /:/'` \ + 2>/dev/null + done + + set -e + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.postinst +++ asterisk-1.6.2.0~beta1/debian/asterisk.postinst @@ -0,0 +1,112 @@ +#! /bin/sh + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# + +case "$1" in + configure) + # add asterisk user + if ! getent passwd asterisk > /dev/null ; then + echo 'Adding system user for Asterisk' 1>&2 + adduser --system --group --quiet \ + --home /var/lib/asterisk \ + --no-create-home --disabled-login \ + --gecos "Asterisk PBX daemon" \ + asterisk + fi + + # add asterisk to required groups + for group in dialout audio; do + if groups asterisk | grep -w -q -v $group; then + adduser asterisk $group + fi + done + + # chown asterisk on all $dirs and their subdirectories + # do not harm the files, they should be empty on new installations + # and we don't want to mess-up anything on old installations + find /var/log/asterisk \ + /var/lib/asterisk \ + /var/run/asterisk \ + -type d | while read dir; do + if ! dpkg-statoverride --list "$dir" > /dev/null ; then + chown asterisk: $dir + fi + done + + # this is not needed for new installations but is not such a bad idea + # removing this will _break_ upgrades from versions < 1:1.4.10.1~dfsg-1 + # + # we are doing the same for subdirectories, since we are not shipping + # any and it's supposed to be user-modifiable + if ! dpkg-statoverride --list "/etc/asterisk" > /dev/null ; then + chown asterisk: /etc/asterisk + fi + + # spool holds some sensitive information (e.g. monitor, voicemail etc.) + find /var/spool/asterisk -type d | while read dir; do + if ! dpkg-statoverride --list "$dir" > /dev/null ; then + chown asterisk: $dir + chmod 750 $dir + fi + done + + # Create /usr/local directory; policy 9.1.2 + if [ ! -e /usr/local/share/asterisk/sounds ]; then + if mkdir -p /usr/local/share/asterisk/sounds 2>/dev/null ; then + chown root:staff /usr/local/share/asterisk/sounds + chmod 2775 /usr/local/share/asterisk/sounds + fi + fi + + ### this is done here in case asterisk-config was installed/upgraded first + + set +e # ignore errors temporarily + + # find the name of the package providing config; either asterisk-config + # or a package providing asterisk-config-custom + ASTERISK_CONFIG=`dpkg-query -W -f='${Package}\t${Provides}\n' | \ + sed -nr 's/(.*)\tasterisk-config-custom|(asterisk-config)(\t.*)?/\1\2/p'` + + # find conffiles under /etc/asterisk belonging to asterisk-config + # and chown them to user asterisk. + dpkg-query -W -f='${Conffiles}\n' $ASTERISK_CONFIG 2>/dev/null | \ + sed -nr -e 's; (/etc/asterisk/.*) [0-9a-f]*;\1;p' | \ + while read conffile; do + chown asterisk: $conffile 2>/dev/null + done + + # handle them in the end with a glob since it's way faster + dpkg-statoverride --quiet --list '/etc/asterisk/*' | while read STAT; do + chown `echo $STAT | cut -d' ' -f 1,2,4 | sed 's/ /:/'` \ + 2>/dev/null + done + + set -e + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- asterisk-1.6.2.0~beta1.orig/debian/TODO.Debian +++ asterisk-1.6.2.0~beta1/debian/TODO.Debian @@ -0,0 +1,13 @@ +* chan_h323/openh323 linking. See comment in patch h323-no-deps-on-asterisk +* The asterisk canary dies on startup sometimes. Canary is anyway not needed + on Lenny kernel (>= 2.6.25). But if it dies we lose the effect of + real-time priority. +* Canary is not killed when Asterisk is stopped. +* Package libresample? Used in codec_resample and app_jack. + The library itself is part of the code of audacity. The code from + Digium inlcudes a small patch to build it PIC, which is required for + using it with Asterisk modules. +* Some man pages to write. +* Remove the TeX sources from the package asterisk-doc . +* Package sound files properly. Maybe in a separate package altogether? + See also patch make-clean-fixes. --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.logrotate +++ asterisk-1.6.2.0~beta1/debian/asterisk.logrotate @@ -0,0 +1,9 @@ +/var/log/asterisk/debug /var/log/asterisk/messages /var/log/asterisk/full /var/log/asterisk/*_log { + weekly + missingok + rotate 4 + sharedscripts + postrotate + /usr/sbin/invoke-rc.d asterisk logger-reload > /dev/null 2> /dev/null + endscript +} --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-config.lintian-overrides +++ asterisk-1.6.2.0~beta1/debian/asterisk-config.lintian-overrides @@ -0,0 +1 @@ +asterisk-config: non-standard-file-perm --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.lintian-overrides +++ asterisk-1.6.2.0~beta1/debian/asterisk.lintian-overrides @@ -0,0 +1 @@ +asterisk: package-contains-empty-directory --- asterisk-1.6.2.0~beta1.orig/debian/dummyprogs/fetch +++ asterisk-1.6.2.0~beta1/debian/dummyprogs/fetch @@ -0,0 +1,10 @@ +#!/bin/sh + +# a dummy script that can serve as 'fetch' to pass for autoconf tests +# but always returns false to make sure it is never used. +# +# Note: the configure script will look for wget first. If you actually +# want to download sound tarballs or whatever at build time, make sure +# you have wget installed, and this script should cause you no problems. + +exit 1 --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.links +++ asterisk-1.6.2.0~beta1/debian/asterisk.links @@ -0,0 +1,3 @@ +usr/share/man/man8/asterisk.8 usr/share/man/man8/rasterisk.8 +usr/local/share/asterisk/sounds usr/share/asterisk/sounds/custom +var/lib/asterisk/sounds/custom usr/share/asterisk/sounds/recordings --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.docs +++ asterisk-1.6.2.0~beta1/debian/asterisk.docs @@ -0,0 +1,5 @@ +BUGS +README +CREDITS +UPGRADE.txt +CHANGES --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.prerm +++ asterisk-1.6.2.0~beta1/debian/asterisk.prerm @@ -0,0 +1,6 @@ +#! /bin/sh -e + +rmdir /usr/local/share/asterisk/sounds 2>/dev/null || true +rmdir /usr/local/share/asterisk 2>/dev/null || true + +#DEBHELPER# --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-doc.doc-base +++ asterisk-1.6.2.0~beta1/debian/asterisk-doc.doc-base @@ -0,0 +1,9 @@ +Document: asterisk +Title: Asterisk Reference Information +Author: Asterisk Development Team +Abstract: The Asterisk PBX: A system administrator reference +Section: Network/Communication + +Format: PDF +Files: /usr/share/doc/asterisk-doc/doc/tex/asterisk.pdf.gz + --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-config.install +++ asterisk-1.6.2.0~beta1/debian/asterisk-config.install @@ -0,0 +1,2 @@ +etc/asterisk +../ast_config/* etc/asterisk/ --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.examples +++ asterisk-1.6.2.0~beta1/debian/asterisk.examples @@ -0,0 +1,3 @@ +sample.call +static-http +contrib/scripts/vmail.cgi --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-h323.README.Debian +++ asterisk-1.6.2.0~beta1/debian/asterisk-h323.README.Debian @@ -0,0 +1,26 @@ +asterisk-h323 vs. asterisk-oh323 vs. asterisk-ooh323c +===================================================== + + There are currently three implementations for H.323 in the Asterisk PBX: + chan_h323, chan_oh323 and chan_ooh323c. They are distributed by Debian as + asterisk-h323, asterisk-oh323 and asterisk-oh323c, respectively. + + chan_h323 was contributed by NuFone and is nowdays maintained and distributed + by Digium, Inc. Hence, it is considered the official H.323 chanel driver. + It is a fork of an earlier version of chan_oh323, but they are quite different + nowdays. + It is part of the main Asterisk distribution. + + In the 1.2 release cycle, another H.323 channel driver was contributed by + Objective Systems, Inc., called chan_ooh323c. It was made from scratch and, + unlike the other two, does not use the OpenH323 library; it also has a + totally different configuration file. + It is part of the asterisk-addons package, distributed by Digium, Inc. + + You have to use a different configuration file for each of the channel + drivers since they are quite different. All of them can happily coexist, as + long as you run them on a different port or disable their loading in + modules.conf and being careful of module autoloading (autoload=yes). + +Kilian Krause and Faidon Liambotis +for the Debian VoIP packaging team. --- asterisk-1.6.2.0~beta1.orig/debian/ast_config/modules.conf +++ asterisk-1.6.2.0~beta1/debian/ast_config/modules.conf @@ -0,0 +1,75 @@ +; +; Asterisk configuration file +; +; Module Loader configuration file +; + +[modules] +autoload=yes +; +; Any modules that need to be loaded before the Asterisk core has been +; initialized (just after the logger has been initialized) can be loaded +; using 'preload'. This will frequently be needed if you wish to map all +; module configuration files into Realtime storage, since the Realtime +; driver will need to be loaded before the modules using those configuration +; files are initialized. +; +; An example of loading ODBC support would be: +;preload => res_odbc.so +;preload => res_config_odbc.so +; +; If you want, load the GTK console right away. +; Don't load the KDE console since +; it's not as sophisticated right now. +; +noload => pbx_gtkconsole.so +;load => pbx_gtkconsole.so +noload => pbx_kdeconsole.so +; +; Intercom application is obsoleted by +; chan_oss. Don't load it. +; +noload => app_intercom.so +; +; The 'modem' channel driver and its subdrivers are +; obsolete, don't load them. +; +noload => chan_modem.so +noload => chan_modem_aopen.so +noload => chan_modem_bestdata.so +noload => chan_modem_i4l.so +; +; Comment this out (after installing CAPI middleware and hardware +; drivers) if you have CAPI-able hardware and wish to use it in +; Asterisk. +; +noload => chan_capi.so +; +load => res_musiconhold.so +; +; Load either OSS or ALSA, not both +; By default, load OSS only (automatically) and do not load ALSA +; +noload => chan_alsa.so +;noload => chan_oss.so +; +; Disable CDR logging to SQLite by default since it writes unconditionally to +; cdr.db without a way to rotate it. +; +noload => cdr_sqlite.so +; +; These conflict with app_voicemail.so/app_directory.so and each other +; These are for IMAP and ODBC storage for Voicemail +noload => app_directory_odbc.so +noload => app_voicemail_odbc.so +noload => app_voicemail_imap.so +; +; Enable these if you want to configure Asterisk in a database +; +noload => res_config_odbc.so +noload => res_config_pgsql.so +; +; Module names listed in "global" section will have symbols globally +; exported to modules loaded after them. +; +[global] --- asterisk-1.6.2.0~beta1.orig/debian/ast_config/manager.conf +++ asterisk-1.6.2.0~beta1/debian/ast_config/manager.conf @@ -0,0 +1,16 @@ +; +; Asterisk Call Management support +; + +; By default asterisk will listen on localhost only. +[general] +enabled = yes +port = 5038 +bindaddr = 127.0.0.1 + +; No access is allowed by default. +; To set a password, create a file in /etc/asterisk/manager.d +; use creative permission games to allow other serivces to create their own +; files +#include "manager.d/*.conf" + --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-sounds-main.lintian-overrides +++ asterisk-1.6.2.0~beta1/debian/asterisk-sounds-main.lintian-overrides @@ -0,0 +1 @@ +asterisk-sounds-main: package-contains-empty-directory --- asterisk-1.6.2.0~beta1.orig/debian/asterisk-config.dirs +++ asterisk-1.6.2.0~beta1/debian/asterisk-config.dirs @@ -0,0 +1 @@ +etc/asterisk/manager.d --- asterisk-1.6.2.0~beta1.orig/debian/backports/etch +++ asterisk-1.6.2.0~beta1/debian/backports/etch @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Hook for automatic backports at Buildserver.NET +# +# Target dist: Debian Etch + +# Replace libcurl4-openssl-dev with libcurl3-dev +sed -i -e 's#^ libcurl4.*-dev# libcurl3-dev#' debian/control + +# Replace libsnmp-dev with libsnmp9-dev +sed -i -e 's#^ libsnmp-dev# libsnmp9-dev#' debian/control + +# remove vpb-driver dependency +sed -i -e '/^ libvpb-dev/d' debian/control + +# Until we can have a stable backport of the new speex, let's just use +# our existing "broken" speex 1.1.12: +sed -i -e '/^ libspeexdsp-dev/d' debian/control + +# dh_lintian is new +sed -i -e '/dh_lintian/d' debian/rules +sed -i -e 's#^ debhelper (>= [0-9\.]*),# debhelper (>= 5),#' debian/control + +# Replace libcap2-dev to libcap-dev +sed -i -e 's#^ libcap2-dev# libcap-dev#' debian/control + +# Remove explicit imap support: +sed -i -e '/^ libc-client2007b-dev/d' debian/control +sed -i -e 's/--with-imap=system/--without-imap/' debian/rules + +# Remove the OSP ToolKit (app_osplookup) +sed -i -e '/^ libosptk3-dev/d' debian/control + +# Remove AIS support (res_ais) +sed -i -e '/^ libopenais-dev/d' debian/control + +# Remove Jack (app_jack) +sed -i -e '/^ libjack-dev/d' debian/control + +exit 0 --- asterisk-1.6.2.0~beta1.orig/debian/backports/feisty +++ asterisk-1.6.2.0~beta1/debian/backports/feisty @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Hook for automatic backports at Buildserver.NET +# +# Target dist: Ubuntu Feisty + +# Replace libcurl4-openssl-dev with libcurl3-dev +sed -i -e 's#^ libcurl4.*-dev,$# libcurl3-dev,#' debian/control + +# Replace libsnmp-dev with libsnmp9-dev +sed -i -e 's#^ libsnmp-dev,$# libsnmp9-dev,#' debian/control + +# remove vpb-driver dependency +sed -i -e '/^ libvpb-dev,$/d' debian/control + +echo >&2 "Changes in control file were not tested. Remove these lines" +echo >&2 "once the script is tested." +exit 1 + +exit 0 --- asterisk-1.6.2.0~beta1.orig/debian/backports/edgy +++ asterisk-1.6.2.0~beta1/debian/backports/edgy @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Hook for automatic backports at Buildserver.NET +# +# Target dist: Ubuntu Edgy + +# Replace libcurl4-openssl-dev with libcurl3-dev +sed -i -e 's#^ libcurl4.*-dev,$/# libcurl3-dev#' debian/control + +# Replace libsnmp-dev with libsnmp9-dev +sed -i -e 's#^ libsnmp-dev.*,$# libsnmp9-dev#' debian/control + +# remove vpb-driver dependency +sed -i -e '/^ libvpb-dev/d' debian/control + +echo >&2 "Changes in control file were not tested. Remove these lines" +echo >&2 "once the script is tested." +exit 1 + +exit 0 --- asterisk-1.6.2.0~beta1.orig/debian/NEWS +++ asterisk-1.6.2.0~beta1/debian/NEWS @@ -0,0 +1,36 @@ +asterisk (1:1.4.13~dfsg-1) unstable; urgency=medium + + Since this version, ODBC and IMAP storage for Voicemail are provided. + As this could not be done as a runtime option, app_voicemail_odbc.so and + app_voicemail_imap.so are provided. However, these conflict app_voicemail.so + and each other. + If you use a modified modules.conf and you have autoload enabled, you *must* + add explicit noload entries for two of the three voicemail modules. + + -- Faidon Liambotis Mon, 03 Dec 2007 18:36:55 +0200 + +asterisk (1:1.4.2~dfsg-5) unstable; urgency=low + + There are significant configuration differences between + asterisk 1.2.x & 1.4.x, please refer to the file + /usr/share/doc/asterisk/UPGRADE.txt.gz for details. + + -- Mark Purcell Sat, 14 Apr 2007 16:44:18 +0100 + +asterisk (1:1.2.10.dfsg-1) unstable; urgency=low + + The iLBC codec library code has been removed from the Debian asterisk + package as it does not conform with the DFSG. + + -- Mark Purcell Mon, 17 Jul 2006 21:15:50 +0100 + +asterisk (1:1.0.7.dfsg.1-1) unstable; urgency=low + + The Debian version of the upstream asterisk source has had the fpm Music on Hold + removed as this music has only been licenced for use within asterisk which is + incompatible with the Debian Free Software Guildlines + . Please drop your alternative + Music on Hold into the directory /usr/share/asterisk/mohmp3/ + + -- Mark Purcell Sun, 20 Mar 2005 10:30:44 +0000 + --- asterisk-1.6.2.0~beta1.orig/debian/asterisk.postrm +++ asterisk-1.6.2.0~beta1/debian/asterisk.postrm @@ -0,0 +1,9 @@ +#! /bin/sh -e + +if [ "$1" = purge ]; then + userdel -r asterisk 2>/dev/null || true + rm -fR /var/log/asterisk + +fi + +#DEBHELPER#