$regUa
Get the User-Agent name of the registered user.
If no argument is specified, use the Request URI as the argument.
Syntax:
$regUa $regUa( SIP-URI ) $regUa( username )
Returns:
The User-Agent name of the registered user.
If a corresponding registration record isn’t found, null will be returned.
Version Since:
2.0
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$regUa(From) = (.+)
Get the From URI’s registered User-Agent name.