Disable/Enable Extensions through a module - Possible?

In a hospitality environment - Would it be possible to enable/disable an extension through a module in FreePBX? I guess you could just change the context temporarily until a guest checks in.

I also know of a user / device feature in FreePBX instead of an Extensions method, although I would appreciate it if someone could elaborate as to whether what I want to acheive is possible. If not, I may be looking at hiring a FreePBX developer!

Just found this link on elastix forum…


I have the same script up and running on my system. Does FreePBX allow the functions mentioned?