Brekeke SIP Server Wiki

$usrdir.lookup

Lookup from the Users Database

 

Syntax:
$usrdir.lookup
$usrdir.lookup( user_name )

user_name – User Name

Explanation:

Checks the user name specified as an argument is recorded in Users Database.

If the user is recorded, “true” will be returned. If not, “false” is returned.

If no argument is specified, Brekeke SIP Server checks if the authentication username in the SIP packet is recorded or not.

 

 

Where the function can be used:
  • Preliminary rules
  • Regular rules

 

Example:
$usrdir.lookup( "mike" ) = true

If the user “mike” is recorded in the Users Database.

 

Yes No
Suggest Edit