public interface LinphoneCore
LinphoneCoreFactory.createLinphoneCore(LinphoneCoreListener, String, String, Object, Object)
.Modifier and Type | Interface and Description |
---|---|
static class |
LinphoneCore.AdaptiveRateAlgorithm |
static class |
LinphoneCore.AuthMethod
linphone authentication methods
|
static class |
LinphoneCore.EcCalibratorStatus
EC Calibrator Status
|
static class |
LinphoneCore.FirewallPolicy
Deprecated.
|
static class |
LinphoneCore.GlobalState
linphone core states
|
static class |
LinphoneCore.LinphoneLimeState |
static class |
LinphoneCore.LogCollectionUploadState
linphone log collection upload states
|
static class |
LinphoneCore.MediaDirection
Stream type enum-like.
|
static class |
LinphoneCore.MediaEncryption
Media (RTP) encryption enum-like.
|
static class |
LinphoneCore.RegistrationState
Describes proxy registration states.
|
static class |
LinphoneCore.RemoteProvisioningState
linphone remote provisioning states
|
static class |
LinphoneCore.StreamType
Stream type enum-like.
|
static class |
LinphoneCore.Transports
Linphone core SIP transport ports.
|
static class |
LinphoneCore.TunnelMode |
static class |
LinphoneCore.UpnpState |
Modifier and Type | Method and Description |
---|---|
void |
acceptCall(LinphoneCall aCall)
Accept an incoming call.
|
void |
acceptCallUpdate(LinphoneCall aCall,
LinphoneCallParams params)
Accept call modifications initiated by other end.
|
void |
acceptCallWithParams(LinphoneCall aCall,
LinphoneCallParams params)
Accept an incoming call.
|
boolean |
acceptEarlyMedia(LinphoneCall call)
When receiving an incoming, accept to start a media session as early-media.
|
boolean |
acceptEarlyMediaWithParams(LinphoneCall call,
LinphoneCallParams params)
Accept an early media session for an incoming call.
|
void |
addAllToConference()
Add all calls into a conference.
|
void |
addAuthInfo(LinphoneAuthInfo info)
Adds authentication information to the LinphoneCore.
|
void |
addFriend(LinphoneFriend lf)
add a friend to the current buddy list, if subscription attribute is set, a SIP SUBSCRIBE message is sent.
|
void |
addFriendList(LinphoneFriendList friendList)
Adds the friend list to the linphone core.
|
void |
addListener(LinphoneCoreListener listener)
Adds a new listener to be called by the core
|
void |
addProxyConfig(LinphoneProxyConfig proxyCfg)
Add a proxy configuration.
|
void |
addToConference(LinphoneCall call)
Merge a call into a conference.
|
void |
adjustSoftwareVolume(int i)
Deprecated.
|
boolean |
audioMulticastEnabled()
Use to get multicast state of audio stream.
|
boolean |
chatEnabled()
Returns whether chat is enabled.
|
void |
clearAuthInfos()
clear all the added auth info
|
void |
clearCallLogs()
remove all call logs
|
void |
clearProxyConfigs()
clear all added proxy configs
|
LinphoneCallParams |
createCallParams(LinphoneCall call)
Create a LinphoneCallParams suitable to be used for a new incoming call or an established call, in
methods LinphoneCore.inviteAddressWithParams(), LinphoneCore.updateCall(), LinphoneCore.acceptCallWithParams(), LinphoneCore.acceptCallUpdate().
|
LinphoneConference |
createConference(LinphoneConferenceParams params)
Create a conference
|
LinphoneInfoMessage |
createInfoMessage()
Create an empty INFO message.
|
LinphoneFriendList |
createLinphoneFriendList()
Creates a friend list.
|
LinphonePlayer |
createLocalPlayer(org.linphone.mediastream.video.AndroidVideoWindowImpl window)
Create a media player
|
LinphoneNatPolicy |
createNatPolicy()
Create a new LinphoneNatPolicy object with every policies being disabled.
|
LinphoneProxyConfig |
createProxyConfig()
Creates a proxy config using the default values if they exists
|
LinphoneProxyConfig |
createProxyConfig(String identity,
String proxy,
String route,
boolean enableRegister) |
LinphoneEvent |
createPublish(LinphoneAddress resource,
String event,
int expires)
Create a publish context for an event state.
|
LinphoneEvent |
createSubscribe(LinphoneAddress resource,
String event,
int expires)
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
|
void |
declineCall(LinphoneCall call,
Reason reason)
Declines an incoming call, providing a reason for declining it.
|
void |
deferCallUpdate(LinphoneCall aCall)
Prevent LinphoneCore from performing an automatic answer
Basically the application is notified of incoming calls within the
LinphoneCoreListener.callState(org.linphone.core.LinphoneCore, org.linphone.core.LinphoneCall, org.linphone.core.LinphoneCall.State, java.lang.String) listener method. |
void |
destroy()
destroy linphone core and free all underlying resources
|
void |
disableChat(Reason denycode)
Inconditionnaly disable incoming chat messages.
|
boolean |
dnsSrvEnabled()
Tells whether DNS SRV resolution is enabled.
|
void |
enableAdaptiveRateControl(boolean enable)
Enable adaptive rate control.
|
void |
enableAudioMulticast(boolean yesno)
Use to enable multicast rtp for audio stream.
|
void |
enableChat()
Enable reception of incoming chat messages.
|
void |
enableDnsSrv(boolean yesno)
Enable or disable DNS SRV resolution.
|
void |
enableEchoCancellation(boolean enable)
Enables or disable echo cancellation.
|
void |
enableEchoLimiter(boolean val) |
void |
enableIpv6(boolean enable) |
void |
enableKeepAlive(boolean enable)
enable signaling keep alive. small udp packet sent periodically to keep udp NAT association
|
void |
enableOpenH264(boolean enable)
Enable or not openh264
|
void |
enablePayloadType(PayloadType pt,
boolean enable)
Enable payload type
|
void |
enableSdp200Ack(boolean enable)
Control when media offer is sent in SIP INVITE.
|
void |
enableSpeaker(boolean value)
Activates or deactivates the speaker.
|
void |
enableVideo(boolean vcap_enabled,
boolean display_enabled)
Enables video globally.
|
void |
enableVideoMulticast(boolean yesno)
Use to enable multicast rtp for video stream.
|
boolean |
enterConference()
Moves the local participant inside the conference.
|
LinphoneAuthInfo |
findAuthInfo(String username,
String realm,
String domain)
Returns a matching auth info or null if no match found
|
LinphoneCall |
findCallFromUri(String uri)
Search from the list of current calls if a remote address match uri
|
LinphoneFriend |
findFriendByAddress(String sipUri)
return a linphone friend (if exists) that matches the sip address
|
PayloadType |
findPayloadType(String mime)
get payload type from mime type
Same as @{link
findPayloadType(String, int, int) but ignoring channels and clock rate params |
PayloadType |
findPayloadType(String mime,
int clockRate)
get payload type from mime type and clock rate..
|
PayloadType |
findPayloadType(String mime,
int clockRate,
int channels)
Get payload type from mime type and clock rate
This function searches in audio and video codecs for the given payload type name and clockrate.
|
LinphoneCore.AdaptiveRateAlgorithm |
getAdaptiveRateAlgorithm()
Returns which adaptive rate algorithm is currently configured for
future calls.
|
PayloadType[] |
getAudioCodecs()
Returns the currently supported audio codecs, as PayloadType elements
|
int |
getAudioDscp()
Return DSCP value used for the audio RTP sockets.
|
String |
getAudioMulticastAddr()
Use to get multicast address to be used for audio stream.
|
int |
getAudioMulticastTtl()
Use to get multicast ttl to be used for audio stream.
|
LinphoneAuthInfo[] |
getAuthInfosList()
Returns an array with all the auth infos stored in LinphoneCore
|
LinphoneCallLog[] |
getCallLogs() |
LinphoneCall[] |
getCalls()
Returns all calls.
|
int |
getCallsNb()
Get number of calls currently handled by Linphone core
|
LinphoneChatRoom |
getChatRoom(LinphoneAddress to)
Create a new chat room for messaging from a linphone address
|
LinphoneChatRoom[] |
getChatRooms()
Gets the chat rooms
|
LinphoneConference |
getConference()
Return the value of the C pointer on the conference instance.
|
int |
getConferenceSize()
Returns the number of participants to the conference, including the local participant.
|
LpConfig |
getConfig() |
LinphoneCall |
getCurrentCall()
Returns The LinphoneCall the current call if one is in call
|
LinphoneProxyConfig |
getDefaultProxyConfig()
get he default proxy configuration, that is the one used to determine the current identity.
|
int |
getDownloadBandwidth()
Retrieve the maximum available download bandwidth.
|
String |
getFileTransferServer()
Get the globaly set http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml.
|
LinphoneCore.FirewallPolicy |
getFirewallPolicy()
Deprecated.
|
LinphoneFriend[] |
getFriendList()
Get list of LinphoneFriend
|
LinphoneFriendList[] |
getFriendLists()
Get list of LinphoneFriendList
|
LinphoneCore.GlobalState |
getGlobalState()
Get the LinphoneCore's global state.
|
String |
getHttpProxyHost()
Get the http proxy host previously set.
|
int |
getHttpProxyPort()
Get the http proxy port previously set.
|
LinphoneCallLog |
getLastOutgoingCallLog() |
LinphoneCore.LinphoneLimeState |
getLimeEncryption() |
int |
getMaxCalls()
Get the maximum number of simultaneous calls Linphone core can manage at a time.
|
LinphoneCore.MediaEncryption |
getMediaEncryption()
return selected media encryption
|
int |
getMissedCallsCount() |
Factory |
getMSFactory()
Returns the mediastreamer2 (media stack) factory object used by the LinphoneCore.
|
int |
getMtu()
Returns the mtu value previously set by setMtu().
|
LinphoneNatPolicy |
getNatPolicy()
Get The policy that is used to pass through NATs/firewalls.
|
int |
getNortpTimeout()
Get the nortp timeout.
|
LinphoneChatRoom |
getOrCreateChatRoom(String to)
Create a new chat room for messaging from a sip uri like sip:joe@sip.linphone.org
|
int |
getPayloadTypeBitrate(PayloadType pt)
Get target bitrate previously set by setPayloadTypeBitrate().
|
int |
getPayloadTypeNumber(PayloadType pt) |
float |
getPlaybackGain()
get play level before entering sound card:
|
int |
getPlayLevel()
get playback level [0..100];
-1 if not cannot be determined
|
float |
getPreferredFramerate()
Returns the preferred video framerate, previously set by setPreferredFramerate().
|
VideoSize |
getPreferredVideoSize()
get current preferred video size for sending.
|
OnlineStatus |
getPresenceInfo()
Deprecated.
Use getPresenceModel() instead
|
PresenceModel |
getPresenceModel()
Get my presence status
|
String |
getPrimaryContact()
Returns the address used if no LinphoneProxyConfig configured
|
String |
getPrimaryContactDisplayName()
Returns the display name used if no LinphoneProxyConfig configured
|
String |
getPrimaryContactUsername()
Returns the username used if no LinphoneProxyConfig configured
|
String |
getProvisioningUri()
Get the provisioning URI previously set.
|
LinphoneProxyConfig[] |
getProxyConfigList()
Returns an unmodifiable list of entered proxy configurations.
|
LinphoneAddress |
getRemoteAddress()
get current call remote address in case of in/out call
|
String |
getRemoteRingbackTone()
Return the ringback tone file used when doing early media.
|
String |
getRing()
gets the path to a wav file used for ringing.
|
LinphoneCore.Transports |
getSignalingTransportPorts()
Get
|
int |
getSipDscp()
Get DSCP used for SIP socket.
|
int |
getSipTransportTimeout()
Get the current SIP transport timeout.
|
String |
getStunServer()
Get STUN server
|
String[] |
getSupportedVideoSizes()
Gets the linphonecore supported resolutions for video
|
String |
getTlsCertificate()
Gets the TLS certificate
|
String |
getTlsCertificatePath()
Gets the path to the TLS certificate file
|
String |
getTlsKey()
Gets the TLS key file
|
String |
getTlsKeyPath()
Gets the path to the TLS key file
|
int |
getUploadBandwidth()
Retrieve the maximum available upload bandwidth.
|
String |
getUpnpExternalIpaddress()
Return the external ip address of router.
|
LinphoneCore.UpnpState |
getUpnpState()
Return the internal state of uPnP.
|
boolean |
getUseRfc2833ForDtmfs()
Returns the state of use of inband DTMFs
|
boolean |
getUseSipInfoForDtmfs()
Returns the state of use of SIP INFO for DTMFs
|
String |
getVersion()
return the version code of linphone core
|
boolean |
getVideoAutoAcceptPolicy()
Gets the policy for the autoAccept video
|
boolean |
getVideoAutoInitiatePolicy()
Gets the policy for the autoInitiate video
|
PayloadType[] |
getVideoCodecs()
Returns the currently supported video codecs, as PayloadType elements
|
int |
getVideoDevice()
Returns the id of the currently active video device as found in
AndroidCameraConfiguration.retrieveCameras() . |
int |
getVideoDscp()
Return DSCP value used for the video RTP sockets.
|
String |
getVideoMulticastAddr()
Use to get multicast address to be used for video stream.
|
int |
getVideoMulticastTtl()
Use to get multicast ttl to be used for video stream.
|
String |
getVideoPreset()
Get the video preset used for video calls.
|
boolean |
hasBuiltInEchoCanceler()
Returns true if the software echo canceler needs to be turned on.
|
boolean |
hasCrappyOpenGL()
Returns true if the OpenGL on this device is crappy and we need to use the old Android display
|
LinphoneAddress |
interpretUrl(String destination)
Build an address according to the current proxy config.
|
LinphoneCall |
invite(LinphoneAddress to)
Initiates an outgoing call given a destination LinphoneAddress
The LinphoneAddress can be constructed directly using
LinphoneCoreFactory.createLinphoneAddress(java.lang.String, java.lang.String, java.lang.String) , or created interpretUrl(String) . . |
LinphoneCall |
invite(String destination)
Starts a call given a destination.
|
LinphoneCall |
inviteAddressWithParams(LinphoneAddress destination,
LinphoneCallParams params)
Initiates an outgoing call given a destination LinphoneAddress
|
boolean |
isAdaptiveRateControlEnabled()
Enables or disable adaptive rate control.
|
boolean |
isEchoCancellationEnabled()
get EC status
|
boolean |
isEchoLimiterEnabled()
Get echo limiter status (another method of doing echo suppression, more brute force)
|
boolean |
isIncall() |
boolean |
isInComingInvitePending() |
boolean |
isInConference()
Indicates whether the local user is part of the conference.
|
boolean |
isIpv6Enabled() |
boolean |
isKeepAliveEnabled()
get keep elive mode
|
boolean |
isLimeEncryptionAvailable() |
boolean |
isMediaEncryptionMandatory() |
boolean |
isMicMuted() |
boolean |
isMyself(String uri)
Deprecated.
|
boolean |
isNetworkReachable()
Get network state has known by
LinphoneCore |
boolean |
isPayloadTypeEnabled(PayloadType pt) |
boolean |
isSdp200AckEnabled()
Media offer control param for SIP INVITE.
|
boolean |
isSpeakerEnabled()
Tells whether the speaker is activated.
|
boolean |
isTunnelAvailable() |
boolean |
isVCardSupported()
Returns true if the underlying sdk support vCards
|
boolean |
isVideoEnabled()
Returns TRUE if video is enabled, FALSE otherwise.
|
boolean |
isVideoSupported()
Returns true if the underlying sdk support video
|
void |
iterate()
Main loop function.
|
void |
leaveConference()
Moves the local participant out of the conference.
|
boolean |
mediaEncryptionSupported(LinphoneCore.MediaEncryption menc)
Returns whether given media encryption is supported by liblinphone.
|
void |
migrateCallLogs()
Migrates the call logs from the linphonerc to the database if not done yet
|
int |
migrateToMultiTransport()
Migrate configuration so that all SIP transports are enabled.
|
void |
muteMic(boolean isMuted)
Mutes or unmutes the local microphone.
|
boolean |
needsEchoCalibration()
Returns true if echo calibration is recommended.
|
boolean |
openH264Enabled()
Return if we enable openh264
|
boolean |
pauseAllCalls()
Pause all currently running calls.
|
boolean |
pauseCall(LinphoneCall call)
Pauses a call.
|
boolean |
payloadTypeIsVbr(PayloadType pt) |
void |
playDtmf(char dtmf,
int duration)
Initiate a dtmf signal to the speaker if not in call.
|
LinphoneEvent |
publish(LinphoneAddress resource,
String event,
int expires,
LinphoneContent content)
Publish an event.
|
void |
refreshRegisters()
re-initiates registration if network is up.
|
void |
reloadMsPlugins(String path)
Reload mediastreamer2 plugins from specified directory.
|
void |
reloadSoundDevices()
Reload sound devices.
|
void |
removeAuthInfo(LinphoneAuthInfo authInfo)
Removes a auth info.
|
void |
removeCallLog(LinphoneCallLog log)
remove a call log
|
void |
removeFriend(LinphoneFriend lf)
remove a linphone friend from linphone core and linphonerc
|
void |
removeFriendList(LinphoneFriendList friendList)
Removes the friend list from the linphone core.
|
void |
removeFromConference(LinphoneCall call)
Remove a call from the conference.
|
void |
removeListener(LinphoneCoreListener listener)
Removes a listener previously added with addListener
|
void |
removeProxyConfig(LinphoneProxyConfig proxyCfg)
Removes a proxy configuration.
|
void |
resetLogCollection()
Reset the log collection by removing the log files.
|
void |
resetMissedCallsCount()
Set missed calls count to zero
|
boolean |
resumeCall(LinphoneCall call)
Resume a call.
|
void |
sendDtmf(char number)
Initiate a dtmf signal if in call
|
void |
sendDtmfs(String dtmf)
Initiate dtmf if in call
|
void |
setAdaptiveRateAlgorithm(LinphoneCore.AdaptiveRateAlgorithm alg)
Sets adaptive rate algorithm.
|
void |
setAudioCodecs(PayloadType[] codecs)
Set the list of audio codecs.
|
void |
setAudioDscp(int dscp)
Assign a DSCP value to the audio RTP sockets.
|
void |
setAudioJittcomp(int value)
Set audio jitter buffer size in milliseconds.
|
void |
setAudioMulticastAddr(String ip)
Use to set multicast address to be used for audio stream.
|
void |
setAudioMulticastTtl(int ttl)
Use to set multicast ttl to be used for audio stream.
|
void |
setAudioPort(int port)
Sets the UDP port used for audio streaming.
|
void |
setAudioPortRange(int minPort,
int maxPort)
Sets the UDP port range from which to randomly select the port used for audio streaming.
|
void |
setCallErrorTone(Reason reason,
String path)
Assign an audio file to played locally upon call failure, for a given reason.
|
void |
setCallLogsDatabasePath(String path)
Sets the path to the database where the logs will be stored (if enabled)
|
void |
setChatDatabasePath(String path)
Sets the path to the database where the chat messages will be stored (if enabled)
|
void |
setContext(Object context)
Set the context of creation of the LinphoneCore.
|
void |
setCpuCount(int count)
Set the number of cores used for media processing
|
void |
setDefaultProxyConfig(LinphoneProxyConfig proxyCfg)
Sets the default proxy.
|
void |
setDefaultSoundDevices() |
void |
setDeviceRotation(int rotation)
Tells the core the device current orientation.
|
void |
setDnsServers(String[] servers)
Overrides the list of DNS servers to use.
|
void |
setDownloadBandwidth(int bw)
Sets maximum available download bandwidth
This is IP bandwidth, in kbit/s.
|
void |
setDownloadPtime(int ptime)
Sets audio packetization interval suggested for remote end.
|
void |
setFileTransferServer(String serverUrl)
Globaly set an http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml.
|
void |
setFirewallPolicy(LinphoneCore.FirewallPolicy pol)
Deprecated.
|
void |
setFriendsDatabasePath(String path)
Sets the path to the database where the friends will be stored (if enabled)
|
void |
setHttpProxyHost(String host)
Set an http proxy hostname or IP address to use for SIP connection.
|
void |
setHttpProxyPort(int port)
Set an http proxy port to use for SIP connection.
|
void |
setInCallTimeout(int timeout)
Set the call timeout in seconds.
|
void |
setIncomingTimeout(int timeout)
Set the incoming call timeout in seconds.
|
void |
setLimeEncryption(LinphoneCore.LinphoneLimeState lime) |
void |
setMaxCalls(int max)
Set the maximum number of simultaneous calls Linphone core can manage at a time.
|
void |
setMediaEncryption(LinphoneCore.MediaEncryption menc)
set media encryption (rtp) to use
|
void |
setMediaEncryptionMandatory(boolean yesno)
Set media encryption required for outgoing calls
|
void |
setMediaNetworkReachable(boolean isReachable)
This method is called by the application to notify the linphone core library when the media (RTP) network is reachable.
|
void |
setMicrophoneGain(float gain)
Allow to control microphone level:
|
void |
setMtu(int mtu)
Inform the core about the maximum transmission unit of the network.
|
void |
setNatPolicy(LinphoneNatPolicy policy)
Set the policy to use to pass through NATs/firewalls.
|
void |
setNetworkReachable(boolean isReachable)
This method is called by the application to notify the Linphone core library when network is reachable.
|
void |
setNortpTimeout(int seconds) |
void |
setPayloadTypeBitrate(PayloadType pt,
int bitrate)
Set an explicit bitrate (IP bitrate, not codec bitrate) for a given codec, in kbit/s.
|
void |
setPayloadTypeNumber(PayloadType pt,
int number)
Force a number for a payload type.
|
void |
setPlaybackGain(float gain)
Allow to control play level before entering sound card:
|
void |
setPlayFile(String path) |
void |
setPlayLevel(int level)
set play level
|
void |
setPreferredFramerate(float fps)
Set the preferred frame rate for video.
|
void |
setPreferredVideoSize(VideoSize vSize)
Sets the preferred video size.
|
void |
setPreferredVideoSizeByName(String name)
Sets the preferred video size giving a known size name.
|
void |
setPresenceInfo(int minutes_away,
String alternative_contact,
OnlineStatus status)
Deprecated.
Use setPresenceModel() instead
|
void |
setPresenceModel(PresenceModel presence)
Set my presence status
|
void |
setPreviewWindow(Object w)
Set the native video window id where the video preview is to be displayed.
|
void |
setPrimaryContact(String address)
Set address to use if no LinphoneProxyConfig configured
|
void |
setPrimaryContact(String displayName,
String username)
Set username and display name to use if no LinphoneProxyConfig configured
|
void |
setProvisioningUri(String uri)
Set a provisioning URI to fetch an xml linphonerc config file from, at next LinphoneCore instantiation.
|
void |
setRemoteRingbackTone(String file)
Specifies a ring back tone to be played to far end during incoming calls, when early media is requested.
|
void |
setRing(String path)
Sets the path to a wav file used for ringing.
|
void |
setRingback(String path)
Sets the path to a wav file used for for ringing back.
|
void |
setRootCA(String path)
Sets file or folder containing trusted root CAs
|
void |
setRootCAData(String data)
Sets trusted root CAs
|
void |
setSignalingTransportPorts(LinphoneCore.Transports transports)
Set transport ports linphone core will listen on
|
void |
setSipDscp(int dscp)
Assign a dscp value for the SIP socket.
|
void |
setSipNetworkReachable(boolean isReachable)
This method is called by the application to notify the linphone core library when the SIP network is reachable.
|
void |
setSipTransportTimeout(int timeout_ms)
Set the timeout in milliseconds for SIP transport (TCP or TLS connection establishment maximum time).
|
void |
setStaticPicture(String path)
Set static picture to be used when "Static picture" is the video device
|
void |
setStunServer(String stun_server)
Specify a STUN server to help firewall traversal.
|
void |
setTlsCertificate(String cert)
Sets the TLS certificate
|
void |
setTlsCertificatePath(String path)
Sets the TLS certificate file path
|
void |
setTlsKey(String key)
Sets the TLS key
|
void |
setTlsKeyPath(String path)
Sets the TLS key file path
|
void |
setTone(ToneID id,
String wavfile)
Assign an audio file to be played locally in replacement of common telephony tone.
|
void |
setUploadBandwidth(int bw) |
void |
setUploadPtime(int ptime)
Sets audio packetization interval sent to remote end.
|
void |
setUserAgent(String name,
String version)
Sets the user agent string used in SIP messages.
|
void |
setUserCertificatesPath(String path)
Set user certificates directory path (used by SRTP-DTLS).
|
void |
setUseRfc2833ForDtmfs(boolean use)
Enable/Disable the use of inband DTMFs
|
void |
setUseSipInfoForDtmfs(boolean use)
Enable/Disable the use of SIP INFO for DTMFs
|
void |
setVideoCodecs(PayloadType[] codecs)
Set the list of video codecs.
|
void |
setVideoDevice(int id)
Sets the active video device.
|
void |
setVideoDscp(int dscp)
Assign a DSCP value to the video RTP sockets.
|
void |
setVideoJittcomp(int value)
Set video jitter buffer size in milliseconds.
|
void |
setVideoMulticastAddr(String ip)
Use to set multicast address to be used for video stream.
|
void |
setVideoMulticastTtl(int ttl)
Use to set multicast ttl to be used for video stream.
|
void |
setVideoPolicy(boolean autoInitiate,
boolean autoAccept)
Sets the default policy for video.
|
void |
setVideoPort(int port)
Sets the UDP port used for video streaming.
|
void |
setVideoPortRange(int minPort,
int maxPort)
Sets the UDP port range from which to randomly select the port used for video streaming.
|
void |
setVideoPreset(String preset)
Set the video preset to be used for video calls.
|
void |
setVideoWindow(Object w)
Set the native video window id where the video is to be displayed.
|
void |
setZrtpSecretsCache(String file) |
boolean |
soundResourcesLocked()
Use this method to check the calls state and forbid proposing actions
which could result in an active call.
|
void |
startConferenceRecording(String path)
Request recording of the conference into a supplied file path.
|
void |
startEchoCalibration(LinphoneCoreListener listener)
Start an echo calibration of the sound devices, in order to find adequate settings for the echo canceler automatically.
|
int |
startEchoTester(int rate)
Start the speaker and the micro to test the echo
|
LinphoneCall |
startReferedCall(LinphoneCall call,
LinphoneCallParams params)
Start a new call as a consequence of a transfer request received from a call.
|
void |
stopConferenceRecording()
Stop recording of the conference.
|
void |
stopDtmf()
stop current dtmf
|
int |
stopEchoTester()
Stop the speaker and the micro
|
void |
stopRinging()
Whenever the liblinphone is playing a ring to advertise an incoming call or ringback of an outgoing call, this function stops the ringing.
|
LinphoneEvent |
subscribe(LinphoneAddress resource,
String event,
int expires,
LinphoneContent content)
Sends an outgoing subscription for a resource with given event, expiration period, and content.
|
void |
terminateAllCalls()
Terminates all the calls.
|
void |
terminateCall(LinphoneCall aCall)
Terminates a call.
|
void |
terminateConference()
Terminates the conference and the calls associated with it.
|
void |
transferCall(LinphoneCall call,
String referTo)
Performs a simple call transfer to the specified destination.
|
void |
transferCallToAnother(LinphoneCall callToTransfer,
LinphoneCall destination)
Transfer a call to destination of another running call.
|
void |
tunnelAddServer(TunnelConfig config)
Add a server to the list of tunnel servers.
|
void |
tunnelAddServerAndMirror(String host,
int port,
int udpMirrorPort,
int roundTripDelay) |
void |
tunnelAutoDetect()
Deprecated.
Use tunnelSetMode instaead
Enable tunnel if the mirror RTP session cannot be established
|
void |
tunnelCleanServers()
Clean the list of server
|
void |
tunnelEnable(boolean enable)
Deprecated.
Use tunnelSetMode() instead
Enable or disable tunnel
|
void |
tunnelEnableSip(boolean enable)
Set whether sip packets must pass through the tunnel
|
LinphoneCore.TunnelMode |
tunnelGetMode()
Get the set mode
|
TunnelConfig[] |
tunnelGetServers()
Returns a list of configured servers.
|
void |
tunnelSetHttpProxy(String proxy_host,
int port,
String username,
String password)
Set an optional HTTP proxy
|
void |
tunnelSetMode(LinphoneCore.TunnelMode mode)
Set the tunnel mode.
|
boolean |
tunnelSipEnabled()
Check whether SIP tuneling is enabled
|
int |
updateCall(LinphoneCall call,
LinphoneCallParams params)
Updates a running call according to supplied call parameters or parameters changed in the LinphoneCore.
|
void |
uploadLogCollection()
Upload the log collection to the configured server url.
|
boolean |
upnpAvailable()
Return the availability of uPnP.
|
boolean |
videoMulticastEnabled()
Use to get multicast state of video stream.
|
void setContext(Object context)
LinphoneCore.GlobalState getGlobalState()
void clearProxyConfigs()
void addProxyConfig(LinphoneProxyConfig proxyCfg) throws LinphoneCoreException
proxyCfg
- LinphoneCoreException
void removeProxyConfig(LinphoneProxyConfig proxyCfg)
proxyCfg
- void setDefaultProxyConfig(LinphoneProxyConfig proxyCfg)
LinphoneProxyConfig
.
Toggling it as default will make LinphoneCore favor the identity associated with the proxy configuration in all incoming and outgoing calls.
Better proxy configuration match may override this choice. Pass null to unset the default proxy.proxyCfg
- LinphoneProxyConfig getDefaultProxyConfig()
LinphoneAuthInfo[] getAuthInfosList()
LinphoneAuthInfo findAuthInfo(String username, String realm, String domain)
void removeAuthInfo(LinphoneAuthInfo authInfo)
authInfo
- void clearAuthInfos()
void addAuthInfo(LinphoneAuthInfo info)
info
- LinphoneAddress interpretUrl(String destination) throws LinphoneCoreException
destination
- LinphoneCoreException
- if no LinphoneAddress can be built from destinationLinphoneCall invite(String destination) throws LinphoneCoreException
interpretUrl(String)
then invite(LinphoneAddress)
.destination
- LinphoneCoreException
LinphoneCall invite(LinphoneAddress to) throws LinphoneCoreException
LinphoneCoreFactory.createLinphoneAddress(java.lang.String, java.lang.String, java.lang.String)
, or created interpretUrl(String)
. .to
- the destination of the call (sip address).LinphoneCoreException
- if linphone call cannot be createdvoid terminateCall(LinphoneCall aCall)
aCall
- to be terminatedvoid declineCall(LinphoneCall call, Reason reason)
call
- the LinphoneCall, must be in the LinphoneCall.State.IncomingReceived
state.reason
- the reason for rejecting the call: Reason.Declined
or Reason.Busy
LinphoneCall getCurrentCall()
LinphoneAddress getRemoteAddress()
boolean isIncall()
boolean isInComingInvitePending()
void iterate()
void acceptCall(LinphoneCall aCall) throws LinphoneCoreException
LinphoneCoreListener.callState(org.linphone.core.LinphoneCore, org.linphone.core.LinphoneCall, org.linphone.core.LinphoneCall.State, java.lang.String)
listener method.
The application can later respond positively to the call using
this method.LinphoneCoreException
void acceptCallWithParams(LinphoneCall aCall, LinphoneCallParams params) throws LinphoneCoreException
LinphoneCoreListener.callState(org.linphone.core.LinphoneCore, org.linphone.core.LinphoneCall, org.linphone.core.LinphoneCall.State, java.lang.String)
listener method.
The application can later respond positively to the call using
this method.LinphoneCoreException
void acceptCallUpdate(LinphoneCall aCall, LinphoneCallParams params) throws LinphoneCoreException
LinphoneCoreListener.callState(org.linphone.core.LinphoneCore, org.linphone.core.LinphoneCall, org.linphone.core.LinphoneCall.State, java.lang.String)
listener method.
The application can later respond positively to the call using
this method.LinphoneCoreException
void deferCallUpdate(LinphoneCall aCall) throws LinphoneCoreException
LinphoneCoreListener.callState(org.linphone.core.LinphoneCore, org.linphone.core.LinphoneCall, org.linphone.core.LinphoneCall.State, java.lang.String)
listener method.
The application can later respond positively to the call using
this method.LinphoneCoreException
LinphoneCallLog[] getCallLogs()
LinphoneCallLog getLastOutgoingCallLog()
void setNetworkReachable(boolean isReachable)
isReachable
- network stateboolean isNetworkReachable()
LinphoneCore
void destroy()
void setPlaybackGain(float gain)
gain
- in dbfloat getPlaybackGain()
void setPlayLevel(int level)
level
- [0..100]int getPlayLevel()
void muteMic(boolean isMuted)
isMuted
- boolean isMicMuted()
void sendDtmfs(String dtmf)
dtmf
- send dtmfvoid sendDtmf(char number)
number
- send dtmf ['0'..'9'] | '#', '*'void playDtmf(char dtmf, int duration)
dtmf
- ['0'..'9'] | '#', '*'duration
- in ms , -1 for unlimitedvoid stopDtmf()
void clearCallLogs()
PayloadType findPayloadType(String mime, int clockRate, int channels)
mime
- payload mime type (I.E SPEEX, PCMU, VP8)clockRate
- (I.E 8000, 16000, 90000, ...)channels
- number of channelsPayloadType findPayloadType(String mime, int clockRate)
findPayloadType(String, int, int)
but ignoring channels paramsmime
- payload mime type (I.E SPEEX, PCMU, VP8)clockRate
- (I.E 8000, 16000, 90000, ...)PayloadType findPayloadType(String mime)
findPayloadType(String, int, int)
but ignoring channels and clock rate paramsmime
- payload mime type (I.E SPEEX, PCMU, VP8)void enablePayloadType(PayloadType pt, boolean enable) throws LinphoneCoreException
pt
- payload type to enable, can be retrieve from findPayloadType(java.lang.String, int, int)
enable
- for enable or disable the payload typeLinphoneCoreException
boolean isPayloadTypeEnabled(PayloadType pt)
pt
- the payload typeboolean payloadTypeIsVbr(PayloadType pt)
pt
- the payload typevoid setPayloadTypeBitrate(PayloadType pt, int bitrate)
pt
- the payload typebitrate
- target IP bitrate in kbit/sint getPayloadTypeBitrate(PayloadType pt)
pt
- void setPayloadTypeNumber(PayloadType pt, int number)
pt
- the payload typenumber
- int getPayloadTypeNumber(PayloadType pt)
pt
- the payload typevoid enableAdaptiveRateControl(boolean enable)
enable
- boolean isAdaptiveRateControlEnabled()
void setAdaptiveRateAlgorithm(LinphoneCore.AdaptiveRateAlgorithm alg)
LinphoneCore.AdaptiveRateAlgorithm getAdaptiveRateAlgorithm()
void enableEchoCancellation(boolean enable)
enable
- boolean isEchoCancellationEnabled()
boolean isEchoLimiterEnabled()
void setSignalingTransportPorts(LinphoneCore.Transports transports)
transports
- transports ports used for signaling (TCP, UDP and TLS)LinphoneCore.Transports getSignalingTransportPorts()
void setSipDscp(int dscp)
dscp
- void setSipTransportTimeout(int timeout_ms)
timeout_ms
- int getSipTransportTimeout()
int getSipDscp()
void enableSpeaker(boolean value)
value
- boolean isSpeakerEnabled()
void addFriend(LinphoneFriend lf) throws LinphoneCoreException
lf
- LinphoenFriend to addLinphoneCoreException
void addFriendList(LinphoneFriendList friendList) throws LinphoneCoreException
LinphoneCoreException
void removeFriendList(LinphoneFriendList friendList) throws LinphoneCoreException
LinphoneCoreException
LinphoneFriendList createLinphoneFriendList() throws LinphoneCoreException
LinphoneCoreException
LinphoneFriend[] getFriendList()
LinphoneFriendList[] getFriendLists()
@Deprecated void setPresenceInfo(int minutes_away, String alternative_contact, OnlineStatus status)
minutes_away
- how long in awayalternative_contact
- sip uri used to redirect call in state LinphoneStatusMovedstatus
- OnlineStatus@Deprecated OnlineStatus getPresenceInfo()
void setPresenceModel(PresenceModel presence)
presence
- #LinphonePresenceModelPresenceModel getPresenceModel()
LinphoneChatRoom getOrCreateChatRoom(String to)
to
- destination address for messagesLinphoneChatRoom
where messaging can take place.LinphoneChatRoom getChatRoom(LinphoneAddress to)
to
- destination address for messagesLinphoneChatRoom
where messaging can take place.void setVideoWindow(Object w)
AndroidVideoWindowImpl
w
- window of type AndroidVideoWindowImpl
void setPreviewWindow(Object w)
w
- window of type android.view.SurfaceViewvoid setDeviceRotation(int rotation)
rotation
- Android supported values are 0, 90, 180 and 270.void setVideoDevice(int id)
id
- of the video device as returned by AndroidCameraConfiguration.retrieveCameras()
int getVideoDevice()
AndroidCameraConfiguration.retrieveCameras()
.boolean isVideoSupported()
boolean isVCardSupported()
void enableVideo(boolean vcap_enabled, boolean display_enabled)
vcap_enabled
- indicates whether video capture is enableddisplay_enabled
- indicates whether video display should be shownboolean isVideoEnabled()
void setStunServer(String stun_server)
stun_server
- Stun server address and port, such as stun.linphone.org or stun.linphone.org:3478String getStunServer()
@Deprecated void setFirewallPolicy(LinphoneCore.FirewallPolicy pol)
pol
- one of the FirewallPolicy members.@Deprecated LinphoneCore.FirewallPolicy getFirewallPolicy()
LinphoneNatPolicy createNatPolicy()
void setNatPolicy(LinphoneNatPolicy policy)
policy
- LinphoneNatPolicy objectLinphoneNatPolicy getNatPolicy()
LinphoneCall inviteAddressWithParams(LinphoneAddress destination, LinphoneCallParams params) throws LinphoneCoreException
destination
- the destination of the call LinphoneAddress
.params
- call parameters LinphoneCallParams
LinphoneCoreFactory.createLinphoneAddress(java.lang.String, java.lang.String, java.lang.String)
, or created interpretUrl(String)
.LinphoneCall
objectLinphoneCoreException
- in case of failureint updateCall(LinphoneCall call, LinphoneCallParams params)
LinphoneCallParams
(see LinphoneCallParams.setVideoEnabled(boolean)
).
- changing the size of the transmitted video after calling setPreferredVideoSize(VideoSize)
In case no changes are requested through the LinphoneCallParams
argument, then this argument can be omitted and set to null.call
- the LinphoneCall
to be updatedparams
- the new call parameters
to use. (may be NULL)LinphoneCallParams createCallParams(LinphoneCall call)
call
- (optional)void setRing(String path)
path
- The file must be a wav 16bit linear. Local ring is disabled if nullString getRing()
void setRootCA(String path)
path
- path to file with multiple PEM certif or to folder with multiple PEM filesvoid setRootCAData(String data)
data
- String with multiple PEM certifvoid setRingback(String path)
path
- The file must be a wav 16bit linear.int getUploadBandwidth()
void setUploadBandwidth(int bw)
int getDownloadBandwidth()
void setDownloadBandwidth(int bw)
bw
- the bandwidth in kbits/s, 0 for infinitevoid setDownloadPtime(int ptime)
ptime
- packetization interval in millisecondsvoid setUploadPtime(int ptime)
ptime
- packetization interval in millisecondsvoid setPreferredVideoSize(VideoSize vSize)
vSize
- void setPreferredVideoSizeByName(String name)
name
- A known video name (eg. vga or 720p)VideoSize getPreferredVideoSize()
void setPreferredFramerate(float fps)
fps
- the target frame rate in number of frames per seconds.float getPreferredFramerate()
PayloadType[] getAudioCodecs()
void setAudioCodecs(PayloadType[] codecs)
codecs
- List of PayloadType objectsPayloadType[] getVideoCodecs()
void setVideoCodecs(PayloadType[] codecs)
codecs
- List of PayloadType objectsvoid enableKeepAlive(boolean enable)
boolean isKeepAliveEnabled()
void startEchoCalibration(LinphoneCoreListener listener) throws LinphoneCoreException
LinphoneCoreListener#ecCalibrationStatus(LinphoneCore, EcCalibratorStatus, int, Object)
listener
- the LinphoneEchoCalibrationListener to call when the calibration is doneLinphoneCoreException
- if operation is still in progress;boolean needsEchoCalibration()
boolean hasBuiltInEchoCanceler()
int startEchoTester(int rate)
rate
- int stopEchoTester()
boolean hasCrappyOpenGL()
void enableIpv6(boolean enable)
boolean isIpv6Enabled()
@Deprecated void adjustSoftwareVolume(int i)
i
- boolean pauseCall(LinphoneCall call)
setPlayFile(String)
,
this file will be played to the remote user.boolean resumeCall(LinphoneCall call)
boolean pauseAllCalls()
void setZrtpSecretsCache(String file)
void enableEchoLimiter(boolean val)
LinphoneConference createConference(LinphoneConferenceParams params)
params
- Parameters of the conference. Can be nullLinphoneConference getConference()
boolean isInConference()
boolean enterConference()
leaveConference()
and enterConference()
the application can decide to temporarily
move out and in the local participant from the conference.void leaveConference()
void addToConference(LinphoneCall call)
call
- an established call, either in LinphoneCall.State.StreamsRunning
or LinphoneCall.State.Paused
state.void removeFromConference(LinphoneCall call)
leaveConference()
is explicitely called, the last remote participant of a conference is automatically
put in a simple call in running state.call
- a call that has been previously merged into the conference.void addAllToConference()
LinphoneCall.State.StreamsRunning
or LinphoneCall.State.Paused
) into a conference.void terminateConference()
int getConferenceSize()
void startConferenceRecording(String path)
path
- where to write recording filevoid stopConferenceRecording()
void terminateAllCalls()
LinphoneCall[] getCalls()
int getCallsNb()
void transferCall(LinphoneCall call, String referTo)
call
- The current local call remains active and thus can be later paused or terminated.referTo
- The remote call party endpoint is expected to issue a new call to this specified destination.void transferCallToAnother(LinphoneCall callToTransfer, LinphoneCall destination)
callToTransfer
- a running call you want to transferdestination
- a running call whose remote person will receive the transferLinphoneCall startReferedCall(LinphoneCall call, LinphoneCallParams params)
call
- a call that has just been notified about LinphoneCallRefered state event.params
- the call parameters to be applied to the new call.LinphoneCall findCallFromUri(String uri)
uri
- which should match call remote uriint getMaxCalls()
void setMaxCalls(int max)
max
- number of simultaneous calls@Deprecated boolean isMyself(String uri)
uri
- boolean soundResourcesLocked()
boolean mediaEncryptionSupported(LinphoneCore.MediaEncryption menc)
void setMediaEncryption(LinphoneCore.MediaEncryption menc)
menc
- MediaEncryption.None, MediaEncryption.SRTP or MediaEncryption.ZRTPLinphoneCore.MediaEncryption getMediaEncryption()
void setMediaEncryptionMandatory(boolean yesno)
boolean isMediaEncryptionMandatory()
void setPlayFile(String path)
path
- path to music file played to remote side when on hold.@Deprecated void tunnelEnable(boolean enable)
enable
- True to enable and false to disablevoid tunnelSetMode(LinphoneCore.TunnelMode mode)
mode
- enable, disable or autoLinphoneCore.TunnelMode tunnelGetMode()
void tunnelEnableSip(boolean enable)
enable
- If true, tunnel will transport SIP packets in addition
of RTP packets.boolean tunnelSipEnabled()
@Deprecated void tunnelAutoDetect()
void tunnelCleanServers()
void tunnelSetHttpProxy(String proxy_host, int port, String username, String password)
proxy_host
- port
- username
- password
- void tunnelAddServerAndMirror(String host, int port, int udpMirrorPort, int roundTripDelay)
host
- tunnel server ip addressport
- tunnel server tls port, recommended value is 443udpMirrorPort
- remote port on the tunnel server side used to test udp reachabilityroundTripDelay
- udp packet round trip delay in ms considered as acceptable. recommended value is 1000 msvoid tunnelAddServer(TunnelConfig config)
config
- Parameters of the server to add.TunnelConfig[] tunnelGetServers()
boolean isTunnelAvailable()
LinphoneProxyConfig[] getProxyConfigList()
void setVideoPolicy(boolean autoInitiate, boolean autoAccept)
autoInitiate
- video shall be initiated by default for outgoing callsautoAccept
- video shall be accepter by default for incoming callsboolean getVideoAutoInitiatePolicy()
boolean getVideoAutoAcceptPolicy()
void setStaticPicture(String path)
path
- to the static picture filevoid setUserAgent(String name, String version)
name
- user agent nameversion
- user agent versionvoid setCpuCount(int count)
void removeCallLog(LinphoneCallLog log)
int getMissedCallsCount()
void resetMissedCallsCount()
void refreshRegisters()
String getVersion()
void removeFriend(LinphoneFriend lf)
LinphoneFriend findFriendByAddress(String sipUri)
void setAudioPort(int port)
void setAudioPortRange(int minPort, int maxPort)
void setAudioDscp(int dscp)
dscp
- the DSCP value.
DSCP is an IP header field used to indicate a type of service to routers.int getAudioDscp()
void setVideoPort(int port)
void setVideoPortRange(int minPort, int maxPort)
void setVideoDscp(int dscp)
dscp
- the DSCP value.
DSCP is an IP header field used to indicate a type of service to routers.int getVideoDscp()
void setIncomingTimeout(int timeout)
void setInCallTimeout(int timeout)
void setMicrophoneGain(float gain)
gain
- in dbvoid setPrimaryContact(String address)
String getPrimaryContact()
void setPrimaryContact(String displayName, String username)
String getPrimaryContactUsername()
String getPrimaryContactDisplayName()
void setUseSipInfoForDtmfs(boolean use)
boolean getUseSipInfoForDtmfs()
void setUseRfc2833ForDtmfs(boolean use)
boolean getUseRfc2833ForDtmfs()
LpConfig getConfig()
boolean upnpAvailable()
LinphoneCore.UpnpState getUpnpState()
String getUpnpExternalIpaddress()
LinphoneInfoMessage createInfoMessage()
LinphoneCall.sendInfoMessage(LinphoneInfoMessage)
.LinphoneEvent subscribe(LinphoneAddress resource, String event, int expires, LinphoneContent content)
resource
- the address of the resource for which the event needs to be monitored.event
- the event name, as specified in the event package RFC.expires
- the expiration period in seconds.content
- optional content of the subscription.LinphoneEvent createSubscribe(LinphoneAddress resource, String event, int expires)
resource
- the destination resourceevent
- the event nameexpires
- the whished duration of the subscriptionLinphoneEvent createPublish(LinphoneAddress resource, String event, int expires)
resource
- the resource uri for the eventevent
- the event nameexpires
- the lifetime of the publicationLinphoneEvent publish(LinphoneAddress resource, String event, int expires, LinphoneContent content)
resource
- the resource to which the event belongs.event
- the event name as specified in the event package RFC.expires
- valid time for the event.content
- content of the publish.void setChatDatabasePath(String path)
path
- the database where the chat messages will be stored.void setCallLogsDatabasePath(String path)
path
- the database where the logs will be stored.void setFriendsDatabasePath(String path)
path
- the database where the friends will be stored.LinphoneChatRoom[] getChatRooms()
String[] getSupportedVideoSizes()
int migrateToMultiTransport()
void migrateCallLogs()
boolean acceptEarlyMedia(LinphoneCall call)
call
- the callboolean acceptEarlyMediaWithParams(LinphoneCall call, LinphoneCallParams params)
call
- the incoming callparams
- the call params, can be NULL.LinphoneProxyConfig createProxyConfig()
LinphoneProxyConfig createProxyConfig(String identity, String proxy, String route, boolean enableRegister) throws LinphoneCoreException
LinphoneCoreException
void setCallErrorTone(Reason reason, String path)
reason
- the #LinphoneReason representing the failure error code.path
- a wav file to be played when such call failure happens.void setTone(ToneID id, String wavfile)
id
- a tone idwavfile
- a path to a 16 bit PCM linear wav file.void setMtu(int mtu)
mtu
- the MTU in bytes.int getMtu()
void enableSdp200Ack(boolean enable)
enable
- true if INVITE has to be sent whitout SDP.boolean isSdp200AckEnabled()
void disableChat(Reason denycode)
denycode
- the deny reason (using ReasonNone has no effect).void enableChat()
boolean chatEnabled()
void stopRinging()
void setAudioJittcomp(int value)
value
- the jitter buffer size in milliseconds.void setVideoJittcomp(int value)
value
- the jitter buffer size in milliseconds.void setFileTransferServer(String serverUrl)
serverUrl
- URL of the file server like https://file.linphone.org/upload.phpString getFileTransferServer()
LinphonePlayer createLocalPlayer(org.linphone.mediastream.video.AndroidVideoWindowImpl window)
void addListener(LinphoneCoreListener listener)
listener
- to addvoid removeListener(LinphoneCoreListener listener)
listener
- to removevoid setRemoteRingbackTone(String file)
file
- String getRemoteRingbackTone()
void uploadLogCollection()
void resetLogCollection()
void setAudioMulticastAddr(String ip) throws LinphoneCoreException
ip
- an ipv4/6 multicast addressLinphoneCoreException
void setVideoMulticastAddr(String ip) throws LinphoneCoreException
ip
- an ipv4/6 multicast addressLinphoneCoreException
String getAudioMulticastAddr()
String getVideoMulticastAddr()
void setAudioMulticastTtl(int ttl) throws LinphoneCoreException
ttl
- value or -1 if not used. [0..255] default value is 1LinphoneCoreException
void setVideoMulticastTtl(int ttl) throws LinphoneCoreException
ttl
- value or -1 if not used. [0..255] default value is 1LinphoneCoreException
int getAudioMulticastTtl()
int getVideoMulticastTtl()
void enableAudioMulticast(boolean yesno)
getAudioMulticastAddr()
into audio cline. In case of outgoing call audio stream is sent to this multicast address.
yesno
- if yes, subsequent calls will propose multicast ip set by setAudioMulticastAddr(String)
boolean audioMulticastEnabled()
setAudioMulticastAddr(String)
void enableVideoMulticast(boolean yesno)
getVideoMulticastAddr()
into video cline. In case of outgoing call video stream is sent to this multicast address.
yesno
- if yes, subsequent outgoing calls will propose multicast ip set by setVideoMulticastAddr(String)
boolean videoMulticastEnabled()
setVideoMulticastAddr(String)
void enableDnsSrv(boolean yesno)
yesno
- true to enable DNS SRV resolution, false to disable it.boolean dnsSrvEnabled()
void setVideoPreset(String preset)
preset
- The name of the video preset to be used (can be null to use the default video preset).String getVideoPreset()
void setProvisioningUri(String uri)
String getProvisioningUri()
void setHttpProxyHost(String host)
void setHttpProxyPort(int port)
String getHttpProxyHost()
int getHttpProxyPort()
void setNortpTimeout(int seconds)
int getNortpTimeout()
void setSipNetworkReachable(boolean isReachable)
isReachable
- whether SIP network is reachable.void setMediaNetworkReachable(boolean isReachable)
isReachable
- whether media network is reachable.Factory getMSFactory()
void setDnsServers(String[] servers)
void setUserCertificatesPath(String path)
void reloadMsPlugins(String path)
path
- The path from where plugins are to be loaded.void reloadSoundDevices()
void setDefaultSoundDevices()
boolean isLimeEncryptionAvailable()
void setLimeEncryption(LinphoneCore.LinphoneLimeState lime)
LinphoneCore.LinphoneLimeState getLimeEncryption()
String getTlsCertificate()
String getTlsKey()
String getTlsCertificatePath()
String getTlsKeyPath()
void setTlsCertificate(String cert)
cert
- the certificatevoid setTlsKey(String key)
key
- the keyvoid setTlsCertificatePath(String path)
path
- the path of the certificatevoid setTlsKeyPath(String path)
path
- the path of the keyvoid enableOpenH264(boolean enable)
enable
- boolean openH264Enabled()