mkdir -p /usr/src/asterisk/build /usr/src/asterisk/dl

cd /usr/src/asterisk/build
tar xvfz asterisk-1.4.21.1.tar.gz
cd /usr/src/asterisk/build/asterisk-1.4.21.1
dh_make -e tdovera@libero.it -f ../../dl/asterisk-1.4.21.1.tar.gz 

Type of package: single binary, multiple binary, library, kernel module or cdbs?
 [s/m/l/k/b] s

 Maintainer name : root
 Email-Address   : tdovera@libero.it 
 Date            : Thu, 17 Jul 2008 17:20:54 +0200
 Package Name    : asterisk
 Version         : 1.4.21.1
 License         : blank
 Type of Package : Single
 Hit  to confirm: 
 Done. Please edit the files in the debian/ subdirectory now. asterisk
 uses a configure script, so you probably don't have to edit the Makefiles.
modifica i seguenti file:
dpkg-buildpackage -rfakeroot

dpkg -i asterisk_1.4.21.1-1_i386.deb

/usr/sbin/update-rc.d asterisk start 50 2 3 4 5 . stop 91 2 3 4 5 .

Reference: