GetDisplayName

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

GetDisplayName

The GetDisplayName function returns the display name associated with a supplied SIP address.

Syntax

string GetDisplayName(
  string address
);

Parameters

  • Address
    The SIP address whose associated display name portion will be parsed and returned; for example, GetDisplayName("\"Display Name\" <sip:someone@example.com:6767\>") returns the string "Display Name". (Note that the double quotes around the display name in the address must be escaped if a literal is passed directly, rather than as the output of another function, such as GetHeaderValues.)

Return Values

Returns the display name as a string. Returns null if requested data is not found.