SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip
SipClient Class
SipClient Methods
Invite Method
Invite Method (Dialog, SessionDescription)
Invite Method (Dialog, String, String)
Invite Method (String, String, String, SessionDescription)
Invite Method (ContactInfo, ContactInfo, Contact, SessionDescription)
Invite Method (String, String, String, String, String)
Invite Method (ContactInfo, ContactInfo, Contact, String, String)

# SipClient Invite Method (String, String, String, SessionDescription)

Invites another client to media session.

Namespace: Independentsoft.Sip
Assembly: Independentsoft.Sip (in Independentsoft.Sip.dll) Version: 1.0.700.17927
Syntax
C#
VB
Copy

    public RequestResponse Invite(
    	string from,
    	string to,
    	string contact,
    	SessionDescription session
    )

    Public Function Invite (
    	from As String,
    	to As String,
    	contact As String,
    	session As SessionDescription
    ) As RequestResponse

#### Parameters

from
  Type: System
  String
  A string contains address of the initiator of the session.
to
  Type: System
  String
  A string contains address of the recipient.
contact
  Type: System
  String
  A string contains user's contact address. Usually the address contains user's IP address and port.
session
  Type: Independentsoft.Sip.Sdp
  SessionDescription
  A SessionDescription contains description of the session.

#### Return Value

Type: RequestResponse
A RequestResponse containing sent Request and received appropriate Response.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | session;SessionDescription is null.

See Also

#### Reference

SipClient Class
Invite Overload
Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de