asterisk-13.x: add fixes for AST-2019-006 and 007 and 008