GetHostName(string) function

Microsoft Office Live Communications Server 2005 with SP1

GetHostName

The GetHostName function returns the hostname portion of a supplied SIP URI.

stringGetHostName(stringuri);

Parameters

  • uri
    A SIP URI whose hostname is returned. The function accepts only a valid SIP URI string in the following form: where "Display Name" <sip:user@host:port;param=value> where "Display Name", :port and ;param=value are optional. For example, GetHostName("sip:someone@example.com") returns the string "example.com".

Return Values

Returns the hostname 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.

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