GetScheme(string) function

Microsoft Office Live Communications Server 2005 with SP1

GetScheme

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

stringGetScheme(stringuri);

Parameters

  • uri
    A string containing the URI whose scheme is returned. The function accepts only a valid SIP URI string in the following form: "Display Name" <sip:user@host:port;param=value> where "Display Name", :port and ;param=value are optional. The scheme value in a SIP URI occurs before, and is separated by a colon from, the user name. For example, GetScheme("sip:someone@example.com") returns the scheme "sip".

Return Values

Returns the scheme as a string. Returns null if the requested data is not found or if the URI passed in is not a valid SIP URI in the form specified above. Live Communications Server 2003 applications that pass non-SIP URI strings to this function need to be modified to work properly with Live Communications Server 2005 with SP1.

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".

What did you think of this topic?
© 2008 Microsoft Corporation. All rights reserved.