SIP .NET Class Library
SIP .NET Class Library
SIP .NET
Independentsoft.Sip
SipClient Class
SipClient Methods
Subscribe Method
Subscribe Method (String, String, String, Int32)
Subscribe Method (ContactInfo, ContactInfo, String, Int32)
Subscribe Method (String, String, String, String, Int32)
Subscribe Method (ContactInfo, ContactInfo, Contact, String, Int32)
Subscribe Method (String, String, String, String, String, Int32)
Subscribe Method (ContactInfo, ContactInfo, Contact, String, String, Int32)

# SipClient Subscribe Method (ContactInfo, ContactInfo, String, Int32)

Subscribes in order to receiving notifications about a particular event specified with the event name.

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

    public RequestResponse Subscribe(
    	ContactInfo from,
    	ContactInfo to,
    	string eventName,
    	int expires
    )

    Public Function Subscribe (
    	from As ContactInfo,
    	to As ContactInfo,
    	eventName As String,
    	expires As Integer
    ) As RequestResponse

#### Parameters

from
  Type: Independentsoft.Sip
  ContactInfo
  A ContactInfo contains address and display name of the subscriber.
to
  Type: Independentsoft.Sip
  ContactInfo
  A ContactInfo contains address and name of the recipient.
eventName
  Type: System
  String
  A string contains name of the event.
expires
  Type: System
  Int32
  A number of seconds indicates duration of the subscription.

#### Return Value

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

#### Reference

SipClient Class
Subscribe Overload
Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de