Set msg waiting lights via FXO port

I have a PBX connected to trixbox via an FXO port and would like to send a code on that port for turning on & off msg lights on the pbx, How do I edit the voicemail in trixbox to use this port to dial custom access codes.