GetScheme

The GetScheme function returns the scheme associated with the SIP URI.

string GetScheme(
  string uri
);

Parameters

  • uri
    A string containing the URI whose scheme is returned; for example, "sip:someone@example.com".

Return Values

Returns the scheme as a string.

Remarks

The scheme value occurs in a SIP URI before the hostname and separated by a colon. For example, a URI with a "sip" scheme appears as "sip:someone@example.com".