Hello Maikel:
This module would be very useful if a few details were corrected, here are a few things I found during testing.
1. *59 only works once, the password cannot later be changed.
The fix for now (from EcuaLUG.org) is to comment out line 133.
2. The Keylock page in freepbx needs some more info.
Attached is a screenshot with a few suggestions.
3. If the password is forgotten, there is no way to retrieve or reset it except by doing a database query. Another screenshot attached)
4. The password toggle *56 could be preceded by a status announcement to indicate the actual state of the extension, locked or unlocked before prompting for the password..
5. Keylock hints are hardcoded as SIP.
I Hope you find these comments constructive,
John