Share via


GetUri

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.

GetUri

The GetUri function returns the URI portion of a SIP address, such as the address found in the From or To header field of a SIP message.

Syntax

string GetUri(
  string address
);

Parameters

  • Address
    The SIP address for which the associated URI portion is returned. For example, GetUri("\"Display Name\" <sip:someone@example.com\>;lr") returns "sip:someone@example.com".

Return Values

Returns the SIP URI as a string; for example, "sip:someone@example.com". Returns null if requested data is not found.