Patch a asterisk module without breaking package management on Ubuntu
Dennis GuseI needed to modify one module (chan_sip) of Asterisk, but was to lazy to download and install Asterisk manually.
- Install build-tools
apt-get install build-essential
- Get the source and build dependencies
apt-get source asterisk apt-get build-dep asterisk
- Patch or do whatever you wanted.
- Re-compile Asterisk
dpkg-buildpackage -rfakeroot -b
- Install the Asterisk module
cp channels/chan_sip.so /usr/lib/asterisk/modules/
PS: Was done on Ubuntu 13.10 and Ubuntu 14.04.