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, PresenceDescription)

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,
    	PresenceDescription presence
    )

    Public Function PublishEventState (
    	from As String,
    	eventName As String,
    	expires As Integer,
    	presence As PresenceDescription
    ) 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.
presence
  Type: Independentsoft.Sip.Presence
  PresenceDescription
  A presence description to publish.

#### Return Value

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

Exception | Condition
--- | ---
ArgumentNullException | presence;PresenceDescription is null.

See Also

#### Reference

SipClient Class
PublishEventState Overload
Independentsoft.Sip Namespace

Copyright 2023 Independentsoft

Send comments on this topic to support@independentsoft.de