Attempt to obtain a named mutex.
Attempts to grab a named lock exclusively, and prevents other channels from obtaining the same lock. LOCK will wait for the lock to become available. Returns
1 if the lock was obtained or
0 on error.
This documentation was imported from Asterisk Version GIT-16-b8bf57dc38