Strongly recommend against using dialplan extensions like _4XXX in from-internal-custom. Every line you put there, supersedes an autogenerated line by freepbx, there will be conflicts that may not be immediately evident.
There are dialplan hooks provided for this exact purpose, if you need them.