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.
| Asterisk 20 (stable) | file_download cisco-usecallmanager-20.15.2.patch (338K) event 21/10/2025 security SHA256:b01462252bf3fc51671b682b7c347a5c253213b0ec5025c23c6535aba4c8085d. |
| Asterisk 22 (ready for testing) | file_download cisco-usecallmanager-22.6.0.patch (1.4M) event 21/10/2025 security SHA256:51d676263d59b86580965fd7cedc10aea3158be1957323c0c1ab896f3e47ad20. |
Note:
chan_sip was removed from Asterisk 22 so this version of the patch contains an overhauled and modernised version of the channel driver. Obsolete features have been removed and many configuration options have been renamed, see the Change Log for the full list.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 --extract --gzip --file asterisk-X.X.X.tar.gz
~$ cd asterisk-X.X.X
~/asterisk-X.X.X$ patch --strip=1 < ../cisco-usecallmanager-X.X.X.patch
4. Configure the build environment and then compile the source code.
~/asterisk-X.X.X$ CFLAGS="-DENABLE_SRTP_AES_GCM -DENABLE_SRTP_AES_256" ./configure
~/asterisk-X.X.X$ make
5. Install the patched version.
~/asterisk-X.X.X$ 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-X.X.X$ sudo make samples