main/asterisk: security upgrade to 12.5.1

AST-2014-009: Remote crash based on malformed SIP subscription requests
AST-2014-010: Remote crash when handling out of call message in certain
  dialplan configurations

(cherry picked from commit 6058069170cc5d19155f0ed85a63d7a5132f2280)