Hi Randy,
There is a really simple workaround to your issue. In FreePBX you can set the CID Name Prefix to any inbound route, that text will be added to the caller id name on calls, and you can read the callerid name from checkdir.php and act accordingly. That is the simplest solution, as it does not require any special modifications in your dialplan, nor applications.
In checkdir.php you can query some table that you can make a page to edit for, and update a div with the text result.
Best regards,