Workaround for a bug in Asterisk 12.