Dave, the easy way to do this would be with a Raspberry Pi running Node Red or a Particle Photon or an ESP device running one of the newer, easy to use firmwares that can do MQTT natively then, using Node Red on the same server as your FreePBX install send an MQTT message to either the Pi, the Photon or the ESP to light either an LED or switch a relay to light a mains voltage lamp.