Added adapted version of the patch for Asterisk 11.4.0