public class SipCallState extends AbstractPacketExtension
JibriIq.Status.PENDING
- (initial) SIP call is being started
JibriIq.Status.ON
- SIP call in progress
JibriIq.Status.OFF
- SIP call has been stopped
JibriIq.Status.FAILED
- SIP call has failed, check
getError()
for more details about the errorModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
XML element name of this packet extension.
|
static java.lang.String |
NAMESPACE
The namespace of this packet extension.
|
attributes
Constructor and Description |
---|
SipCallState() |
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smack.packet.XMPPError |
getError()
Returns XMPPError associated with current
SipCallState . |
java.lang.String |
getSipAddress() |
JibriIq.Status |
getStatus()
Returns the value of current SIP call status stored in it's attribute.
|
void |
setError(org.jivesoftware.smack.packet.XMPPError error)
Sets XMPPError on this SipCallState.
|
void |
setSipAddress(java.lang.String sipAddress)
Sets new value for
SIPADDRESS_ATTRIBUTE |
void |
setState(JibriIq.Status status)
Sets new value for the recording status.
|
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public java.lang.String getSipAddress()
SIPADDRESS_ATTRIBUTE
.public void setSipAddress(java.lang.String sipAddress)
SIPADDRESS_ATTRIBUTE
sipAddress
- a SIP addresspublic JibriIq.Status getStatus()
SipCallState
description for status description.JibriIq.Status
public void setState(JibriIq.Status status)
SipCallState
description for status description.status
- one of JibriIq.Status
public org.jivesoftware.smack.packet.XMPPError getError()
SipCallState
.
Makes sense only for FAILED.public void setError(org.jivesoftware.smack.packet.XMPPError error)
error
- XMPPError to add error details to this
SipCallState instance or null to have it removed.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.