Fix FREEPBX-7396

Prevent deprecation messages on Asterisk 11