GetPort
The GetPort function returns the port specified in a SIP URI.
Syntax
Copy Code | |
---|---|
int GetPort( string uri ); |
Parameters
Return Values
Returns the port number. Returns 0 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 Office Communications Server 2007.
Remarks
The port value occurs in a SIP URI after the hostname and separated by a colon. For example, a URI with a specified port appears as "sip:someone@example.com:6767" with the port being 6767.