function 'TRYLOCK'

[Synopsis]
Attempt to obtain a named mutex.
 
[Description]
Attempts to grab a named lock exclusively, and prevents other channels from
obtaining the same lock.  Returns '1' if the lock was  available or '0'
otherwise.
NOTE: If 'live_dangerously' in 'asterisk.conf' is set to 'no', this function
can only be executed from the dialplan, and not directly from external
protocols.
 
[Syntax]
TRYLOCK(lockname)
 
[Arguments]
Not available

[See Also] Not available

Asterisk: функции диалплана

  • asterisk/func/trylock.txt
  • Последние изменения: 2014/05/12