Fix deprecation warning on Asterisk 11+