public interface EarlyMediaDescription extends GroupedAvp
7.2.58 Early-Media-Description AVP The Early-Media-Description AVP (AVP code 1272) is of type grouped and describes the SDP session, media parameters and timestamps related to media components set to active according to SDP signalling exchanged during a SIP session establishment before the final successful or unsuccessful SIP answer to the initial SIP INVITE message is received. Once a media component has been set to active, subsequent status changes shall also be registered. Media can be considered as inactive in range of situations, such as the listed below according to RFC 3264 [408]: Media marked with "a=inactive" attribute. Media offered with zero bandwith. In contrast, media with directionality marked as "a=recvonly", "a=sendonly", "a=sendrecv" shall be considered in state "active" and thus, it may be exchanged in one or both directions. It has the following ABNF grammar: Early-Media-Description ::= <AVP Header: 1272> [ SDP-TimeStamps ] * [ SDP-Media-Component ] * [ SDP-Session-Description ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
SdpMediaComponent[] |
getSdpMediaComponents()
Returns the set of SDP-Media-Component AVPs.
|
java.lang.String[] |
getSdpSessionDescriptions()
Returns the set of SDP-Session-Description AVPs.
|
SdpTimestamps |
getSdpTimestamps()
Returns the value of the SDP-TimeStamps AVP, of type Grouped.
|
boolean |
hasSdpTimestamps()
Returns true if the SDP-TimeStamps AVP is present in the Early-Media-Description AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Early-Media-Description AVP.
|
void |
removeSdpMediaComponents()
Removes all SDP-Media-Component AVPs from the Early-Media-Description AVP.
|
void |
removeSdpSessionDescriptions()
Removes all SDP-Session-Description AVPs from the Early-Media-Description AVP.
|
void |
removeSdpTimestamps()
Removes the SDP-TimeStamps AVP from the Early-Media-Description AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setSdpMediaComponent(SdpMediaComponent sdpMediaComponent)
Sets a single SDP-Media-Component AVP in the Early-Media-Description AVP, of type Grouped.
|
void |
setSdpMediaComponents(SdpMediaComponent[] sdpMediaComponents)
Sets the set of SDP-Media-Component AVPs, with all the values in the given array.
|
void |
setSdpSessionDescription(java.lang.String sdpSessionDescription)
Sets a single SDP-Session-Description AVP in the Early-Media-Description AVP, of type UTF8String.
|
void |
setSdpSessionDescriptions(java.lang.String[] sdpSessionDescriptions)
Sets the set of SDP-Session-Description AVPs, with all the values in the given array.
|
void |
setSdpTimestamps(SdpTimestamps sdpTimestamps)
Sets the value of the SDP-TimeStamps AVP, of type Grouped.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasSdpTimestamps()
SdpTimestamps getSdpTimestamps()
void setSdpTimestamps(SdpTimestamps sdpTimestamps)
java.lang.NullPointerException
- if sdpTimestamps
is null
.void removeSdpTimestamps()
SdpMediaComponent[] getSdpMediaComponents()
void setSdpMediaComponent(SdpMediaComponent sdpMediaComponent)
java.lang.NullPointerException
- if sdpMediaComponent
is null
.void setSdpMediaComponents(SdpMediaComponent[] sdpMediaComponents)
java.lang.NullPointerException
- if sdpMediaComponents
is null
.void removeSdpMediaComponents()
java.lang.String[] getSdpSessionDescriptions()
void setSdpSessionDescription(java.lang.String sdpSessionDescription)
java.lang.NullPointerException
- if sdpSessionDescription
is null
.void setSdpSessionDescriptions(java.lang.String[] sdpSessionDescriptions)
java.lang.NullPointerException
- if sdpSessionDescriptions
is null
.void removeSdpSessionDescriptions()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()