This is when associating an IVR with a directory to allow dialing whatever extensions were specified in the list.
The problem is, if you want to allow a custom pattern. So let's say you create a custom entry
Name=Remote Users, Name Announcement=Text to Speech, Custom Dial String=_41XX
FreePBX will generate the dialplan as follows:
[from-ivr-directory-4]
include => from-ivr-directory-4-custom
exten => 502,1,Macro(blkvm-clr,)
exten => 502,n,Set(__NODEST=)
exten => 502,n,Goto(from-internal,502,1)
exten => _41XX,1,Macro(blkvm-clr,)
exten => _41XX,n,Set(__NODEST=)
exten => _41XX,n,Goto(from-internal,_41XX,1)
Instead, it would be more ideal that the Goto should be: from-internal,${EXTEN},1
I have modified the module code, I'll try to submit a PR, please bear with me as it is my first time doing this