The script here works but missed some dependencies.

https://wiki.freeswitch.org/wiki/Debian_packages_buildscript

I tried running this script, on Debian 7, as a standard user, and got many errors looking, and ending like:

 dpkg-genchanges -b >../freeswitch_1.2.11~n20130724T063426Z-1~wheezy+1_i386.changes
dpkg-genchanges: binary-only upload - not including any source code
 dpkg-source --after-build freeswitch
dpkg-buildpackage: binary only upload (no source included)
richard@debian:~$ ect 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignored.
-bash: ect: command not found
richard@debian:~$ ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be preloaded: ignore

Any ideas? I am going to test again with Debian 6 now.

Richard