Skip to content

UNLOCK()

Synopsis

Unlocks a named mutex.

Description

Unlocks a previously locked mutex. Returns '1' if the channel had a lock or '0' otherwise.

Note

It is generally unnecessary to unlock in a hangup routine, as any locks held are automatically freed when the channel is destroyed.

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

UNLOCK(lockname)
Arguments
  • lockname

Generated Version

This documentation was generated from Asterisk branch certified/18.9 using version GIT