public interface CallParams
Call
. Call.acceptWithParams(org.linphone.core.CallParams)
Core.inviteAddressWithParams(org.linphone.core.Address, org.linphone.core.CallParams)
.Core.createCallParams(org.linphone.core.Call)
, using null forCallParams
are available: yours, yourCall.getCurrentParams()
, Call.getRemoteParams()
and Call.getParams()
Modifier and Type | Method and Description |
---|---|
void |
addCustomContent(Content content)
Adds a
Content to be added to the INVITE SDP. |
void |
addCustomHeader(java.lang.String headerName,
java.lang.String headerValue)
Add a custom SIP header in the INVITE for a call.
|
void |
addCustomSdpAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Add a custom attribute related to all the streams in the SDP exchanged within
SIP messages during a call. |
void |
addCustomSdpMediaAttribute(StreamType type,
java.lang.String attributeName,
java.lang.String attributeValue)
Add a custom attribute related to a specific stream in the SDP exchanged within
SIP messages during a call. |
boolean |
audioEnabled()
Tell whether audio is enabled or not.
|
boolean |
audioMulticastEnabled()
Use to get multicast state of audio stream.
|
void |
clearCustomSdpAttributes()
Clear the custom SDP attributes related to all the streams in the SDP exchanged
within SIP messages during a call. |
void |
clearCustomSdpMediaAttributes(StreamType type)
Clear the custom SDP attributes related to a specific stream in the SDP
exchanged within SIP messages during a call. |
CallParams |
copy()
Copy an existing
CallParams object to a new CallParams object. |
boolean |
earlyMediaSendingEnabled()
Indicate whether sending of early media was enabled.
|
void |
enableAudio(boolean enabled)
Enable audio stream.
|
void |
enableAudioMulticast(boolean yesno)
Use to enable multicast rtp for audio stream.
|
void |
enableAvpf(boolean enable)
Set the video stream direction.
|
void |
enableEarlyMediaSending(boolean enabled)
Enable sending of real early media (during outgoing calls).
|
void |
enableLowBandwidth(boolean enabled)
Indicate low bandwith mode.
|
int |
enableRealtimeText(boolean yesno)
Use to enable real time text following rfc4103.
|
void |
enableRtpBundle(boolean value)
Enables or disables RTP bundle mode (Media Multiplexing).
|
void |
enableVideo(boolean enabled)
Enable video stream.
|
void |
enableVideoMulticast(boolean yesno)
Use to enable multicast rtp for video stream.
|
MediaDirection |
getAudioDirection()
Get the audio stream direction.
|
Content[] |
getCustomContents()
Gets a list of
Content set if exists. |
java.lang.String |
getCustomHeader(java.lang.String headerName)
Get a custom SIP header.
|
java.lang.String |
getCustomSdpAttribute(java.lang.String attributeName)
Get a custom SDP attribute that is related to all the streams.
|
java.lang.String |
getCustomSdpMediaAttribute(StreamType type,
java.lang.String attributeName)
Get a custom SDP attribute that is related to a specific stream.
|
boolean |
getLocalConferenceMode()
Tell whether the call is part of the locally managed conference.
|
MediaEncryption |
getMediaEncryption()
Get the kind of media encryption selected for the call.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
int |
getPrivacy()
Get requested level of privacy for the call.
|
ProxyConfig |
getProxyConfig()
Get the
ProxyConfig that is used for the call. |
int |
getRealtimeTextKeepaliveInterval()
Use to get keep alive interval of real time text following rfc4103.
|
float |
getReceivedFramerate()
Get the framerate of the video that is received.
|
VideoDefinition |
getReceivedVideoDefinition()
Get the definition of the received video.
|
java.lang.String |
getRecordFile()
Get the path for the audio recording of the call.
|
java.lang.String |
getRtpProfile()
Get the RTP profile being used.
|
float |
getSentFramerate()
Get the framerate of the video that is sent.
|
VideoDefinition |
getSentVideoDefinition()
Get the definition of the sent video.
|
java.lang.String |
getSessionName()
Get the session name of the media session (ie in SDP).
|
PayloadType |
getUsedAudioPayloadType()
Get the audio payload type that has been selected by a call.
|
PayloadType |
getUsedTextPayloadType()
Get the text payload type that has been selected by a call.
|
PayloadType |
getUsedVideoPayloadType()
Get the video payload type that has been selected by a call.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
MediaDirection |
getVideoDirection()
Get the video stream direction.
|
boolean |
lowBandwidthEnabled()
Tell whether the call has been configured in low bandwidth mode or not.
|
boolean |
realtimeTextEnabled()
Use to get real time text following rfc4103.
|
boolean |
rtpBundleEnabled()
Indicates whether RTP bundle mode (also known as Media Multiplexing) is
enabled. |
void |
setAudioBandwidthLimit(int bandwidth)
Refine bandwidth settings for this call by setting a bandwidth limit for audio
streams. |
void |
setAudioDirection(MediaDirection direction)
Set the audio stream direction.
|
void |
setMediaEncryption(MediaEncryption encryption)
Set requested media encryption for a call.
|
void |
setPrivacy(int privacy)
Set requested level of privacy for the call.
|
void |
setProxyConfig(ProxyConfig proxyConfig)
Set the
ProxyConfig to use for the call. |
void |
setRealtimeTextKeepaliveInterval(int interval)
Use to set keep alive interval for real time text following rfc4103.
|
void |
setRecordFile(java.lang.String path)
Enable recording of the call.
|
void |
setSessionName(java.lang.String name)
Set the session name of the media session (ie in SDP).
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
void |
setVideoDirection(MediaDirection direction)
Set the video stream direction.
|
java.lang.String |
toString() |
boolean |
videoEnabled()
Tell whether video is enabled or not.
|
boolean |
videoMulticastEnabled()
Use to get multicast state of video stream.
|
void setAudioBandwidthLimit(int bandwidth)
bandwidth
- The audio bandwidth limit to set in kbit/s. MediaDirection getAudioDirection()
MediaDirection
associated with the callvoid setAudioDirection(MediaDirection direction)
direction
- The audio stream MediaDirection
associated with thisboolean audioEnabled()
void enableAudio(boolean enabled)
enabled
- A boolean value telling whether to enable audio or not. boolean audioMulticastEnabled()
Core.setAudioMulticastAddr(java.lang.String)
void enableAudioMulticast(boolean yesno)
void enableAvpf(boolean enable)
enable
- wether or not AVPF should be enabled for this call @NonNull Content[] getCustomContents()
Content
set if exists, null otherwise. boolean earlyMediaSendingEnabled()
void enableEarlyMediaSending(boolean enabled)
enabled
- A boolean value telling whether to enable early media sending orboolean getLocalConferenceMode()
Core.getConference()
boolean lowBandwidthEnabled()
enableLowBandwidth(boolean)
. When enabled, this param may transform a callvoid enableLowBandwidth(boolean enabled)
enabled
- A boolean value telling whether to activate the low bandwidthMediaEncryption getMediaEncryption()
MediaEncryption
selected for the call. void setMediaEncryption(MediaEncryption encryption)
encryption
- The MediaEncryption
to use for the call. int getPrivacy()
void setPrivacy(int privacy)
privacy
- The LinphonePrivacyMask to used for the call. @Nullable ProxyConfig getProxyConfig()
ProxyConfig
for the call, or null if none has beenvoid setProxyConfig(@Nullable ProxyConfig proxyConfig)
proxyConfig
- The ProxyConfig
to use, or null if none has beenCallParams
keep a reference on it and remove the older ifboolean realtimeTextEnabled()
int enableRealtimeText(boolean yesno)
yesno
- if yes, subsequent outgoing calls will propose rtt int getRealtimeTextKeepaliveInterval()
void setRealtimeTextKeepaliveInterval(int interval)
interval
- The keep alive interval for real time text, 25000 by default. float getReceivedFramerate()
@Nullable VideoDefinition getReceivedVideoDefinition()
VideoDefinition
or null. @Nullable java.lang.String getRecordFile()
void setRecordFile(@Nullable java.lang.String path)
Call.startRecording()
and linphone_call_pause_recording(). path
- A string containing the path and filename of the file whereboolean rtpBundleEnabled()
void enableRtpBundle(boolean value)
value
- a boolean to indicate whether the feature is to be enabled. @NonNull java.lang.String getRtpProfile()
float getSentFramerate()
@Nullable VideoDefinition getSentVideoDefinition()
VideoDefinition
or null. @Nullable java.lang.String getSessionName()
getCustomHeader(java.lang.String)
void setSessionName(@Nullable java.lang.String name)
name
- The session name to be used. @Nullable PayloadType getUsedAudioPayloadType()
PayloadType
. null is returned if no audio payload@Nullable PayloadType getUsedTextPayloadType()
PayloadType
. null is returned if no text payload@Nullable PayloadType getUsedVideoPayloadType()
PayloadType
. null is returned if no video payloadMediaDirection getVideoDirection()
MediaDirection
associated with the callvoid setVideoDirection(MediaDirection direction)
direction
- The video stream MediaDirection
associated with thisboolean videoEnabled()
void enableVideo(boolean enabled)
enabled
- A boolean value telling whether to enable video or not. boolean videoMulticastEnabled()
Core.setVideoMulticastAddr(java.lang.String)
void enableVideoMulticast(boolean yesno)
Core.getVideoMulticastAddr()
yesno
- if yes, subsequent outgoing calls will propose multicast ip set byCore.setVideoMulticastAddr(java.lang.String)
void addCustomContent(@NonNull Content content)
content
- The Content
to be added. void addCustomHeader(@NonNull java.lang.String headerName, @Nullable java.lang.String headerValue)
headerName
- The name of the header to add. headerValue
- The content of the header to add. void addCustomSdpAttribute(@NonNull java.lang.String attributeName, @Nullable java.lang.String attributeValue)
attributeName
- The name of the attribute to add. attributeValue
- The content value of the attribute to add. void addCustomSdpMediaAttribute(StreamType type, @NonNull java.lang.String attributeName, @Nullable java.lang.String attributeValue)
type
- The type of the stream to add a custom SDP attribute to. attributeName
- The name of the attribute to add. attributeValue
- The content value of the attribute to add. void clearCustomSdpAttributes()
void clearCustomSdpMediaAttributes(StreamType type)
type
- The type of the stream to clear the custom SDP attributes from. @NonNull CallParams copy()
CallParams
object. @Nullable java.lang.String getCustomHeader(@NonNull java.lang.String headerName)
headerName
- The name of the header to get. @Nullable java.lang.String getCustomSdpAttribute(@NonNull java.lang.String attributeName)
attributeName
- The name of the attribute to get. @Nullable java.lang.String getCustomSdpMediaAttribute(StreamType type, @NonNull java.lang.String attributeName)
type
- The type of the stream to add a custom SDP attribute to. attributeName
- The name of the attribute to get. void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object