$pb.displayname
Get a display name from the phone book.
Syntax:
$pb.displayname( number ) $pb.displayname( number, tag1, tag2, tag3 )
Parameters:
number – phone number of the contact in the phone book
tag1 – domain or tenant (for PBX MT)
tag2 – user or <blank if shared> (for PBX)
tag3 – phone book name
Returns:
A display name of the contact which has the phone number
Version Since:
3.8
Where the function can be used:
- Preliminary rules
- Regular rules
Example:
$pb.displayname($getSIPuser(From)) = (.*)
Get a display name of the contact of the caller