FreePBX's jail.local doesn't use that syntax.
[root@pbx ~]# cat /etc/fail2ban/jail.local
# Configuration automatically generated via the Sysadmin Module
# This file will be overwritten by Sysadmin on startup. If you modify
# this file, your changes will be lost. DO NOT MODIFY THIS FILE!
# generated: Thu, 21 Jun 2018 02:53:21 +0000
[DEFAULT]
ignoreip = 127.0.0.1
bantime = 3600
findtime = 600
maxretry = 5
backend = auto
[asterisk-iptables]
enabled = true
filter = asterisk-security
action = iptables-allports[name=SIP, protocol=all]
sendmail[name=SIP,
[email protected],
[email protected]]
logpath = /var/log/asterisk/fail2ban