Descrição: Attempts to grab a named lock exclusively, and prevents other canais 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.
Note To avoid the possibility of a deadlock, LOCK will only attempt to obtain the lock for 3 seconds if the canal already has another lock.
Note If 'live_dangerously' in 'asterisk.conf' is set to 'no', this função can only be executed from the dialplan, and not directly from external protocols.
LOCK(lockname)
lockname
Dialplan funções TRYLOCK Dialplan funções UNLOCK
This documentation was generated from Asterisk branch 18 using version GIT