CheckSipContact

Top  Previous  Next

CheckSIPContact(Contact: String): String;   - Delphi syntax (class function)

string CheckSIPContact(string contact); - C# syntax (static function)

CheckSIPContact(Contact As String) As String; - VB.NET syntax (Shared function)

HRESULT CheckSIPContact([in] BSTR Contact, [out, retval] BSTR* ValidatedContact); - IDL/COM syntax

 

Description

Checks if the passed Contact is a valid SIP address. If OK then it returns the same address prefixed with sip: if required 

If passed Contact is not a valid SIP address then an empty string will be returned.

 

For example

CheckSIPContact(user@sip.provider.com”) returns “<sip:user@sip.provider.com>”