$registered
Check whether the SIP-URI or username is registered in the Registrar database.
If no parameter is specified, it checks whether the Request-URI indicates a registered user.
Syntax:
$registered $registered( SIP-URI ) $registered( username )
Returns:
true – if it is registered in the Registrar database.
false – otherwise
Version Since:
1.0
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$registered = true
If the user in the Request-URI is registered.
$registered(From) = true
If the caller (The user in From header) is registered.
$registered("alice") = false
If the user “alice” is not registered