#include <NatTraversalAgentDataTypes.h>
Because this class stores information about both the caller and callee endpoints, method that are used to save information about a particular endpoint also accept a parameter that describes the role (see EndpointRole) of the endpoint to which the information pertains. Note that the designation of the caller and callee is established at call set-up time and does not change thoughout the lifetime of the dialog. That means that the CALLER endpoint role will be attributed to the original UAC of the dialog and vice versa.
On top of collecting information from the offer/answer SDPs, this class play the important role of remembering all the tentative media relay handles and currently used media relay handle. These handles link back to a symmitron bridge that actually performs the media relay function.
| MediaDescriptor | ( | const SdpBody & | sdpBody, | |
| size_t | index, | |||
| EndpointRole | endpointRole | |||
| ) |
| MediaDescriptor | ( | const MediaDescriptor & | referenceMediaDescriptor | ) |
| const UtlString & getType | ( | void | ) | const |
| MediaDirectionality getDirectionality | ( | void | ) | const |
| void setDirectionalityOverride | ( | MediaDirectionality | override | ) |
| MediaDirectionality getDirectionalityOverride | ( | void | ) | const |
| void setMediaTypeAndDirectionalityData | ( | const SdpBody & | sdpBody, | |
| size_t | index | |||
| ) |
| const MediaEndpoint & getEndpoint | ( | EndpointRole | endpointRole | ) | const |
| bool setEndpointData | ( | const SdpBody & | sdpBody, | |
| size_t | index, | |||
| EndpointRole | endpointRole | |||
| ) |
Returns true if 'set' operation resulted in a change in the saved data. Returns false if saved already matched new values.
| void setCurrentMediaRelayHandle | ( | const tMediaRelayHandle | handle | ) |
| tMediaRelayHandle getCurrentMediaRelayHandle | ( | void | ) | const |
| void clearCurrentMediaRelayHandle | ( | void | ) |
| void setTentativeInitialMediaRelayHandle | ( | const tMediaRelayHandle | handle | ) |
| tMediaRelayHandle getTentativeInitialMediaRelayHandle | ( | void | ) | const |
| void clearTentativeInitialMediaRelayHandle | ( | void | ) |
| void setTentativeNonInitialMediaRelayHandle | ( | const tMediaRelayHandle | handle | ) |
| tMediaRelayHandle getTentativeNonInitialMediaRelayHandle | ( | void | ) | const |
| void clearTentativeNonInitialMediaRelayHandle | ( | void | ) |
| MediaDirectionality sdpDirectionalityAttributeToMediaDirectionalityValue | ( | const SdpBody & | sdpBody, | |
| size_t | index | |||
| ) | [static] |
| void mediaDirectionalityValueToSdpDirectionalityAttribute | ( | const MediaDirectionality | valueToConvert, | |
| UtlString & | conversion | |||
| ) | [static] |
| MediaDescriptor & operator= | ( | const MediaDescriptor & | rhs | ) |
| const MediaEndpoint & getCallerEndpoint | ( | void | ) | const [private] |
| bool setCallerEndpointData | ( | const SdpBody & | sdpBody, | |
| size_t | index | |||
| ) | [private] |
| const MediaEndpoint & getCalleeEndpoint | ( | void | ) | const [private] |
| bool setCalleeEndpointData | ( | const SdpBody & | sdpBody, | |
| size_t | index | |||
| ) | [private] |
size_t mMediaDescriptionIndex [private] |
MediaDirectionality mDirectionality [private] |
MediaDirectionality mDirectionalityOverride [private] |
MediaEndpoint mCaller [private] |
MediaEndpoint mCallee [private] |
tMediaRelayHandle mCurrentMediaRelayHandle [private] |