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 (ContactInfo, ContactInfo, Contact, String, String)

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(
    	ContactInfo from,
    	ContactInfo to,
    	Contact contact,
    	string body,
    	string contentType
    )

    Public Function Invite (
    	from As ContactInfo,
    	to As ContactInfo,
    	contact As Contact,
    	body As String,
    	contentType As String
    ) As RequestResponse

#### Parameters

from
  Type: Independentsoft.Sip
  ContactInfo
  A ContactInfo contains address and name of the initiator of the session.
to
  Type: Independentsoft.Sip
  ContactInfo
  A ContactInfo contains address and name of the recipient.
contact
  Type: Independentsoft.Sip
  Contact
  A string contains user's contact address. Usually the address contains user's IP address and port.
body
  Type: System
  String
  A string contains session description.
contentType
  Type: System
  String
  Content type of the body.

#### Return Value

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

#### Reference

SipClient Class
Invite Overload
Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de