FreePBX is a separate project, it’s not part of Asterisk. It just uses Asterisk underneath. While you are free to post your issue here, the number of people who use FreePBX is nowhere near what it would be if you posted on their forum instead.
That piece of code belongs to the dead Elastix system, Elastix it is not longer Asterisk based now it’s 3CX, so I dont think they neither FreePBX community could help.
Elastix comunity created a folk called issabel, they should know the source code more than any of us. Why dont take a chance to ask help on their comunity forum http://www.issabel.org/community/