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

# SipClient PublishEventState Method (String, String, Int32, String, String)

Publishes initial event state.

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

    public RequestResponse PublishEventState(
    	string from,
    	string eventName,
    	int expires,
    	string body,
    	string contentType
    )

    Public Function PublishEventState (
    	from As String,
    	eventName As String,
    	expires As Integer,
    	body As String,
    	contentType As String
    ) As RequestResponse

#### Parameters

from
  Type: System
  String
  A string contains address of the publisher of the event.
eventName
  Type: System
  String
  A string contains name of the event.
expires
  Type: System
  Int32
  A number of seconds indicates duration of the subscription.
body
  Type: System
  String
  A string contains event state information.
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
PublishEventState Overload
Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de