LumiSoft Net Help
CreateRegistration Method (server, aor, contact, expires)
Namespaces ► LumiSoft.Net.SIP.Stack ► SIP_Stack ► CreateRegistration(SIP_Uri, String, AbsoluteUri, Int32)
Creates new registration.
Declaration Syntax

C# | Visual Basic | Visual C++ | F#

    public SIP_UA_Registration CreateRegistration(
    	SIP_Uri server,
    	string aor,
    	AbsoluteUri contact,
    	int expires
    )

    Public Function CreateRegistration (
    	server As SIP_Uri,
    	aor As String,
    	contact As AbsoluteUri,
    	expires As Integer
    ) As SIP_UA_Registration

    public:
    SIP_UA_Registration^ CreateRegistration(
    	SIP_Uri^ server,
    	String^ aor,
    	AbsoluteUri^ contact,
    	int expires
    )

    member CreateRegistration :
            server : SIP_Uri *
            aor : string *
            contact : AbsoluteUri *
            expires : int -> SIP_UA_Registration

Parameters

server (SIP_Uri)
  Registrar server URI. For example: sip:domain.com.

aor (String)
  Registration address of record. For example: user@domain.com.

contact (AbsoluteUri)
  Contact URI.

expires (Int32)
  Gets after how many seconds reigisration expires.

Return Value
SIP_UA_Registration
Returns created registration.
Exceptions

Exception | Condition
--- | ---
ObjectDisposedException | Is raised when this object is disposed and and this method is accessed.
ArgumentNullException | Is raised when server,aor or contact is null reference.
ArgumentException | Is raised when any of the arguments has invalid value.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119