Patching Asterisk

Steps for patching, compiling and installed the modified version of Asterisk are below. You should be familiar with building from source before attempting this.

1. Download a copy of the patch below, the patch is also available from the Asterisk issue tracker.

file_download cisco-usecallmanager-16.12.0.patch (347K) event 28/07/2020 security SHA256:51e9e977de240ddaa1b709a70917014cdf227b86abeba8757e10569eed6d63f0.
file_download cisco-usecallmanager-13.35.0.patch (353K) event 28/07/2020 security SHA256:15ce8a79a197b52c4c6ed5473a7cb73c3b748a8be73088d1a63fb77e0629014f.

Digium/Asterisk JIRA issue open_in_browser ASTERISK-13145.

2. Download the version of Asterisk that matches the version number in the name of the patch.

open_in_browser Asterisk Downloads.

3. Extract the archive and apply the patch.

~$ tar -zxvf asterisk-16.12.0.tar.gz ~$ cd asterisk-16.12.0 ~/asterisk-16.12.0$ patch -p1 < ../cisco-usecallmanager-16.12.0.patch
4. Configure the build environment and build the source.

~/asterisk-16.12.0$ CFLAGS="-DENABLE_SRTP_AES_GCM -DENABLE_SRTP_AES_256" ./configure ~/asterisk-16.12.0$ make
5. Install the patched version.

~/asterisk-16.12.0$ sudo make install
6. Optionally install the sample configuration files. Note: sample sip.conf, sip_notify.conf and res_parking.conf contain patch-specific features so you will need to do this at least once.

~/asterisk-16.12.0$ sudo make samples