Liblinphone
5.3.0
|
Main object to instanciate and on which to keep a reference. More...
#include <core.hh>
Public Types | |
enum | LogCollectionUploadState { LogCollectionUploadState::InProgress = 0, LogCollectionUploadState::Delivered = 1, LogCollectionUploadState::NotDelivered = 2 } |
Used to notify if log collection upload have been succesfully delivered or not. More... | |
Public Member Functions | |
LINPHONECXX_PUBLIC | Core (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneCore * | cPtr () |
LINPHONECXX_PUBLIC void | addListener (const std::shared_ptr< CoreListener > &listener) |
Add an application listener to the Core instance. More... | |
LINPHONECXX_PUBLIC void | removeListener (const std::shared_ptr< CoreListener > &listener) |
Remove a previously added listener from the Core instance. More... | |
LINPHONECXX_PUBLIC linphone::AccountCreator::Backend | getAccountCreatorBackend () const |
Get the AccountCreator backend set for the Core. More... | |
LINPHONECXX_PUBLIC void | setAccountCreatorBackend (linphone::AccountCreator::Backend backend) |
Set the AccountCreator backend on the Core. More... | |
LINPHONECXX_PUBLIC std::string | getAccountCreatorUrl () |
Get the AccountCreator url on the Core. More... | |
LINPHONECXX_PUBLIC void | setAccountCreatorUrl (const std::string &url) |
Set the AccountCreator url on the Core. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::Account > > | getAccountList () const |
Returns an unmodifiable list of entered accounts. More... | |
LINPHONECXX_PUBLIC std::string | getAdaptiveRateAlgorithm () const |
Returns which adaptive rate algorithm is currently configured for future calls. More... | |
LINPHONECXX_PUBLIC void | setAdaptiveRateAlgorithm (const std::string &algorithm) |
Sets adaptive rate algorithm. More... | |
LINPHONECXX_PUBLIC bool | adaptiveRateControlEnabled () const |
Returns whether adaptive rate control is enabled. More... | |
LINPHONECXX_PUBLIC void | enableAdaptiveRateControl (bool enabled) |
Enable adaptive rate control. More... | |
LINPHONECXX_PUBLIC bool | agcEnabled () const |
Tells whether the experimental software Automatic Gain Control is activated. More... | |
LINPHONECXX_PUBLIC void | enableAgc (bool val) |
Enable the experimental software Automatic Gain Control. More... | |
LINPHONECXX_PUBLIC bool | alertsEnabled () const |
Returns whether alert reporting is enabled. More... | |
LINPHONECXX_PUBLIC void | enableAlerts (bool enable) |
Enable alerts. More... | |
LINPHONECXX_PUBLIC bool | audioAdaptiveJittcompEnabled () |
Tells whether the audio adaptive jitter compensation is enabled. More... | |
LINPHONECXX_PUBLIC void | enableAudioAdaptiveJittcomp (bool enable) |
Enable or disable the audio adaptive jitter compensation. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::AudioDevice > > | getAudioDevices () const |
Returns a list of audio devices, with only the first device for each type To have the list of all audio devices, use getExtendedAudioDevices() More... | |
LINPHONECXX_PUBLIC int | getAudioDscp () const |
Get the DSCP field for outgoing audio streams. More... | |
LINPHONECXX_PUBLIC void | setAudioDscp (int dscp) |
Set the DSCP field for outgoing audio streams. More... | |
LINPHONECXX_PUBLIC int | getAudioJittcomp () |
Returns the nominal audio jitter buffer size in milliseconds. More... | |
LINPHONECXX_PUBLIC void | setAudioJittcomp (int milliseconds) |
Sets the nominal audio jitter buffer size in milliseconds. More... | |
LINPHONECXX_PUBLIC std::string | getAudioMulticastAddr () const |
Use to get multicast address to be used for audio stream. More... | |
LINPHONECXX_PUBLIC linphone::Status | setAudioMulticastAddr (const std::string &ip) |
Use to set multicast address to be used for audio stream. More... | |
LINPHONECXX_PUBLIC bool | audioMulticastEnabled () const |
Use to get multicast state of audio stream. More... | |
LINPHONECXX_PUBLIC void | enableAudioMulticast (bool yesno) |
Use to enable multicast rtp for audio stream. More... | |
LINPHONECXX_PUBLIC int | getAudioMulticastTtl () const |
Use to get multicast ttl to be used for audio stream. More... | |
LINPHONECXX_PUBLIC linphone::Status | setAudioMulticastTtl (int ttl) |
Use to set multicast ttl to be used for audio stream. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::PayloadType > > | getAudioPayloadTypes () |
Return the list of the available audio payload types. More... | |
LINPHONECXX_PUBLIC void | setAudioPayloadTypes (const std::list< std::shared_ptr< linphone::PayloadType >> &payloadTypes) |
Redefine the list of the available payload types. More... | |
LINPHONECXX_PUBLIC int | getAudioPort () const |
Gets the UDP port used for audio streaming. More... | |
LINPHONECXX_PUBLIC void | setAudioPort (int port) |
Sets the UDP port used for audio streaming. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Range > | getAudioPortsRange () const |
Get the audio port range from which is randomly chosen the UDP port used for audio streaming. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::AuthInfo > > | getAuthInfoList () const |
Returns an unmodifiable list of currently entered AuthInfo. More... | |
LINPHONECXX_PUBLIC bool | autoDownloadIcalendarsEnabled () |
Gets if the auto download for incoming icalendars is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableAutoDownloadIcalendars (bool autoDownloadIcalendars) |
Auto download files attach to a chat message if it's content type matches the one we use for icalendars. More... | |
LINPHONECXX_PUBLIC bool | autoDownloadVoiceRecordingsEnabled () |
Gets if the auto download for incoming voice recordings is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableAutoDownloadVoiceRecordings (bool autoDownloadVoiceRecordings) |
Auto download files attach to a chat message if it's content type matches the one we use for voice recordings. More... | |
LINPHONECXX_PUBLIC int | getAutoIterateBackgroundSchedule () const |
Gets the timer used to schedule the call to core.iterate() method when in background (Android only). More... | |
LINPHONECXX_PUBLIC void | setAutoIterateBackgroundSchedule (int schedule) |
Sets the timer used to schedule the call to core.iterate() method when in background (Android only). More... | |
LINPHONECXX_PUBLIC bool | autoIterateEnabled () const |
Gets whether auto iterate is enabled or not (Android & iOS only). More... | |
LINPHONECXX_PUBLIC void | enableAutoIterate (bool enable) |
Enable or disable the automatic schedule of iterate() method on Android & iOS. More... | |
LINPHONECXX_PUBLIC int | getAutoIterateForegroundSchedule () const |
Gets the timer used to schedule the call to core.iterate() method when in foreground (Android only). More... | |
LINPHONECXX_PUBLIC void | setAutoIterateForegroundSchedule (int schedule) |
Sets the timer used to schedule the call to core.iterate() method when in foreground (Android only). More... | |
LINPHONECXX_PUBLIC bool | autoSendRingingEnabled () |
Gets if the automatic sending of 180 Ringing is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableAutoSendRinging (bool enable) |
Enables the automatic sending of 180 Ringing when receiving a call. More... | |
LINPHONECXX_PUBLIC bool | automaticHttpProxyDetectionEnabled () const |
Returns whether automatic http proxy is enabled. More... | |
LINPHONECXX_PUBLIC void | enableAutomaticHttpProxyDetection (bool enable) |
Enables or disables automatic http proxy detection. More... | |
LINPHONECXX_PUBLIC linphone::AVPFMode | getAvpfMode () const |
Return AVPF enablement. More... | |
LINPHONECXX_PUBLIC void | setAvpfMode (linphone::AVPFMode mode) |
Enable RTCP feedback (also known as RTP/AVPF profile). More... | |
LINPHONECXX_PUBLIC int | getAvpfRrInterval () const |
Return the avpf report interval in seconds. More... | |
LINPHONECXX_PUBLIC void | setAvpfRrInterval (int interval) |
Set the avpf report interval in seconds. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::CallLog > > | getCallLogs () |
Get the list of call logs (past calls). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getCallLogsDatabasePath () |
Gets the database filename where call logs will be stored. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setCallLogsDatabasePath (const std::string &path) |
Sets the database filename where call logs will be stored. More... | |
LINPHONECXX_PUBLIC bool | callToneIndicationsEnabled () const |
Check whether tone indications of calls are enabled. More... | |
LINPHONECXX_PUBLIC void | enableCallToneIndications (bool yesno) const |
Enables or disables call tone indications. More... | |
LINPHONECXX_PUBLIC bool | callkitEnabled () const |
Special function to check if the callkit is enabled, False by default. More... | |
LINPHONECXX_PUBLIC void | enableCallkit (bool enabled) |
Special function to enable the callkit. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::Call > > | getCalls () |
Gets the current list of calls. More... | |
LINPHONECXX_PUBLIC int | getCallsNb () const |
Get the number of Call. More... | |
LINPHONECXX_PUBLIC int | getCameraSensorRotation () |
Get the camera sensor rotation. More... | |
LINPHONECXX_PUBLIC bool | capabilityNegociationEnabled () const |
Check if the capability negotiation (RFC5939) is supported or not. More... | |
LINPHONECXX_PUBLIC void | enableCapabilityNegociation (bool enable) |
Define whether capability negotiation (RFC5939) is supported. | |
LINPHONECXX_PUBLIC bool | capabilityNegotiationReinviteEnabled () const |
Check if the capability negotiation (RFC5939) reINVITE is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableCapabilityNegotiationReinvite (bool enable) |
Define whether capability negotiation (RFC5939) reINVITE is enabled. More... | |
LINPHONECXX_PUBLIC std::string | getCaptureDevice () |
Gets the name of the currently assigned sound device for capture. More... | |
LINPHONECXX_PUBLIC linphone::Status | setCaptureDevice (const std::string &devid) |
Sets the sound device used for capture. More... | |
LINPHONECXX_PUBLIC bool | cfgLinesMergingEnabled () const |
Check if cfg lines are going to the merged if the capability negotiation (RFC5939) is supported or not. More... | |
LINPHONECXX_PUBLIC void | enableCfgLinesMerging (bool merge) |
Define whether cfg lines are going to be merged if capability negotiation (RFC5939) is supported. More... | |
LINPHONECXX_PUBLIC bool | chatEnabled () const |
Returns whether chat is enabled. More... | |
LINPHONECXX_PUBLIC bool | getChatMessagesAggregationEnabled () |
Returns whether chat messages grouping is enabled or not. More... | |
LINPHONECXX_PUBLIC void | setChatMessagesAggregationEnabled (bool enabled) |
Sets whether chat messages grouping is enabled or not. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::ChatRoom > > | getChatRooms () |
Returns a list of chat rooms. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Conference > | getConference () |
Get a pointer on the internal conference object. More... | |
LINPHONECXX_PUBLIC bool | conferenceIcsInMessageBodyEnabled () const |
Gets wether conference invitations will be sent in the chat message body or as a file attachment. More... | |
LINPHONECXX_PUBLIC void | enableConferenceIcsInMessageBody (bool enable) |
Enable sending conference invitations in the chat message body instead of as a file attachment. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::ConferenceInfo > > | getConferenceInformationList () |
Retrieve the list of conference information on DB. More... | |
LINPHONECXX_PUBLIC float | getConferenceLocalInputVolume () |
Get the set input volume of the local participant. More... | |
LINPHONECXX_PUBLIC linphone::Conference::ParticipantListType | getConferenceParticipantListType () const |
Tells whether the default conference participant list is open or closed. More... | |
LINPHONECXX_PUBLIC void | setConferenceParticipantListType (linphone::Conference::ParticipantListType type) |
Select whether the default conference participant list is open or closed. More... | |
LINPHONECXX_PUBLIC bool | conferenceServerEnabled () const |
Tells whether the conference server feature is enabled. More... | |
LINPHONECXX_PUBLIC void | enableConferenceServer (bool enable) |
Enable the conference server feature. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int | getConferenceSize () |
Get the number of participants including me, if it in, in the running conference. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Config > | getConfig () const |
Returns the config object used to manage the storage (config) file. More... | |
LINPHONECXX_PUBLIC linphone::ConsolidatedPresence | getConsolidatedPresence () const |
Get my consolidated presence. More... | |
LINPHONECXX_PUBLIC void | setConsolidatedPresence (linphone::ConsolidatedPresence presence) |
Set my consolidated presence. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | getCurrentCall () const |
Gets the current call. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getCurrentCallRemoteAddress () |
Get the remote address of the current call. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::VideoDefinition > | getCurrentPreviewVideoDefinition () const |
Get the effective video definition provided by the camera for the captured video. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Account > | getDefaultAccount () const |
Returns the default account, that is the one used to determine the current identity. More... | |
LINPHONECXX_PUBLIC void | setDefaultAccount (const std::shared_ptr< linphone::Account > &account) |
Sets the default account. More... | |
LINPHONECXX_PUBLIC linphone::Conference::Layout | getDefaultConferenceLayout () const |
Gets the default conference layout core the linphone core. More... | |
LINPHONECXX_PUBLIC void | setDefaultConferenceLayout (linphone::Conference::Layout value) |
Set the default conference layout. More... | |
LINPHONECXX_PUBLIC long | getDefaultEphemeralLifetime () const |
Gets the default lifetime of ephemeral messages in seconds core the linphone core. More... | |
LINPHONECXX_PUBLIC void | setDefaultEphemeralLifetime (long value) |
Set the default ephemeral lifetime in seconds. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::FriendList > | getDefaultFriendList () const |
Retrieves the first list of Friend from the core. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AudioDevice > | getDefaultInputAudioDevice () const |
Gets the default input audio device. More... | |
LINPHONECXX_PUBLIC void | setDefaultInputAudioDevice (const std::shared_ptr< linphone::AudioDevice > &audioDevice) |
Sets the given AudioDevice as default input for next calls. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AudioDevice > | getDefaultOutputAudioDevice () const |
Gets the default output audio device. More... | |
LINPHONECXX_PUBLIC void | setDefaultOutputAudioDevice (const std::shared_ptr< linphone::AudioDevice > &audioDevice) |
Sets the given AudioDevice as default output for next calls. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ProxyConfig > | getDefaultProxyConfig () const |
Returns the default proxy configuration, that is the one used to determine the current identity. More... | |
LINPHONECXX_PUBLIC void | setDefaultProxyConfig (const std::shared_ptr< linphone::ProxyConfig > &config) |
Sets the default proxy. More... | |
LINPHONECXX_PUBLIC std::string | getDefaultVideoDisplayFilter () |
Get the name of the default mediastreamer2 filter used for rendering video on the current platform. More... | |
LINPHONECXX_PUBLIC int | getDelayedTimeout () |
Gets the delayed timeout See setDelayedTimeout() for details. More... | |
LINPHONECXX_PUBLIC void | setDelayedTimeout (int seconds) |
Set the in delayed timeout in seconds. More... | |
LINPHONECXX_PUBLIC int | getDeviceRotation () |
Gets the current device orientation. More... | |
LINPHONECXX_PUBLIC void | setDeviceRotation (int rotation) |
Tells the core the device current orientation. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::DigestAuthenticationPolicy > | getDigestAuthenticationPolicy () const |
Get the current digest authentication policy applicable for SIP and HTTP. More... | |
LINPHONECXX_PUBLIC void | setDigestAuthenticationPolicy (const std::shared_ptr< linphone::DigestAuthenticationPolicy > &policy) |
Setup a new digest authentication policy applicable for SIP and HTTP. More... | |
LINPHONECXX_PUBLIC bool | getDisableRecordOnMute () |
Get whether the microphone will be completely deactivated when muted. More... | |
LINPHONECXX_PUBLIC void | setDisableRecordOnMute (bool disable) |
Calling this method with disable=true will cause the microhone to be completely deactivated when muted, when given possible by the implementation on the platform on which liblinphone is running. More... | |
LINPHONECXX_PUBLIC bool | dnsSearchEnabled () const |
Tells whether DNS search (use of local domain if the fully qualified name did return results) is enabled. More... | |
LINPHONECXX_PUBLIC void | enableDnsSearch (bool enable) |
Enable or disable DNS search (use of local domain if the fully qualified name did return results). More... | |
LINPHONECXX_PUBLIC void | setDnsServers (const std::list< std::string > &servers) |
Forces liblinphone to use the supplied list of dns servers, instead of system's ones. More... | |
LINPHONECXX_PUBLIC void | setDnsServersApp (const std::list< std::string > &servers) |
Forces liblinphone to use the supplied list of dns servers, instead of system's ones and set dns_set_by_app at true or false according to value of servers list. More... | |
LINPHONECXX_PUBLIC bool | getDnsSetByApp () |
Tells if the DNS was set by an application. More... | |
LINPHONECXX_PUBLIC bool | dnsSrvEnabled () const |
Tells whether DNS SRV resolution is enabled. More... | |
LINPHONECXX_PUBLIC void | enableDnsSrv (bool enable) |
Enable or disable DNS SRV resolution. More... | |
LINPHONECXX_PUBLIC int | getDownloadBandwidth () const |
Retrieve the maximum available download bandwidth. More... | |
LINPHONECXX_PUBLIC void | setDownloadBandwidth (int bandwidth) |
Sets maximum available download bandwidth This is IP bandwidth, in kbit/s. More... | |
LINPHONECXX_PUBLIC int | getDownloadPtime () |
Get audio packetization time linphone expects to receive from peer. More... | |
LINPHONECXX_PUBLIC void | setDownloadPtime (int ptime) |
Set audio packetization time linphone expects to receive from peer. More... | |
LINPHONECXX_PUBLIC int | getEchoCancellationCalibration () const |
Gets the currently stored calibration delay for the software echo cancellation. More... | |
LINPHONECXX_PUBLIC bool | echoCancellationEnabled () const |
Returns true if echo cancellation is enabled. More... | |
LINPHONECXX_PUBLIC void | enableEchoCancellation (bool enable) |
Enables or disable echo cancellation. More... | |
LINPHONECXX_PUBLIC std::string | getEchoCancellerFilterName () const |
Get the name of the mediastreamer2 filter used for echo cancelling. More... | |
LINPHONECXX_PUBLIC void | setEchoCancellerFilterName (const std::string &filtername) |
Set the name of the mediastreamer2 filter to be used for echo cancelling. More... | |
LINPHONECXX_PUBLIC bool | echoLimiterEnabled () const |
Tells whether echo limiter is enabled. More... | |
LINPHONECXX_PUBLIC void | enableEchoLimiter (bool enable) |
Enables or disable echo limiter. More... | |
LINPHONECXX_PUBLIC void | setEnableSipUpdate (int value) const |
Enable or disable the UPDATE method support. More... | |
LINPHONECXX_PUBLIC void | setExpectedBandwidth (int bandwidth) |
Sets expected available upload bandwidth This is IP bandwidth, in kbit/s. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::AudioDevice > > | getExtendedAudioDevices () const |
Returns the list of all audio devices. More... | |
LINPHONECXX_PUBLIC std::string | getFileTransferServer () |
Get the globaly set http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml. More... | |
LINPHONECXX_PUBLIC void | setFileTransferServer (const std::string &serverUrl) |
Globaly set an http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml. More... | |
LINPHONECXX_PUBLIC bool | forcedIceRelayEnabled () const |
Indicates whether the ICE relay path is forcibly selected. More... | |
LINPHONECXX_PUBLIC void | enableForcedIceRelay (bool enable) |
Artificially cause the relay path to be selected when ICE is used. More... | |
LINPHONECXX_PUBLIC bool | friendListSubscriptionEnabled () |
Returns whether or not friend lists subscription are enabled. More... | |
LINPHONECXX_PUBLIC void | enableFriendListSubscription (bool enable) |
Sets whether or not to start friend lists subscription when in foreground. More... | |
LINPHONECXX_PUBLIC std::string | getFriendsDatabasePath () |
Gets the database filename where friends will be stored. More... | |
LINPHONECXX_PUBLIC void | setFriendsDatabasePath (const std::string &path) |
Sets the database filename where friends will be stored. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::FriendList > > | getFriendsLists () const |
Retrieves the list of FriendList from the core. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::ConferenceInfo > > | getFutureConferenceInformationList () |
Retrieve the list of future conference information on DB. More... | |
LINPHONECXX_PUBLIC bool | genericComfortNoiseEnabled () const |
Returns enablement of RFC3389 generic comfort noise algorithm. More... | |
LINPHONECXX_PUBLIC void | enableGenericComfortNoise (bool enabled) |
Enable RFC3389 generic comfort noise algorithm (CN payload type). More... | |
LINPHONECXX_PUBLIC linphone::GlobalState | getGlobalState () const |
Returns the global state of core. More... | |
LINPHONECXX_PUBLIC bool | getGuessHostname () |
Returns true if hostname part of primary contact is guessed automatically. More... | |
LINPHONECXX_PUBLIC void | setGuessHostname (bool enable) |
Tells Core to guess local hostname automatically in primary contact. More... | |
LINPHONECXX_PUBLIC std::string | getHttpProxyHost () const |
Get http proxy address to be used for signaling. More... | |
LINPHONECXX_PUBLIC void | setHttpProxyHost (const std::string &host) |
Set http proxy address to be used for signaling during next channel connection. More... | |
LINPHONECXX_PUBLIC int | getHttpProxyPort () const |
Get http proxy port to be used for signaling. More... | |
LINPHONECXX_PUBLIC void | setHttpProxyPort (int port) |
Set http proxy port to be used for signaling. More... | |
LINPHONECXX_PUBLIC std::string | getIdentity () |
Gets the default identity SIP address. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ImNotifPolicy > | getImNotifPolicy () const |
Get the ImNotifPolicy object controlling the instant messaging notifications. More... | |
LINPHONECXX_PUBLIC int | getInCallTimeout () |
Gets the in call timeout See setInCallTimeout() for details. More... | |
LINPHONECXX_PUBLIC void | setInCallTimeout (int seconds) |
Set the in call timeout in seconds. More... | |
LINPHONECXX_PUBLIC int | getIncTimeout () |
Returns the incoming call timeout See setIncTimeout() for details. More... | |
LINPHONECXX_PUBLIC void | setIncTimeout (int seconds) |
Set the incoming call timeout in seconds. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AudioDevice > | getInputAudioDevice () const |
Gets the input audio device for the current call. More... | |
LINPHONECXX_PUBLIC void | setInputAudioDevice (const std::shared_ptr< linphone::AudioDevice > &audioDevice) |
Sets the given AudioDevice as input for all active calls. More... | |
LINPHONECXX_PUBLIC bool | ipv6Enabled () |
Tells whether IPv6 is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableIpv6 (bool enable) |
Turns IPv6 support on or off. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isAutoDownloadIcalendarsEnabled () |
Gets if the auto download for incoming icalendars is enabled or not. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isAutoDownloadVoiceRecordingsEnabled () |
Gets if the auto download for incoming voice recordings is enabled or not. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isAutoIterateEnabled () const |
Gets whether auto iterate is enabled or not (Android & iOS only). More... | |
LINPHONECXX_PUBLIC bool | isEchoCancellerCalibrationRequired () |
Check whether the device is echo canceller calibration is required. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isFriendListSubscriptionEnabled () |
Returns whether or not friend lists subscription are enabled. More... | |
LINPHONECXX_PUBLIC bool | isInBackground () const |
Gets whether the Core is considering itself in background or not. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isInConference () const |
Indicates whether the local participant is part of a conference. More... | |
LINPHONECXX_PUBLIC bool | isIncomingInvitePending () |
Tells whether there is an incoming invite pending. More... | |
LINPHONECXX_PUBLIC bool | isMediaEncryptionMandatory () |
Check if the configured media encryption is mandatory or not. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isNativeRingingEnabled () const |
Returns whether the native ringing is enabled or not. More... | |
LINPHONECXX_PUBLIC bool | isNetworkReachable () |
return network state either as positioned by the application or by linphone itself. More... | |
LINPHONECXX_PUBLIC bool | isPushNotificationAvailable () |
Gets whether push notifications are available or not (Android & iOS only). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isPushNotificationEnabled () |
Gets whether push notifications are enabled or not (Android & iOS only). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isRecordAwareEnabled () |
Gets if the record aware feature is enabled or not. More... | |
LINPHONECXX_PUBLIC bool | isSenderNameHiddenInForwardMessage () |
Returns whether or not sender name is hidden in forward message. More... | |
LINPHONECXX_PUBLIC bool | isVerifyServerCertificates () |
Get whether the tls server certificate must be verified when connecting to a SIP/TLS server. More... | |
LINPHONECXX_PUBLIC bool | isVerifyServerCn () |
Get whether the tls server certificate common name must be verified when connecting to a SIP/TLS server. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isVibrationOnIncomingCallEnabled () |
Gets whether the device will vibrate while an incoming call is ringing (Android only). More... | |
LINPHONECXX_PUBLIC bool | keepAliveEnabled () |
Is signaling keep alive enabled. More... | |
LINPHONECXX_PUBLIC void | enableKeepAlive (bool enable) |
Enables signaling keep alive, small udp packet sent periodically to keep udp NAT association. More... | |
LINPHONECXX_PUBLIC std::string | getLabel () const |
Get the label assigned to the LinphoneCore. More... | |
LINPHONECXX_PUBLIC void | setLabel (const std::string &label) |
Set a label - for logging/troubleshooting purpose - to the core object. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallLog > | getLastOutgoingCallLog () |
Get the latest outgoing call log. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::Ldap > > | getLdapList () |
Returns a list of entered LDAPs. More... | |
LINPHONECXX_PUBLIC bool | limeX3DhEnabled () const |
Tells wether LIME X3DH is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableLimeX3Dh (bool enable) |
Tells to LinphoneCore to use LIME X3DH. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getLimeX3DhServerUrl () |
Get the x3dh server url. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setLimeX3DhServerUrl (const std::string &url) |
Set the x3dh server url. More... | |
LINPHONECXX_PUBLIC std::list< std::string > | getLinphoneSpecsList () |
Get the list of linphone specs string values representing what functionalities the linphone client supports. More... | |
LINPHONECXX_PUBLIC void | setLinphoneSpecsList (const std::list< std::string > &specs) |
Set the linphone specs list value telling what functionalities the linphone client supports. More... | |
LINPHONECXX_PUBLIC std::list< std::string > | getLoadedPlugins () |
Return the list of loaded plugins. More... | |
LINPHONECXX_PUBLIC bool | localPermissionEnabled () const |
Special function to check if the local network permission has been granted by the user (useful for iOS). More... | |
LINPHONECXX_PUBLIC std::string | getLogCollectionUploadServerUrl () |
Gets the url of the server where to upload the collected log files. More... | |
LINPHONECXX_PUBLIC void | setLogCollectionUploadServerUrl (const std::string &serverUrl) |
Set the url of the server where to upload the collected log files. More... | |
LINPHONECXX_PUBLIC int | getMaxCalls () |
Get the maximum number of simultaneous calls Linphone core can manage at a time. More... | |
LINPHONECXX_PUBLIC void | setMaxCalls (int max) |
Set the maximum number of simultaneous calls Linphone core can manage at a time. More... | |
LINPHONECXX_PUBLIC int | getMaxSizeForAutoDownloadIncomingFiles () |
Gets the size under which incoming files in chat messages will be downloaded automatically. More... | |
LINPHONECXX_PUBLIC void | setMaxSizeForAutoDownloadIncomingFiles (int size) |
Sets the size under which incoming files in chat messages will be downloaded automatically. More... | |
LINPHONECXX_PUBLIC std::string | getMediaDevice () |
Gets the name of the currently assigned sound device for media. More... | |
LINPHONECXX_PUBLIC linphone::Status | setMediaDevice (const std::string &devid) |
Sets the sound device used for media. More... | |
LINPHONECXX_PUBLIC linphone::MediaEncryption | getMediaEncryption () const |
Get the media encryption policy being used for RTP packets. More... | |
LINPHONECXX_PUBLIC linphone::Status | setMediaEncryption (linphone::MediaEncryption menc) |
Choose the media encryption policy to be used for RTP packets. More... | |
LINPHONECXX_PUBLIC void | setMediaEncryptionMandatory (bool mandatory) |
Define whether the configured media encryption is mandatory, if it is and the negotation cannot result in the desired media encryption then the call will fail. More... | |
LINPHONECXX_PUBLIC void | setMediaNetworkReachable (bool reachable) |
This method is called by the application to notify the linphone core library when the media (RTP) network is reachable. More... | |
LINPHONECXX_PUBLIC linphone::MediaResourceMode | getMediaResourceMode () const |
This function returns the media resource mode for this core. More... | |
LINPHONECXX_PUBLIC void | setMediaResourceMode (linphone::MediaResourceMode mode) |
Sets the media resources mode. More... | |
LINPHONECXX_PUBLIC bool | micEnabled () |
Tells whether the microphone is enabled. More... | |
LINPHONECXX_PUBLIC void | enableMic (bool enable) |
Enable or disable the microphone. More... | |
LINPHONECXX_PUBLIC float | getMicGainDb () |
Get microphone gain in db. More... | |
LINPHONECXX_PUBLIC void | setMicGainDb (float level) |
Allow to control microphone level: gain in db. More... | |
LINPHONECXX_PUBLIC int | getMissedCallsCount () |
Get the number of missed calls. More... | |
LINPHONECXX_PUBLIC int | getMtu () const |
Returns the maximum transmission unit size in bytes. | |
LINPHONECXX_PUBLIC void | setMtu (int mtu) |
Sets the maximum transmission unit size in bytes. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getNatAddress () const |
Deprecated. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setNatAddress (const std::string &addr) |
Deprecated. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::NatPolicy > | getNatPolicy () const |
Get The policy that is used to pass through NATs/firewalls. More... | |
LINPHONECXX_PUBLIC void | setNatPolicy (const std::shared_ptr< linphone::NatPolicy > &policy) |
Set the policy to use to pass through NATs/firewalls. More... | |
LINPHONECXX_PUBLIC void * | getNativePreviewWindowId () |
Get the native window handle of the video preview window. More... | |
LINPHONECXX_PUBLIC void | setNativePreviewWindowId (void *windowId) |
Set the native window id where the preview video (local camera) is to be displayed. More... | |
LINPHONECXX_PUBLIC bool | nativeRingingEnabled () const |
Returns whether the native ringing is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableNativeRinging (bool enable) |
Sets whether to use the native ringing (Android only). More... | |
LINPHONECXX_PUBLIC void * | getNativeVideoWindowId () const |
Get the native window handle of the video window. More... | |
LINPHONECXX_PUBLIC void | setNativeVideoWindowId (void *windowId) |
Set the native video window id where the video is to be displayed. More... | |
LINPHONECXX_PUBLIC void | setNetworkReachable (bool reachable) |
This method is called by the application to notify the linphone core library when network is reachable. More... | |
LINPHONECXX_PUBLIC int | getNortpTimeout () const |
Gets the value of the no-rtp timeout. More... | |
LINPHONECXX_PUBLIC void | setNortpTimeout (int seconds) |
Sets the no-rtp timeout value in seconds. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AudioDevice > | getOutputAudioDevice () const |
Gets the output audio device for the current call. More... | |
LINPHONECXX_PUBLIC void | setOutputAudioDevice (const std::shared_ptr< linphone::AudioDevice > &audioDevice) |
Sets the given AudioDevice as output for all active calls. More... | |
LINPHONECXX_PUBLIC std::string | getPlayFile () const |
Get the wav file that is played when putting somebody on hold, or when files are used instead of soundcards (see setUseFiles()). More... | |
LINPHONECXX_PUBLIC void | setPlayFile (const std::string &file) |
Sets a wav file to be played when putting somebody on hold, or when files are used instead of soundcards (see setUseFiles()). More... | |
LINPHONECXX_PUBLIC std::string | getPlaybackDevice () |
Gets the name of the currently assigned sound device for playback. More... | |
LINPHONECXX_PUBLIC linphone::Status | setPlaybackDevice (const std::string &devid) |
Sets the sound device used for playback. More... | |
LINPHONECXX_PUBLIC float | getPlaybackGainDb () |
Get playback gain in db before entering sound card. More... | |
LINPHONECXX_PUBLIC void | setPlaybackGainDb (float level) |
Allow to control play level before entering sound card: gain in db. More... | |
LINPHONECXX_PUBLIC float | getPreferredFramerate () |
Returns the preferred video framerate, previously set by setPreferredFramerate(). More... | |
LINPHONECXX_PUBLIC void | setPreferredFramerate (float fps) |
Set the preferred frame rate for video. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::VideoDefinition > | getPreferredVideoDefinition () const |
Get the preferred video definition for the stream that is captured and sent to the remote party. More... | |
LINPHONECXX_PUBLIC void | setPreferredVideoDefinition (const std::shared_ptr< linphone::VideoDefinition > &videoDefinition) |
Set the preferred video definition for the stream that is captured and sent to the remote party. More... | |
LINPHONECXX_PUBLIC void | setPreferredVideoDefinitionByName (const std::string &name) |
Sets the preferred video definition by its name. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceModel > | getPresenceModel () const |
Get my presence model. More... | |
LINPHONECXX_PUBLIC void | setPresenceModel (const std::shared_ptr< linphone::PresenceModel > &presence) |
Set my presence model. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::VideoDefinition > | getPreviewVideoDefinition () const |
Get the definition of the captured video. More... | |
LINPHONECXX_PUBLIC void | setPreviewVideoDefinition (const std::shared_ptr< linphone::VideoDefinition > &videoDefinition) |
Set the video definition for the captured (preview) video. More... | |
LINPHONECXX_PUBLIC void | setPreviewVideoDefinitionByName (const std::string &name) |
LINPHONECXX_PUBLIC std::string | getPrimaryContact () |
Returns the default identity when no proxy configuration is used. More... | |
LINPHONECXX_PUBLIC linphone::Status | setPrimaryContact (const std::string &contact) |
Sets the local "from" identity. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Address > | getPrimaryContactParsed () |
Same as getPrimaryContact() but the result is a Address object instead of const char *. More... | |
LINPHONECXX_PUBLIC std::string | getProvisioningUri () const |
Get provisioning URI. More... | |
LINPHONECXX_PUBLIC linphone::Status | setProvisioningUri (const std::string &uri) |
Set URI where to download xml configuration file at startup. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::ProxyConfig > > | getProxyConfigList () const |
Returns an unmodifiable list of entered proxy configurations. More... | |
LINPHONECXX_PUBLIC int | getPushIncomingCallTimeout () const |
Returns the push incoming call timeout See setPushIncomingCallTimeout() for details. More... | |
LINPHONECXX_PUBLIC void | setPushIncomingCallTimeout (int seconds) |
Configure the minimum interval between a push notification and the corresponding incoming INVITE. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::PushNotificationConfig > | getPushNotificationConfig () const |
Gets the push notification configuration object if it exists. More... | |
LINPHONECXX_PUBLIC bool | pushNotificationEnabled () |
Gets whether push notifications are enabled or not (Android & iOS only). More... | |
LINPHONECXX_PUBLIC void | enablePushNotification (bool enable) |
Enable or disable push notifications on Android & iOS. More... | |
LINPHONECXX_PUBLIC bool | qrcodeVideoPreviewEnabled () const |
Tells whether QRCode is enabled in the preview. More... | |
LINPHONECXX_PUBLIC void | enableQrcodeVideoPreview (bool enable) |
Controls QRCode enablement. More... | |
LINPHONECXX_PUBLIC bool | realtimeTextEnabled () |
Gets if realtime text is enabled or not. More... | |
LINPHONECXX_PUBLIC bool | recordAwareEnabled () |
Gets if the record aware feature is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableRecordAware (bool enable) |
Enables the record aware feature that will warn other users when recording. More... | |
LINPHONECXX_PUBLIC std::string | getRecordFile () const |
Get the wav file where incoming stream is recorded, when files are used instead of soundcards (see setUseFiles()). More... | |
LINPHONECXX_PUBLIC void | setRecordFile (const std::string &file) |
Sets a wav file where incoming stream is to be recorded, when files are used instead of soundcards (see setUseFiles()). More... | |
LINPHONECXX_PUBLIC std::string | getRemoteRingbackTone () const |
Get the ring back tone played to far end during incoming calls. More... | |
LINPHONECXX_PUBLIC void | setRemoteRingbackTone (const std::string &ring) |
Specify a ring back tone to be played to far end during incoming calls. More... | |
LINPHONECXX_PUBLIC bool | retransmissionOnNackEnabled () |
Tells whether NACK context is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableRetransmissionOnNack (bool enable) |
Turns NACK context on or off. More... | |
LINPHONECXX_PUBLIC std::string | getRing () const |
Returns the path to the wav file used for ringing. More... | |
LINPHONECXX_PUBLIC void | setRing (const std::string &path) |
Sets the path to a wav file used for ringing. More... | |
LINPHONECXX_PUBLIC bool | getRingDuringIncomingEarlyMedia () const |
Tells whether the ring play is enabled during an incoming early media call. | |
LINPHONECXX_PUBLIC void | setRingDuringIncomingEarlyMedia (bool enable) |
Enable or disable the ring play during an incoming early media call. More... | |
LINPHONECXX_PUBLIC std::string | getRingback () const |
Returns the path to the wav file used for ringing back. More... | |
LINPHONECXX_PUBLIC void | setRingback (const std::string &path) |
Sets the path to a wav file used for ringing back. More... | |
LINPHONECXX_PUBLIC std::string | getRingerDevice () |
Gets the name of the currently assigned sound device for ringing. More... | |
LINPHONECXX_PUBLIC linphone::Status | setRingerDevice (const std::string &devid) |
Sets the sound device used for ringing. More... | |
LINPHONECXX_PUBLIC std::string | getRootCa () |
Gets the path to a file or folder containing the trusted root CAs (PEM format) More... | |
LINPHONECXX_PUBLIC void | setRootCa (const std::string &path) |
Sets the path to a file or folder containing trusted root CAs (PEM format) More... | |
LINPHONECXX_PUBLIC void | setRootCaData (const std::string &data) |
Sets the trusted root CAs (PEM format) More... | |
LINPHONECXX_PUBLIC bool | rtpBundleEnabled () const |
Returns whether RTP bundle mode (also known as Media Multiplexing) is enabled. More... | |
LINPHONECXX_PUBLIC void | enableRtpBundle (bool value) |
Enables or disables RTP bundle mode (Media Multiplexing). More... | |
LINPHONECXX_PUBLIC bool | sdp200AckEnabled () const |
Media offer control param for SIP INVITE. More... | |
LINPHONECXX_PUBLIC void | enableSdp200Ack (bool enable) |
Control when media offer is sent in SIP INVITE. More... | |
LINPHONECXX_PUBLIC bool | selfViewEnabled () const |
Tells whether video self view during call is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableSelfView (bool enable) |
Enables or disable self view during calls. More... | |
LINPHONECXX_PUBLIC void | enableSenderNameHiddenInForwardMessage (bool enable) |
Enable whether or not to hide sender name in forward message. More... | |
LINPHONECXX_PUBLIC bool | sessionExpiresEnabled () const |
Check if the Session Timers feature is enabled. | |
LINPHONECXX_PUBLIC void | enableSessionExpires (bool enabled) const |
Enable the Session Timers support. More... | |
LINPHONECXX_PUBLIC int | getSessionExpiresMinValue () const |
Returns the session expires min value, 90 by default. | |
LINPHONECXX_PUBLIC void | setSessionExpiresMinValue (int min) const |
Sets the session expires minSE value, forced to a minimum of 90 by default. | |
LINPHONECXX_PUBLIC linphone::SessionExpiresRefresher | getSessionExpiresRefresherValue () const |
Returns the session expires refresher value. | |
LINPHONECXX_PUBLIC void | setSessionExpiresRefresherValue (linphone::SessionExpiresRefresher refresher) const |
Sets the session expires refresher value. More... | |
LINPHONECXX_PUBLIC int | getSessionExpiresValue () const |
Returns the session expires value. | |
LINPHONECXX_PUBLIC void | setSessionExpiresValue (int expires) const |
Sets the session expires value, 0 by default. | |
LINPHONECXX_PUBLIC int | getSipDscp () const |
Get the DSCP field for SIP signaling channel. More... | |
LINPHONECXX_PUBLIC void | setSipDscp (int dscp) |
Set the DSCP field for SIP signaling channel. More... | |
LINPHONECXX_PUBLIC void | setSipNetworkReachable (bool reachable) |
This method is called by the application to notify the linphone core library when the SIP network is reachable. More... | |
LINPHONECXX_PUBLIC int | getSipTransportTimeout () |
Get the SIP transport timeout, which represents the maximum time permitted to establish a connection to a SIP server. More... | |
LINPHONECXX_PUBLIC void | setSipTransportTimeout (int timeoutMs) |
Set the SIP transport timeout, which represents the maximum time permitted to establish a connection to a SIP server. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::list< std::string > | getSoundDevicesList () const |
Gets the list of the available sound devices. More... | |
LINPHONECXX_PUBLIC std::string | getSrtpCryptoSuites () |
Get the crypto suites available to the core. More... | |
LINPHONECXX_PUBLIC void | setSrtpCryptoSuites (const std::string &suites) |
Set the crypto suites available to the core. More... | |
LINPHONECXX_PUBLIC std::string | getStaticPicture () |
Get the path to the image file streamed when "Static picture" is set as the video device. More... | |
LINPHONECXX_PUBLIC linphone::Status | setStaticPicture (const std::string &path) |
Set the path to the image file to stream when "Static picture" is set as the video device. More... | |
LINPHONECXX_PUBLIC float | getStaticPictureFps () |
Get the frame rate for static picture. More... | |
LINPHONECXX_PUBLIC linphone::Status | setStaticPictureFps (float fps) |
Set the frame rate for static picture. More... | |
LINPHONECXX_PUBLIC std::string | getStunServer () const |
Get the STUN server address being used. More... | |
LINPHONECXX_PUBLIC void | setStunServer (const std::string &server) |
Set the STUN server address to use when the firewall policy is set to STUN. More... | |
LINPHONECXX_PUBLIC std::list< std::string > | getSupportedFileFormatsList () const |
Returns a null terminated table of strings containing the file format extension supported for call recording. More... | |
LINPHONECXX_PUBLIC void | setSupportedTag (const std::string &tags) |
Set the supported tags. | |
LINPHONECXX_PUBLIC linphone::SupportLevel | getTag100RelSupportLevel () const |
Get the support level of the 100rel attribute. More... | |
LINPHONECXX_PUBLIC void | setTag100RelSupportLevel (linphone::SupportLevel level) |
Define what level of support is provided to the 100rel attribute. More... | |
LINPHONECXX_PUBLIC void | enableTcapLineMerging (bool merge) |
Define whether tcap lines are going to be merged if capability negotiation (RFC5939) is supported. More... | |
LINPHONECXX_PUBLIC bool | tcapLinesMergingEnabled () const |
Check if tcap lines are going to the merged if the capability negotiation (RFC5939) is supported or not. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::PayloadType > > | getTextPayloadTypes () |
Return the list of the available text payload types. More... | |
LINPHONECXX_PUBLIC void | setTextPayloadTypes (const std::list< std::shared_ptr< linphone::PayloadType >> &payloadTypes) |
Redefine the list of the available payload types. More... | |
LINPHONECXX_PUBLIC int | getTextPort () const |
Gets the UDP port used for text streaming. More... | |
LINPHONECXX_PUBLIC void | setTextPort (int port) |
Sets the UDP port used for text streaming. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Range > | getTextPortsRange () const |
Get the text port range from which is randomly chosen the UDP port used for text streaming. More... | |
LINPHONECXX_PUBLIC std::string | getTlsCert () const |
Gets the TLS certificate. More... | |
LINPHONECXX_PUBLIC void | setTlsCert (const std::string &tlsCert) |
Sets a TLS certificate used for TLS authentication The certificate won't be stored, you have to set it after each Core startup. More... | |
LINPHONECXX_PUBLIC std::string | getTlsCertPath () const |
Gets the path to the TLS certificate file. More... | |
LINPHONECXX_PUBLIC void | setTlsCertPath (const std::string &tlsCertPath) |
Sets a TLS certificate path used for TLS authentication The path will be stored in the rc file and automatically restored on startup. More... | |
LINPHONECXX_PUBLIC std::string | getTlsKey () const |
Gets the TLS key. More... | |
LINPHONECXX_PUBLIC void | setTlsKey (const std::string &tlsKey) |
Sets a TLS key used for TLS authentication The key won't be stored, you have to set it after each Core startup. More... | |
LINPHONECXX_PUBLIC std::string | getTlsKeyPath () const |
Gets the path to the TLS key file. More... | |
LINPHONECXX_PUBLIC void | setTlsKeyPath (const std::string &tlsKeyPath) |
Sets a TLS key path used for TLS authentication The path will be stored in the rc file and automatically restored on startup. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Transports > | getTransports () |
Retrieves the port configuration used for each transport (udp, tcp, tls). More... | |
LINPHONECXX_PUBLIC linphone::Status | setTransports (const std::shared_ptr< const linphone::Transports > &transports) |
Sets the ports to be used for each of transport (UDP or TCP) A zero value port for a given transport means the transport is not used. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Transports > | getTransportsUsed () |
Retrieves the real port number assigned for each sip transport (udp, tcp, tls). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Tunnel > | getTunnel () const |
get tunnel instance if available More... | |
LINPHONECXX_PUBLIC int | getUnreadChatMessageCount () const |
Return the global unread chat message count. More... | |
LINPHONECXX_PUBLIC int | getUnreadChatMessageCountFromActiveLocals () const |
Return the unread chat message count for all active local address. More... | |
LINPHONECXX_PUBLIC int | getUploadBandwidth () const |
Retrieve the maximum available upload bandwidth. More... | |
LINPHONECXX_PUBLIC void | setUploadBandwidth (int bandwidth) |
Sets maximum available upload bandwidth This is IP bandwidth, in kbit/s. More... | |
LINPHONECXX_PUBLIC int | getUploadPtime () |
Set audio packetization time linphone will send (in absence of requirement from peer) A value of 0 stands for the current codec default packetization time. More... | |
LINPHONECXX_PUBLIC void | setUploadPtime (int ptime) |
Set audio packetization time linphone will send (in absence of requirement from peer) A value of 0 stands for the current codec default packetization time. More... | |
LINPHONECXX_PUBLIC std::string | getUpnpExternalIpaddress () const |
Return the external ip address of router. More... | |
LINPHONECXX_PUBLIC linphone::UpnpState | getUpnpState () const |
Return the internal state of uPnP. More... | |
LINPHONECXX_PUBLIC bool | getUseFiles () |
Gets whether linphone is currently streaming audio from and to files, rather than using the soundcard. More... | |
LINPHONECXX_PUBLIC void | setUseFiles (bool yesno) |
Ask the core to stream audio from and to files, instead of using the soundcard. More... | |
LINPHONECXX_PUBLIC bool | getUseInfoForDtmf () |
Indicates whether SIP INFO is used to send digits. More... | |
LINPHONECXX_PUBLIC void | setUseInfoForDtmf (bool useInfo) |
Sets whether SIP INFO is to be used to send digits. More... | |
LINPHONECXX_PUBLIC bool | getUseRfc2833ForDtmf () |
Indicates whether RFC2833 is used to send digits. More... | |
LINPHONECXX_PUBLIC void | setUseRfc2833ForDtmf (bool useRfc2833) |
Sets whether RFC2833 is to be used to send digits. More... | |
LINPHONECXX_PUBLIC std::string | getUserAgent () |
Gets the user-agent as a string. More... | |
LINPHONECXX_PUBLIC std::string | getUserCertificatesPath () |
Get the path to the directory storing the user's certificates. More... | |
LINPHONECXX_PUBLIC void | setUserCertificatesPath (const std::string &path) |
Set the path to the directory storing the user's x509 certificates (used by dtls) More... | |
LINPHONECXX_PUBLIC bool | vibrationOnIncomingCallEnabled () |
Gets whether the device will vibrate while an incoming call is ringing (Android only). More... | |
LINPHONECXX_PUBLIC void | enableVibrationOnIncomingCall (bool enable) |
Enable vibration will incoming call is ringing (Android only). | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::VideoActivationPolicy > | getVideoActivationPolicy () const |
Get the default policy for video. More... | |
LINPHONECXX_PUBLIC void | setVideoActivationPolicy (const std::shared_ptr< const linphone::VideoActivationPolicy > &policy) |
Sets the default policy for video. More... | |
LINPHONECXX_PUBLIC bool | videoAdaptiveJittcompEnabled () |
Tells whether the video adaptive jitter compensation is enabled. More... | |
LINPHONECXX_PUBLIC void | enableVideoAdaptiveJittcomp (bool enable) |
Enable or disable the video adaptive jitter compensation. More... | |
LINPHONECXX_PUBLIC bool | videoCaptureEnabled () |
Tells whether video capture is enabled. More... | |
LINPHONECXX_PUBLIC void | enableVideoCapture (bool enable) |
Enable or disable video capture. More... | |
LINPHONECXX_PUBLIC linphone::CodecPriorityPolicy | getVideoCodecPriorityPolicy () const |
Get the current priority policy for video codecs (payload types). More... | |
LINPHONECXX_PUBLIC void | setVideoCodecPriorityPolicy (linphone::CodecPriorityPolicy policy) |
Set the priority policy for video codecs (payload types). More... | |
LINPHONECXX_PUBLIC std::string | getVideoDevice () const |
Returns the name of the currently active video device. More... | |
LINPHONECXX_PUBLIC linphone::Status | setVideoDevice (const std::string &id) |
Sets the active video device. More... | |
LINPHONECXX_PUBLIC std::list< std::string > | getVideoDevicesList () const |
Gets the list of the available video capture devices. More... | |
LINPHONECXX_PUBLIC bool | videoDisplayEnabled () |
Tells whether video display is enabled. More... | |
LINPHONECXX_PUBLIC void | enableVideoDisplay (bool enable) |
Enable or disable video display. More... | |
LINPHONECXX_PUBLIC std::string | getVideoDisplayFilter () |
Get the name of the mediastreamer2 filter used for rendering video. More... | |
LINPHONECXX_PUBLIC void | setVideoDisplayFilter (const std::string &filterName) |
Set the name of the mediastreamer2 filter to be used for rendering video. More... | |
LINPHONECXX_PUBLIC int | getVideoDscp () const |
Get the DSCP field for outgoing video streams. More... | |
LINPHONECXX_PUBLIC void | setVideoDscp (int dscp) |
Set the DSCP field for outgoing video streams. More... | |
LINPHONECXX_PUBLIC bool | videoEnabled () |
Returns true if either capture or display is enabled, false otherwise. More... | |
LINPHONECXX_PUBLIC int | getVideoJittcomp () |
Returns the nominal video jitter buffer size in milliseconds. More... | |
LINPHONECXX_PUBLIC void | setVideoJittcomp (int milliseconds) |
Sets the nominal video jitter buffer size in milliseconds. More... | |
LINPHONECXX_PUBLIC std::string | getVideoMulticastAddr () const |
Use to get multicast address to be used for video stream. More... | |
LINPHONECXX_PUBLIC linphone::Status | setVideoMulticastAddr (const std::string &ip) |
Use to set multicast address to be used for video stream. More... | |
LINPHONECXX_PUBLIC bool | videoMulticastEnabled () const |
Use to get multicast state of video stream. More... | |
LINPHONECXX_PUBLIC void | enableVideoMulticast (bool yesno) |
Use to enable multicast rtp for video stream. More... | |
LINPHONECXX_PUBLIC int | getVideoMulticastTtl () const |
Use to get multicast ttl to be used for video stream. More... | |
LINPHONECXX_PUBLIC linphone::Status | setVideoMulticastTtl (int ttl) |
Use to set multicast ttl to be used for video stream. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::PayloadType > > | getVideoPayloadTypes () |
Return the list of the available video payload types. More... | |
LINPHONECXX_PUBLIC void | setVideoPayloadTypes (const std::list< std::shared_ptr< linphone::PayloadType >> &payloadTypes) |
Redefine the list of the available video payload types. More... | |
LINPHONECXX_PUBLIC int | getVideoPort () const |
Gets the UDP port used for video streaming. More... | |
LINPHONECXX_PUBLIC void | setVideoPort (int port) |
Sets the UDP port used for video streaming. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Range > | getVideoPortsRange () const |
Get the video port range from which is randomly chosen the UDP port used for video streaming. More... | |
LINPHONECXX_PUBLIC std::string | getVideoPreset () const |
Get the video preset used for video calls. More... | |
LINPHONECXX_PUBLIC void | setVideoPreset (const std::string &preset) |
Set the video preset to be used for video calls. More... | |
LINPHONECXX_PUBLIC bool | videoPreviewEnabled () const |
Tells whether video preview is enabled. More... | |
LINPHONECXX_PUBLIC void | enableVideoPreview (bool enable) |
Controls video preview enablement. More... | |
LINPHONECXX_PUBLIC void | enableVideoSourceReuse (bool enable) |
Enable or disable video source reuse when switching from preview to actual video call. More... | |
LINPHONECXX_PUBLIC bool | wifiOnlyEnabled () |
Tells whether Wifi only mode is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableWifiOnly (bool enable) |
Turns Wifi only mode on or off. More... | |
LINPHONECXX_PUBLIC bool | zeroRtpPortForStreamInactiveEnabled () const |
Check if RTP port is set to 0 when a stream is inactive. More... | |
LINPHONECXX_PUBLIC void | enableZeroRtpPortForStreamInactive (bool enable) |
Define whether RTP port is set to 0 when a stream is inactive. More... | |
LINPHONECXX_PUBLIC std::list< linphone::ZrtpKeyAgreement > | getZrtpAvailableKeyAgreementList () |
Return the list of the available ZRTP key agreement algorithns. More... | |
LINPHONECXX_PUBLIC void * | getZrtpCacheDb () |
Get a pointer to the sqlite db holding zrtp/lime cache. More... | |
LINPHONECXX_PUBLIC bool | zrtpGoClearEnabled () const |
Check if the ZRTP go clear is enabled or not. More... | |
LINPHONECXX_PUBLIC void | enableZrtpGoClear (bool enabled) |
Define whether ZRTP go clear is enabled. | |
LINPHONECXX_PUBLIC std::list< linphone::ZrtpKeyAgreement > | getZrtpKeyAgreementList () |
Return the ordonated list of the ZRTP key agreement algorithns currently configured. More... | |
LINPHONECXX_PUBLIC void | setZrtpKeyAgreementSuites (const std::list< linphone::ZrtpKeyAgreement > &keyAgreements) |
Redefine the list of prefered ZRTP key agreement algorithms. More... | |
LINPHONECXX_PUBLIC std::string | getZrtpSecretsFile () |
Get the path to the file storing the zrtp secrets cache. More... | |
LINPHONECXX_PUBLIC void | setZrtpSecretsFile (const std::string &file) |
Set the path to the file storing the zrtp secrets cache. More... | |
LINPHONECXX_PUBLIC void | activateAudioSession (bool actived) |
Special function to indicate if the audio session is activated. More... | |
LINPHONECXX_PUBLIC linphone::Status | addAccount (const std::shared_ptr< linphone::Account > &account) |
Add an account. More... | |
LINPHONECXX_PUBLIC linphone::Status | addAllToConference () |
Add all current calls into the conference. More... | |
LINPHONECXX_PUBLIC void | addAuthInfo (const std::shared_ptr< const linphone::AuthInfo > &info) |
Adds authentication information to the Core. More... | |
LINPHONECXX_PUBLIC void | addContentTypeSupport (const std::string &contentType) |
Add support for the specified content type. More... | |
LINPHONECXX_PUBLIC void | addFriendList (const std::shared_ptr< linphone::FriendList > &list) |
Add a friend list. More... | |
LINPHONECXX_PUBLIC void | addLdap (const std::shared_ptr< linphone::Ldap > &ldap) |
Add or update a LDAP server and save it to the configuration. More... | |
LINPHONECXX_PUBLIC void | addLinphoneSpec (const std::string &spec) |
Add the given linphone specs to the list of functionalities the linphone client supports. More... | |
LINPHONECXX_PUBLIC void | addProvisioningHeader (const std::string &headerName, const std::string &value) |
Add an extra header for retrieving the remote provisioning (check setProvisioningUri()). More... | |
LINPHONECXX_PUBLIC linphone::Status | addProxyConfig (const std::shared_ptr< linphone::ProxyConfig > &config) |
Add a proxy configuration. More... | |
LINPHONECXX_PUBLIC void | addSupportedTag (const std::string &tag) |
This function controls signaling features supported by the core. More... | |
LINPHONECXX_PUBLIC linphone::Status | addToConference (const std::shared_ptr< linphone::Call > &call) |
Add a participant to the conference. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | audioRouteChanged () |
Special function to indicate if the audio route is changed. More... | |
LINPHONECXX_PUBLIC linphone::ChatRoom::EphemeralMode | chatRoomGetDefaultEphemeralMode () const |
Gets the default ephemeral message mode core the linphone core. More... | |
LINPHONECXX_PUBLIC void | chatRoomSetDefaultEphemeralMode (linphone::ChatRoom::EphemeralMode mode) |
Sets the default ephemeral message mode. More... | |
LINPHONECXX_PUBLIC void | checkForUpdate (const std::string ¤tVersion) |
Checks if a new version of the application is available. More... | |
LINPHONECXX_PUBLIC void | clearAccounts () |
Erase all account from config. | |
LINPHONECXX_PUBLIC void | clearAllAuthInfo () |
Clear all authentication information. | |
LINPHONECXX_PUBLIC void | clearCallLogs () |
Erase the call log. | |
LINPHONECXX_PUBLIC void | clearLdaps () |
Erase all LDAP from the configuration. | |
LINPHONECXX_PUBLIC void | clearProvisioningHeaders () |
Clear all headers that were added with addProvisioningHeader(). | |
LINPHONECXX_PUBLIC void | clearProxyConfig () |
Erase all proxies from config. | |
LINPHONECXX_PUBLIC linphone::Status | configSync () |
Writes the config file to disk. More... | |
LINPHONECXX_PUBLIC void | configureAudioSession () |
Special function to configure audio session with default settings. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Account > | createAccount (const std::shared_ptr< linphone::AccountParams > ¶ms) |
Create an account using given parameters, see createAccountParams(). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::AccountCreator > | createAccountCreator (const std::string &xmlrpcUrl) |
Create a AccountCreator and set Linphone Request callbacks. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::AccountParams > | createAccountParams () |
Create an account params using default values from Linphone core. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Address > | createAddress (const std::string &address) |
Create a Address object by parsing the user supplied address, given as a string. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallLog > | createCallLog (const std::shared_ptr< linphone::Address > &from, const std::shared_ptr< linphone::Address > &to, linphone::Call::Dir dir, int duration, time_t startTime, time_t connectedTime, linphone::Call::Status status, bool videoEnabled, float quality) |
Creates a fake CallLog. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallParams > | createCallParams (const std::shared_ptr< linphone::Call > &call) |
Create a CallParams suitable for inviteWithParams(), linphone_core_accept_call_with_params, linphone_core_accept_early_media_with_params or linphone_core_accept_call_update. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatRoom > | createChatRoom (const std::shared_ptr< const linphone::ChatRoomParams > ¶ms, const std::shared_ptr< const linphone::Address > &localAddr, const std::list< std::shared_ptr< linphone::Address >> &participants) |
Create a chat room. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createChatRoom (const std::shared_ptr< const linphone::ChatRoomParams > ¶ms, const std::shared_ptr< const linphone::Address > &localAddr, const std::string &subject, const std::list< std::shared_ptr< linphone::Address >> &participants) |
Create a chat room. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createChatRoom (const std::shared_ptr< const linphone::ChatRoomParams > ¶ms, const std::string &subject, const std::list< std::shared_ptr< linphone::Address >> &participants) |
Create a chat room. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createChatRoom (const std::string &subject, const std::list< std::shared_ptr< linphone::Address >> &participants) |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createChatRoom (const std::shared_ptr< const linphone::ChatRoomParams > ¶ms, const std::shared_ptr< const linphone::Address > &localAddr, const std::shared_ptr< const linphone::Address > &participant) |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createChatRoom (const std::shared_ptr< const linphone::Address > &participant) |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createClientGroupChatRoom (const std::string &subject, bool fallback) |
Create a client-side group chat room. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | createClientGroupChatRoom (const std::string &subject, bool fallback, bool encrypted) |
Create a client-side group chat room. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ConferenceParams > | createConferenceParams (const std::shared_ptr< linphone::Conference > &conference) |
Create some default conference parameters for instanciating a conference with createConferenceWithParams(). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ConferenceScheduler > | createConferenceScheduler () |
Create a conference scheduler that can be used to create remote conferences for now or later and then send conference info as an ICS through chat. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Conference > | createConferenceWithParams (const std::shared_ptr< const linphone::ConferenceParams > ¶ms) |
Create a conference. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Config > | createConfig (const std::string &filename) |
Create a Config object from a user config file. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Content > | createContent () |
Create a content with default values from Linphone core. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatRoomParams > | createDefaultChatRoomParams () |
Creates and returns the default chat room parameters. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Friend > | createFriend () |
Create a default LinphoneFriend. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::FriendList > | createFriendList () |
Create a new empty FriendList object. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Friend > | createFriendWithAddress (const std::string &address) |
Create a Friend from the given address. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::InfoMessage > | createInfoMessage () |
Creates an empty info message. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Ldap > | createLdap () |
Create an empty LDAP search. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::LdapParams > | createLdapParams () |
Create a LDAP params using default values from Linphone core. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Ldap > | createLdapWithParams (const std::shared_ptr< linphone::LdapParams > ¶ms) |
Create a LDAP search using given parameters and store them in the configuration file. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Player > | createLocalPlayer (const std::string &soundCardName, const std::string &videoDisplayName, void *windowId) |
Create an independent media file player. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::MagicSearch > | createMagicSearch () |
Create a MagicSearch object. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::NatPolicy > | createNatPolicy () |
Create a new NatPolicy object with every policies being disabled. More... | |
LINPHONECXX_PUBLIC void * | createNativePreviewWindowId () |
Create a native window handle for the video preview window. More... | |
LINPHONECXX_PUBLIC void * | createNativeVideoWindowId () const |
Create a native window handle for the video window. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | createNotify (const std::shared_ptr< linphone::Address > &resource, const std::string &event) |
Create an out-of-dialog notification, specifying the destination resource, the event name. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | createOneShotPublish (const std::shared_ptr< linphone::Address > &resource, const std::string &event) |
Create a publish context for a one-shot publish. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceActivity > | createPresenceActivity (linphone::PresenceActivity::Type acttype, const std::string &description) |
Create a PresenceActivity with the given type and description. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceModel > | createPresenceModel () |
Create a default LinphonePresenceModel. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceModel > | createPresenceModelWithActivity (linphone::PresenceActivity::Type acttype, const std::string &description) |
Create a PresenceModel with the given activity type and activity description. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceModel > | createPresenceModelWithActivityAndNote (linphone::PresenceActivity::Type acttype, const std::string &description, const std::string ¬e, const std::string &lang) |
Create a PresenceModel with the given activity type, activity description, note content and note language. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceNote > | createPresenceNote (const std::string &content, const std::string &lang) |
Create a PresenceNote with the given content and language. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresencePerson > | createPresencePerson (const std::string &id) |
Create a PresencePerson with the given id. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PresenceService > | createPresenceService (const std::string &id, linphone::PresenceBasicStatus basicStatus, const std::string &contact) |
Create a PresenceService with the given id, basic status and contact. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Address > | createPrimaryContactParsed () |
Same as getPrimaryContact() but the result is a Address object instead of const char *. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ProxyConfig > | createProxyConfig () |
Create a proxy config with default values from Linphone core. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | createPublish (const std::shared_ptr< linphone::Address > &resource, const std::string &event, int expires) |
Create a publish context for an event state. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Recorder > | createRecorder (const std::shared_ptr< linphone::RecorderParams > ¶ms) |
Create a media file recorder. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::RecorderParams > | createRecorderParams () const |
Create a recorder params that will hold parameters. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | createSubscribe (const std::shared_ptr< linphone::Address > &resource, const std::string &event, int expires) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | createSubscribe (const std::shared_ptr< linphone::Address > &resource, const std::shared_ptr< linphone::ProxyConfig > &proxy, const std::string &event, int expires) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::XmlRpcSession > | createXmlRpcSession (const std::string &url) |
Create a XmlRpcSession for a given url. More... | |
LINPHONECXX_PUBLIC void | deleteChatRoom (const std::shared_ptr< linphone::ChatRoom > &chatRoom) |
Removes a chatroom including all message history from the LinphoneCore. More... | |
LINPHONECXX_PUBLIC void | deleteConferenceInformation (const std::shared_ptr< linphone::ConferenceInfo > &conferenceInfo) |
Deletes a conference information from DB. More... | |
LINPHONECXX_PUBLIC void | didRegisterForRemotePush (void *deviceToken) |
Sets device_token when application didRegisterForRemoteNotificationsWithDeviceToken (IOS only). More... | |
LINPHONECXX_PUBLIC void | didRegisterForRemotePushWithStringifiedToken (const std::string &deviceTokenStr) |
Sets device_token when application didRegisterForRemoteNotificationsWithDeviceToken (IOS only). More... | |
LINPHONECXX_PUBLIC void | disableChat (linphone::Reason denyReason) |
Inconditionnaly disable incoming chat messages. More... | |
LINPHONECXX_PUBLIC void | enableChat () |
Enable reception of incoming chat messages. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | ensureRegistered () |
Call this method when you receive a push notification (if you handle push notifications manually). More... | |
LINPHONECXX_PUBLIC void | enterBackground () |
This method is called by the application to notify the linphone core library when it enters background mode. | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | enterConference () |
Join the local participant to the running conference. More... | |
LINPHONECXX_PUBLIC void | enterForeground () |
This method is called by the application to notify the linphone core library when it enters foreground mode. | |
LINPHONECXX_PUBLIC bool | fileFormatSupported (const std::string &fmt) |
Returns whether a specific file format is supported. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AuthInfo > | findAuthInfo (const std::string &realm, const std::string &username, const std::string &sipDomain) |
Find authentication info matching realm, username, domain criteria. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Call > | findCallFromUri (const std::string &uri) const |
Search from the list of current calls if a remote address match uri. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallLog > | findCallLog (const std::string &callId, int limit) |
Get the call log matching the call id, or nullptr if can't be found. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallLog > | findCallLogFromCallId (const std::string &callId) |
Get the call log matching the call id, or nullptr if can't be found. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | findChatRoom (const std::shared_ptr< const linphone::Address > &peerAddr, const std::shared_ptr< const linphone::Address > &localAddr) const |
Find a chat room. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ConferenceInfo > | findConferenceInformationFromUri (const std::shared_ptr< linphone::Address > &uri) |
Retrieve the conference information linked to the provided URI if any. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::Address > > | findContactsByChar (const std::string &filter, bool sipOnly) |
Retrieves a list of Address sort and filter. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Friend > | findFriend (const std::shared_ptr< const linphone::Address > &address) const |
Search a Friend by its address. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Friend > | findFriendByPhoneNumber (const std::string &phoneNumber) const |
Search a Friend by its phone number. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::Friend > > | findFriends (const std::shared_ptr< const linphone::Address > &address) const |
Search all Friend matching an address. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | findOneToOneChatRoom (const std::shared_ptr< const linphone::Address > &localAddr, const std::shared_ptr< const linphone::Address > &participantAddr, bool encrypted) const |
Find a one to one chat room. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Account > | getAccountByIdkey (const std::string &idkey) |
Search for a Account by it's idkey. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | getCallByCallid (const std::string &callId) const |
Get the call by callid. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Call > | getCallByRemoteAddress (const std::string &remoteAddress) const |
Get the call with the remote_address specified. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | getCallByRemoteAddress2 (const std::shared_ptr< const linphone::Address > &remoteAddress) const |
Get the call with the specified Address. More... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::CallLog > > | getCallHistory (const std::shared_ptr< const linphone::Address > &peerAddress, const std::shared_ptr< const linphone::Address > &localAddress) |
Get the list of call logs (past calls). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | getChatRoom (const std::shared_ptr< const linphone::Address > &addr) |
Get a chat room whose peer is the supplied address. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | getChatRoom (const std::shared_ptr< const linphone::Address > &peerAddr, const std::shared_ptr< const linphone::Address > &localAddr) |
Get a chat room. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ChatRoom > | getChatRoomFromUri (const std::string &to) |
Get a chat room for messaging from a sip uri like sip:joe@s. ip.l inpho ne.o rgMore... | |
LINPHONECXX_PUBLIC std::list< std::shared_ptr< linphone::ConferenceInfo > > | getConferenceInformationListAfterTime (time_t time) |
Retrieve the list of conference information on DB after a certain time. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Friend > | getFriendByRefKey (const std::string &key) const |
Search a Friend by its reference key. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::FriendList > | getFriendListByName (const std::string &name) const |
Retrieves the list of Friend from the core that has the given display name. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::PayloadType > | getPayloadType (const std::string &type, int rate, int channels) |
Get payload type from mime type and clock rate. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ProxyConfig > | getProxyConfigByIdkey (const std::string &idkey) |
Search for a ProxyConfig by it's idkey. More... | |
LINPHONECXX_PUBLIC int | getUnreadChatMessageCountFromLocal (const std::shared_ptr< const linphone::Address > &address) const |
Return the unread chat message count for a given local address. More... | |
LINPHONECXX_PUBLIC linphone::ZrtpPeerStatus | getZrtpStatus (const std::string &addr) |
Get the zrtp sas validation status for a peer uri. More... | |
LINPHONECXX_PUBLIC bool | hasBuiltinEchoCanceller () |
Check whether the device has a hardware echo canceller. More... | |
LINPHONECXX_PUBLIC bool | hasCrappyOpengl () |
Check whether the device is flagged has crappy opengl. More... | |
LINPHONECXX_PUBLIC bool | inCall () const |
Tells whether there is a call running. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Address > | interpretUrl (const std::string &url) |
Constructs a Address from the given string if possible. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Address > | interpretUrl (const std::string &url, bool applyInternationalPrefix) |
Constructs a Address from the given string if possible. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | invite (const std::string &url) |
Initiates an outgoing call. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | inviteAddress (const std::shared_ptr< const linphone::Address > &addr) |
Initiates an outgoing call given a destination Address The Address can be constructed directly using Factory::createAddress(), or created by interpretUrl(). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | inviteAddressWithParams (const std::shared_ptr< const linphone::Address > &addr, const std::shared_ptr< const linphone::CallParams > ¶ms) |
Initiates an outgoing call given a destination Address The Address can be constructed directly using Factory::createAddress(), or created by interpretUrl(). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | inviteAddressWithParams (const std::shared_ptr< const linphone::Address > &addr, const std::shared_ptr< const linphone::CallParams > ¶ms, const std::string &subject, const std::shared_ptr< const linphone::Content > &content) |
Initiates an outgoing call given a destination Address The Address can be constructed directly using Factory::createAddress(), or created by interpretUrl(). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Call > | inviteWithParams (const std::string &url, const std::shared_ptr< const linphone::CallParams > ¶ms) |
Initiates an outgoing call according to supplied call parameters The application doesn't own a reference to the returned Call object. More... | |
LINPHONECXX_PUBLIC bool | isContentTypeSupported (const std::string &contentType) const |
Tells whether a content type is supported. More... | |
LINPHONECXX_PUBLIC bool | isMediaEncryptionSupported (linphone::MediaEncryption menc) |
Check if media encryption is supported. More... | |
LINPHONECXX_PUBLIC bool | isMediaFilterSupported (const std::string &filtername) |
Checks if the given media filter is loaded and usable. More... | |
LINPHONECXX_PUBLIC bool | isPluginLoaded (const std::string &name) const |
Tells whether a plugin is loaded or not. More... | |
LINPHONECXX_PUBLIC void | iterate () |
Main loop function. More... | |
LINPHONECXX_PUBLIC bool | ldapAvailable () |
Tells if LDAP is available. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | leaveConference () |
Make the local participant leave the running conference. More... | |
LINPHONECXX_PUBLIC bool | limeX3DhAvailable () const |
Tells if LIME X3DH is available. | |
LINPHONECXX_PUBLIC void | loadConfigFromXml (const std::string &xmlUri) |
Update current config with the content of a xml config file. More... | |
LINPHONECXX_PUBLIC bool | mediaEncryptionSupported (linphone::MediaEncryption menc) |
Check if a media encryption type is supported. More... | |
LINPHONECXX_PUBLIC void | migrateLogsFromRcToDb () |
Migrates the call logs from the linphonerc to the database if not done yet. | |
LINPHONECXX_PUBLIC linphone::Status | migrateToMultiTransport () |
Migrate configuration so that all SIP transports are enabled. More... | |
LINPHONECXX_PUBLIC void | notifyAllFriends (const std::shared_ptr< linphone::PresenceModel > &presence) |
Notify all friends that have subscribed. More... | |
LINPHONECXX_PUBLIC void | notifyNotifyPresenceReceived (const std::shared_ptr< linphone::Friend > &linphoneFriend) |
Notifies the upper layer that a presence status has been received by calling the appropriate callback if one has been set. More... | |
LINPHONECXX_PUBLIC void | notifyNotifyPresenceReceivedForUriOrTel (const std::shared_ptr< linphone::Friend > &linphoneFriend, const std::string &uriOrTel, const std::shared_ptr< const linphone::PresenceModel > &presenceModel) |
Notifies the upper layer that a presence model change has been received for the uri or telephone number given as a parameter, by calling the appropriate callback if one has been set. More... | |
LINPHONECXX_PUBLIC linphone::Status | pauseAllCalls () |
Pause all currently running calls. More... | |
LINPHONECXX_PUBLIC void | playDtmf (char dtmf, int durationMs) |
Plays a dtmf sound to the local user. More... | |
LINPHONECXX_PUBLIC linphone::Status | playLocal (const std::string &audiofile) |
Plays an audio file to the local user. More... | |
LINPHONECXX_PUBLIC int | preemptSoundResources () |
Empties sound resources to allow a new call to be accepted. More... | |
LINPHONECXX_PUBLIC void | previewOglRender () const |
Call generic OpenGL render for a given core. | |
LINPHONECXX_PUBLIC void | processPushNotification (const std::string &callId) |
Call this method when you receive a push notification (if you handle push notifications manually). More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | publish (const std::shared_ptr< linphone::Address > &resource, const std::string &event, int expires, const std::shared_ptr< const linphone::Content > &body) |
Publish an event state. More... | |
LINPHONECXX_PUBLIC unsigned int | realtimeTextGetKeepaliveInterval () const |
Gets keep alive interval of real time text. More... | |
LINPHONECXX_PUBLIC void | realtimeTextSetKeepaliveInterval (unsigned int interval) |
Set keep alive interval for real time text. More... | |
LINPHONECXX_PUBLIC void | refreshRegisters () |
force registration refresh to be initiated upon next iterate More... | |
LINPHONECXX_PUBLIC void | rejectSubscriber (const std::shared_ptr< linphone::Friend > &linphoneFriend) |
Black list a friend. More... | |
LINPHONECXX_PUBLIC void | reloadMsPlugins (const std::string &path) |
Reload mediastreamer2 plugins from specified directory. More... | |
LINPHONECXX_PUBLIC void | reloadSoundDevices () |
Update detection of sound devices. More... | |
LINPHONECXX_PUBLIC void | reloadVideoDevices () |
Update detection of camera devices. More... | |
LINPHONECXX_PUBLIC void | removeAccount (const std::shared_ptr< linphone::Account > &account) |
Removes an account. More... | |
LINPHONECXX_PUBLIC void | removeAuthInfo (const std::shared_ptr< const linphone::AuthInfo > &info) |
Removes an authentication information object. More... | |
LINPHONECXX_PUBLIC void | removeCallLog (const std::shared_ptr< linphone::CallLog > &callLog) |
Remove a specific call log from call history list. More... | |
LINPHONECXX_PUBLIC void | removeContentTypeSupport (const std::string &contentType) |
Remove support for the specified content type. More... | |
LINPHONECXX_PUBLIC void | removeFriendList (const std::shared_ptr< linphone::FriendList > &list) |
Removes a friend list. More... | |
LINPHONECXX_PUBLIC linphone::Status | removeFromConference (const std::shared_ptr< linphone::Call > &call) |
Remove a call from the conference. More... | |
LINPHONECXX_PUBLIC void | removeLdap (const std::shared_ptr< linphone::Ldap > &ldap) |
Remove a LDAP from the configuration. More... | |
LINPHONECXX_PUBLIC void | removeLinphoneSpec (const std::string &spec) |
Remove the given linphone specs from the list of functionalities the linphone client supports. More... | |
LINPHONECXX_PUBLIC void | removeProxyConfig (const std::shared_ptr< linphone::ProxyConfig > &config) |
Removes a proxy configuration. More... | |
LINPHONECXX_PUBLIC void | removeSupportedTag (const std::string &tag) |
Remove a supported tag. More... | |
LINPHONECXX_PUBLIC void | resetEchoCancellationCalibration () |
Clears all state resulting from a previous echo canceller calibration procedure, which restores default policy and settings for echo cancellation. More... | |
LINPHONECXX_PUBLIC void | resetMissedCallsCount () |
Reset the counter of missed calls. | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatRoom > | searchChatRoom (const std::shared_ptr< const linphone::ChatRoomParams > ¶ms, const std::shared_ptr< const linphone::Address > &localAddr, const std::shared_ptr< const linphone::Address > &remoteAddr, const std::list< std::shared_ptr< linphone::Address >> &participants) const |
Find a chat room. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Conference > | searchConference (const std::shared_ptr< const linphone::ConferenceParams > ¶ms, const std::shared_ptr< const linphone::Address > &localAddr, const std::shared_ptr< const linphone::Address > &remoteAddr, const std::list< std::shared_ptr< linphone::Address >> &participants) const |
Find a conference. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Conference > | searchConference (const std::shared_ptr< const linphone::Address > &conferenceAddr) const |
Find a conference. More... | |
LINPHONECXX_PUBLIC void | setAudioPortRange (int minPort, int maxPort) |
Sets the UDP port range from which to randomly select the port used for audio streaming. More... | |
LINPHONECXX_PUBLIC void | setQrcodeDecodeRect (const int x, const int y, const int w, const int h) |
Set the rectangle where the decoder will search a QRCode. More... | |
LINPHONECXX_PUBLIC void | setTextPortRange (int minPort, int maxPort) |
Sets the UDP port range from which to randomly select the port used for text streaming. More... | |
LINPHONECXX_PUBLIC void | setTone (linphone::ToneID toneId, const std::string &audiofile) |
Assign an audio file to be played as a specific tone id. More... | |
LINPHONECXX_PUBLIC void | setUserAgent (const std::string &name, const std::string &version) |
Set the user agent string used in SIP messages. More... | |
LINPHONECXX_PUBLIC void | setVideoPortRange (int minPort, int maxPort) |
Sets the UDP port range from which to randomly select the port used for video streaming. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | soundDeviceCanCapture (const std::string &device) |
Tells whether a specified sound device can capture sound. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | soundDeviceCanPlayback (const std::string &device) |
Tells whether a specified sound device can play sound. More... | |
LINPHONECXX_PUBLIC bool | soundResourcesLocked () |
Check if a call will need the sound resources in near future (typically an outgoing call that is awaiting response). More... | |
LINPHONECXX_PUBLIC linphone::Status | start () |
Start a Core object after it has been instantiated and not automatically started. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | startConferenceRecording (const std::string &path) |
Start recording the running conference. More... | |
LINPHONECXX_PUBLIC linphone::Status | startEchoCancellerCalibration () |
Starts an echo calibration of the sound devices, in order to find adequate settings for the echo canceler automatically. More... | |
LINPHONECXX_PUBLIC linphone::Status | startEchoTester (unsigned int rate) |
Start the simulation of call to test the latency with an external device. More... | |
LINPHONECXX_PUBLIC void | stop () |
Stop a Core object after it has been instantiated and started. More... | |
LINPHONECXX_PUBLIC void | stopAsync () |
Stop asynchronously a Core object after it has been instantiated and started. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | stopConferenceRecording () |
Stop recording the running conference. More... | |
LINPHONECXX_PUBLIC void | stopDtmf () |
Stops playing a dtmf started by playDtmf(). | |
LINPHONECXX_PUBLIC linphone::Status | stopEchoTester () |
Stop the simulation of call. | |
LINPHONECXX_PUBLIC 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. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Event > | subscribe (const std::shared_ptr< linphone::Address > &resource, const std::string &event, int expires, const std::shared_ptr< const linphone::Content > &body) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body. More... | |
LINPHONECXX_PUBLIC linphone::Status | takePreviewSnapshot (const std::string &file) |
Take a photo of currently from capture device and write it into a jpeg file. More... | |
LINPHONECXX_PUBLIC linphone::Status | terminateAllCalls () |
Terminates all the calls. More... | |
LINPHONECXX_PUBLIC linphone::Status | terminateConference () |
Terminate the running conference. More... | |
LINPHONECXX_PUBLIC void | uploadLogCollection () |
Upload the log collection to the configured server url. | |
LINPHONECXX_PUBLIC void | usePreviewWindow (bool yesno) |
Tells the core to use a separate window for local camera preview video, instead of inserting local view within the remote video window. More... | |
LINPHONECXX_PUBLIC void | verifyServerCertificates (bool yesno) |
Specify whether the tls server certificate must be verified when connecting to a SIP/TLS server. More... | |
LINPHONECXX_PUBLIC void | verifyServerCn (bool yesno) |
Specify whether the tls server certificate common name must be verified when connecting to a SIP/TLS server. More... | |
LINPHONECXX_PUBLIC bool | videoSupported () |
Test if video is supported. More... | |
Static Public Member Functions | |
static LINPHONECXX_PUBLIC std::string | compressLogCollection () |
Compress the log collection in a single file. More... | |
static LINPHONECXX_PUBLIC void | enableLogCollection (linphone::LogCollectionState state) |
Enable the linphone core log collection to upload logs on a server. More... | |
static LINPHONECXX_PUBLIC size_t | getLogCollectionMaxFileSize () |
Get the max file size in bytes of the files used for log collection. More... | |
static LINPHONECXX_PUBLIC std::string | getLogCollectionPath () |
Get the path where the log files will be written for log collection. More... | |
static LINPHONECXX_PUBLIC std::string | getLogCollectionPrefix () |
Get the prefix of the filenames that will be used for log collection. More... | |
static LINPHONECXX_PUBLIC bool | getPostQuantumAvailable () |
Are PostQuantum algoritms available. More... | |
static LINPHONECXX_PUBLIC std::string | getVersion () |
Returns liblinphone's version as a string. More... | |
static LINPHONECXX_PUBLIC linphone::LogCollectionState | logCollectionEnabled () |
Tells whether the linphone core log collection is enabled. More... | |
static LINPHONECXX_PUBLIC void | resetLogCollection () |
Reset the log collection by removing the log files. | |
static LINPHONECXX_PUBLIC void | serializeLogs () |
Enable logs serialization (output logs from either the thread that creates the linphone core or the thread that calls iterate()). More... | |
static LINPHONECXX_PUBLIC void | setLogCollectionMaxFileSize (size_t size) |
Set the max file size in bytes of the files used for log collection. More... | |
static LINPHONECXX_PUBLIC void | setLogCollectionPath (const std::string &path) |
Set the path of a directory where the log files will be written for log collection. More... | |
static LINPHONECXX_PUBLIC void | setLogCollectionPrefix (const std::string &prefix) |
Set the prefix of the filenames that will be used for log collection. More... | |
static LINPHONECXX_PUBLIC bool | tunnelAvailable () |
True if tunnel support was compiled. More... | |
static LINPHONECXX_PUBLIC bool | upnpAvailable () |
Return the availability of uPnP. More... | |
static LINPHONECXX_PUBLIC bool | vcardSupported () |
Tells whether VCARD support is builtin. More... | |
Friends | |
class | Factory |
Main object to instanciate and on which to keep a reference.
This object is the first object to instanciante, and will allow you to perform all kind of tasks. To create it, use either Factory::createCore() or Factory::createCoreWithConfig(), see Config for more information about factory and default config. On some platforms like Android or iOS you will need to give it the Context of your application. Once the Core is in state GlobalState::Ready, use start(). It will then go to state GlobalState::On and from that you can start using it for calls and chat messages. It is recommended to add a CoreListener listener using addListener() to monitor different events. To be able to receive events from the network, you must schedule a call iterate() often, like every 20ms. On Android & iOS isAutoIterateEnabled() is enabled by default so you don't have to worry about that unless you disable it using enableAutoIterate() or by setting in the [misc] section of your configuration auto_iterate=0.
|
strong |
LINPHONECXX_PUBLIC void linphone::Core::activateAudioSession | ( | bool | actived | ) |
Special function to indicate if the audio session is activated.
Must be called when ProviderDelegate of the callkit notifies that the audio session is activated or deactivated.
LINPHONECXX_PUBLIC bool linphone::Core::adaptiveRateControlEnabled | ( | ) | const |
Returns whether adaptive rate control is enabled.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::addAccount | ( | const std::shared_ptr< linphone::Account > & | account | ) |
Add an account.
This will start registration on the proxy, if registration is enabled.
account | the Account to add |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::addAllToConference | ( | ) |
Add all current calls into the conference.
If no conference is running a new internal conference context is created and all current calls are added to it.
LINPHONECXX_PUBLIC void linphone::Core::addAuthInfo | ( | const std::shared_ptr< const linphone::AuthInfo > & | info | ) |
LINPHONECXX_PUBLIC void linphone::Core::addContentTypeSupport | ( | const std::string & | contentType | ) |
Add support for the specified content type.
It is the application responsibility to handle it correctly afterwards.
contentType | The content type to add support for |
LINPHONECXX_PUBLIC void linphone::Core::addFriendList | ( | const std::shared_ptr< linphone::FriendList > & | list | ) |
Add a friend list.
list | FriendList object |
LINPHONECXX_PUBLIC void linphone::Core::addLdap | ( | const std::shared_ptr< linphone::Ldap > & | ldap | ) |
Add or update a LDAP server and save it to the configuration.
ldap | The LDAP to add/update. |
LINPHONECXX_PUBLIC void linphone::Core::addLinphoneSpec | ( | const std::string & | spec | ) |
Add the given linphone specs to the list of functionalities the linphone client supports.
spec | The spec to add |
LINPHONECXX_PUBLIC void linphone::Core::addListener | ( | const std::shared_ptr< CoreListener > & | listener | ) |
Add an application listener to the Core instance.
listener | the application listener |
LINPHONECXX_PUBLIC void linphone::Core::addProvisioningHeader | ( | const std::string & | headerName, |
const std::string & | value | ||
) |
Add an extra header for retrieving the remote provisioning (check setProvisioningUri()).
This can also be set from configuration file or factory config file, from[misc] section, item "config-uri-headers_X" where X is the index of the header starting by 0.
headerName | the header to use when downloading the configuration. |
value | the value to use when downloading the configuration. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::addProxyConfig | ( | const std::shared_ptr< linphone::ProxyConfig > & | config | ) |
Add a proxy configuration.
This will start registration on the proxy, if registration is enabled.
config | the ProxyConfig to add |
LINPHONECXX_PUBLIC void linphone::Core::addSupportedTag | ( | const std::string & | tag | ) |
This function controls signaling features supported by the core.
They are typically included in a SIP Supported header.
tag | The feature tag name |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::addToConference | ( | const std::shared_ptr< linphone::Call > & | call | ) |
Add a participant to the conference.
If no conference is going on a new internal conference context is created and the participant is added to it.
call | The current call with the participant to add |
LINPHONECXX_PUBLIC bool linphone::Core::agcEnabled | ( | ) | const |
Tells whether the experimental software Automatic Gain Control is activated.
This algorithm is very experimental, not usable in its current state.
LINPHONECXX_PUBLIC bool linphone::Core::alertsEnabled | ( | ) | const |
Returns whether alert reporting is enabled.
See Alert for more details.
LINPHONECXX_PUBLIC bool linphone::Core::audioAdaptiveJittcompEnabled | ( | ) |
Tells whether the audio adaptive jitter compensation is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::audioMulticastEnabled | ( | ) | const |
Use to get multicast state of audio stream.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::Core::audioRouteChanged | ( | ) |
Special function to indicate if the audio route is changed.
Must be called in the callback of AVAudioSessionRouteChangeNotification.
LINPHONECXX_PUBLIC bool linphone::Core::autoDownloadIcalendarsEnabled | ( | ) |
Gets if the auto download for incoming icalendars is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::autoDownloadVoiceRecordingsEnabled | ( | ) |
Gets if the auto download for incoming voice recordings is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::autoIterateEnabled | ( | ) | const |
Gets whether auto iterate is enabled or not (Android & iOS only).
LINPHONECXX_PUBLIC bool linphone::Core::automaticHttpProxyDetectionEnabled | ( | ) | const |
Returns whether automatic http proxy is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::autoSendRingingEnabled | ( | ) |
Gets if the automatic sending of 180 Ringing is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::callkitEnabled | ( | ) | const |
Special function to check if the callkit is enabled, False by default.
LINPHONECXX_PUBLIC bool linphone::Core::callToneIndicationsEnabled | ( | ) | const |
Check whether tone indications of calls are enabled.
LINPHONECXX_PUBLIC bool linphone::Core::capabilityNegociationEnabled | ( | ) | const |
Check if the capability negotiation (RFC5939) is supported or not.
LINPHONECXX_PUBLIC bool linphone::Core::capabilityNegotiationReinviteEnabled | ( | ) | const |
Check if the capability negotiation (RFC5939) reINVITE is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::cfgLinesMergingEnabled | ( | ) | const |
Check if cfg lines are going to the merged if the capability negotiation (RFC5939) is supported or not.
LINPHONECXX_PUBLIC bool linphone::Core::chatEnabled | ( | ) | const |
Returns whether chat is enabled.
LINPHONECXX_PUBLIC linphone::ChatRoom::EphemeralMode linphone::Core::chatRoomGetDefaultEphemeralMode | ( | ) | const |
Gets the default ephemeral message mode core the linphone core.
LINPHONECXX_PUBLIC void linphone::Core::chatRoomSetDefaultEphemeralMode | ( | linphone::ChatRoom::EphemeralMode | mode | ) |
Sets the default ephemeral message mode.
mode | default ephemeral message mode ChatRoom::EphemeralMode |
LINPHONECXX_PUBLIC void linphone::Core::checkForUpdate | ( | const std::string & | currentVersion | ) |
Checks if a new version of the application is available.
currentVersion | The current version of the application |
|
static |
Compress the log collection in a single file.
LINPHONECXX_PUBLIC bool linphone::Core::conferenceIcsInMessageBodyEnabled | ( | ) | const |
Gets wether conference invitations will be sent in the chat message body or as a file attachment.
LINPHONECXX_PUBLIC bool linphone::Core::conferenceServerEnabled | ( | ) | const |
Tells whether the conference server feature is enabled.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::configSync | ( | ) |
Writes the config file to disk.
LINPHONECXX_PUBLIC void linphone::Core::configureAudioSession | ( | ) |
Special function to configure audio session with default settings.
Must be called in ProviderDelegate's callbacks when answer an incoming call and start an outgoing call.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Account> linphone::Core::createAccount | ( | const std::shared_ptr< linphone::AccountParams > & | params | ) |
Create an account using given parameters, see createAccountParams().
params | AccountParams object |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::AccountCreator> linphone::Core::createAccountCreator | ( | const std::string & | xmlrpcUrl | ) |
Create a AccountCreator and set Linphone Request callbacks.
xmlrpcUrl | The URL to the XML-RPC server. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::AccountParams> linphone::Core::createAccountParams | ( | ) |
Create an account params using default values from Linphone core.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Address> linphone::Core::createAddress | ( | const std::string & | address | ) |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallLog> linphone::Core::createCallLog | ( | const std::shared_ptr< linphone::Address > & | from, |
const std::shared_ptr< linphone::Address > & | to, | ||
linphone::Call::Dir | dir, | ||
int | duration, | ||
time_t | startTime, | ||
time_t | connectedTime, | ||
linphone::Call::Status | status, | ||
bool | videoEnabled, | ||
float | quality | ||
) |
Creates a fake CallLog.
from | Address of caller |
to | Address of callee |
dir | Call::Dir of call |
duration | call length in seconds |
startTime | timestamp of call start time |
connectedTime | timestamp of call connection |
status | Call::Status of call |
videoEnabled | whether video was enabled or not for this call |
quality | call quality |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallParams> linphone::Core::createCallParams | ( | const std::shared_ptr< linphone::Call > & | call | ) |
Create a CallParams suitable for inviteWithParams(), linphone_core_accept_call_with_params, linphone_core_accept_early_media_with_params or linphone_core_accept_call_update.
The parameters are initialized according to the current Core configuration and the last used local CallParams, the ones passed through Call::update(), Call::acceptWithParams() or linphone_call_accept_update_with_params().
call | Call for which the parameters are to be build, or nullptr in the case where the parameters are to be used for a new outgoing call. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ChatRoom> linphone::Core::createChatRoom | ( | const std::shared_ptr< const linphone::ChatRoomParams > & | params, |
const std::shared_ptr< const linphone::Address > & | localAddr, | ||
const std::list< std::shared_ptr< linphone::Address >> & | participants | ||
) |
Create a chat room.
params | The chat room creation parameters ChatRoomParams |
localAddr | Address representing the local proxy configuration to use for the chat room creation or nullptr |
participants | The initial list of participants of the chat room. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createChatRoom | ( | const std::shared_ptr< const linphone::ChatRoomParams > & | params, |
const std::shared_ptr< const linphone::Address > & | localAddr, | ||
const std::string & | subject, | ||
const std::list< std::shared_ptr< linphone::Address >> & | participants | ||
) |
Create a chat room.
params | The chat room creation parameters ChatRoomParams |
localAddr | Address representing the local proxy configuration to use for the chat room creation |
subject | The subject of the group chat room |
participants | The initial list of participants of the chat room |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createChatRoom | ( | const std::shared_ptr< const linphone::ChatRoomParams > & | params, |
const std::string & | subject, | ||
const std::list< std::shared_ptr< linphone::Address >> & | participants | ||
) |
Create a chat room.
params | The chat room creation parameters ChatRoomParams |
participants | The initial list of participants of the chat room. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createChatRoom | ( | const std::string & | subject, |
const std::list< std::shared_ptr< linphone::Address >> & | participants | ||
) |
subject | The subject of the group chat room |
participants | The initial list of participants of the chat room. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createChatRoom | ( | const std::shared_ptr< const linphone::ChatRoomParams > & | params, |
const std::shared_ptr< const linphone::Address > & | localAddr, | ||
const std::shared_ptr< const linphone::Address > & | participant | ||
) |
params | The chat room creation parameters ChatRoomParams |
localAddr | Address representing the local proxy configuration to use for the chat room creation |
participant | Address representing the initial participant to add to the chat room |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createChatRoom | ( | const std::shared_ptr< const linphone::Address > & | participant | ) |
participant | Address representing the initial participant to add to the chat room |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createClientGroupChatRoom | ( | const std::string & | subject, |
bool | fallback | ||
) |
Create a client-side group chat room.
When calling this function the chat room is only created at the client-side and is empty. You need to call ChatRoom::addParticipants() to create at the server side and add participants to it. Also, the created chat room will not be a one-to-one chat room even if ChatRoom::addParticipants() is called with only one participant.
subject | The subject of the group chat room |
fallback | Boolean value telling whether we should plan on being able to fallback to a basic chat room if the client-side group chat room creation fails |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::createClientGroupChatRoom | ( | const std::string & | subject, |
bool | fallback, | ||
bool | encrypted | ||
) |
Create a client-side group chat room.
When calling this function the chat room is only created at the client-side and is empty. You need to call ChatRoom::addParticipants() to create at the server side and add participants to it. Also, the created chat room will not be a one-to-one chat room even if ChatRoom::addParticipants() is called with only one participant.
subject | The subject of the group chat room |
fallback | Boolean value telling whether we should plan on being able to fallback to a basic chat room if the client-side group chat room creation fails |
encrypted | Boolean value telling whether we should apply encryption or not on chat messages sent and received on this room. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ConferenceParams> linphone::Core::createConferenceParams | ( | const std::shared_ptr< linphone::Conference > & | conference | ) |
Create some default conference parameters for instanciating a conference with createConferenceWithParams().
conference | Conference for which the parameters are to be build, or nullptr in the case where the parameters are to be used for a new conference. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ConferenceScheduler> linphone::Core::createConferenceScheduler | ( | ) |
Create a conference scheduler that can be used to create remote conferences for now or later and then send conference info as an ICS through chat.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Conference> linphone::Core::createConferenceWithParams | ( | const std::shared_ptr< const linphone::ConferenceParams > & | params | ) |
Create a conference.
Local or remote conference is determinated from the 'conference_type' variable in the 'misc' section of the configuration, or by the factory address parameter. See ConferenceParams::setConferenceFactoryAddress() for more details.
params | Parameters of the conference. See ConferenceParams. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Config> linphone::Core::createConfig | ( | const std::string & | filename | ) |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Content> linphone::Core::createContent | ( | ) |
Create a content with default values from Linphone core.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ChatRoomParams> linphone::Core::createDefaultChatRoomParams | ( | ) |
Creates and returns the default chat room parameters.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Friend> linphone::Core::createFriend | ( | ) |
Create a default LinphoneFriend.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::FriendList> linphone::Core::createFriendList | ( | ) |
Create a new empty FriendList object.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Friend> linphone::Core::createFriendWithAddress | ( | const std::string & | address | ) |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::InfoMessage> linphone::Core::createInfoMessage | ( | ) |
Creates an empty info message.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Ldap> linphone::Core::createLdap | ( | ) |
Create an empty LDAP search.
Ldap::setParams() must be call to save the parameters in the configuration file.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::LdapParams> linphone::Core::createLdapParams | ( | ) |
Create a LDAP params using default values from Linphone core.
Check #linphone_ldap_params to update values. In order to add a new LDAP configuration to Magic search, these parameters must be passed to linphone_core_create_ldap_with_params. Or, use Ldap::setParams(). The newly created LDAP from createLdap().
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Ldap> linphone::Core::createLdapWithParams | ( | const std::shared_ptr< linphone::LdapParams > & | params | ) |
Create a LDAP search using given parameters and store them in the configuration file.
params | LdapParams object |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Player> linphone::Core::createLocalPlayer | ( | const std::string & | soundCardName, |
const std::string & | videoDisplayName, | ||
void * | windowId | ||
) |
Create an independent media file player.
This player support WAVE and MATROSKA formats.
soundCardName | Playback sound card. If nullptr, the ringer sound card set in Core will be used |
videoDisplayName | Video display. If nullptr, the video display set in Core will be used |
windowId | Id of the drawing window. Depend of video out |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::MagicSearch> linphone::Core::createMagicSearch | ( | ) |
Create a MagicSearch object.
LINPHONECXX_PUBLIC void* linphone::Core::createNativePreviewWindowId | ( | ) |
Create a native window handle for the video preview window.
see setNativeVideoWindowId() for details about window_id MSQOgl can be used for the creation. createNativePreviewWindowId() returns a #QQuickFramebufferObject::Renderer. This object must be returned by your QQuickFramebufferObject::createRenderer() overload for Qt. setNativePreviewWindowId() must be called with this object after the creation. Note : Qt blocks GUI thread when calling createRenderer(), so it is safe to call linphone functions there if needed.
LINPHONECXX_PUBLIC void* linphone::Core::createNativeVideoWindowId | ( | ) | const |
Create a native window handle for the video window.
see setNativeVideoWindowId() for details about window_id MSQOgl can be used for the creation. createNativeVideoWindowId() returns a #QQuickFramebufferObject::Renderer. This object must be returned by your QQuickFramebufferObject::createRenderer() overload for Qt. setNativeVideoWindowId() must be called with this object after the creation. Note : Qt blocks GUI thread when calling createRenderer(), so it is safe to call linphone functions there if needed.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::NatPolicy> linphone::Core::createNatPolicy | ( | ) |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::createNotify | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::string & | event | ||
) |
Create an out-of-dialog notification, specifying the destination resource, the event name.
The notification can be send with Event::notify().
resource | the destination resource |
event | the event name |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::createOneShotPublish | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::string & | event | ||
) |
Create a publish context for a one-shot publish.
After being created, the publish must be sent using Event::sendPublish(). The Event is automatically terminated when the publish transaction is finished, either with success or failure. The application must not call Event::terminate() for such one-shot publish.
resource | the resource uri for the event |
event | the event name |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceActivity> linphone::Core::createPresenceActivity | ( | linphone::PresenceActivity::Type | acttype, |
const std::string & | description | ||
) |
Create a PresenceActivity with the given type and description.
acttype | The PresenceActivity::Type to set for the activity. |
description | An additional description of the activity to set for the activity. Can be nullptr if no additional description is to be added. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceModel> linphone::Core::createPresenceModel | ( | ) |
Create a default LinphonePresenceModel.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceModel> linphone::Core::createPresenceModelWithActivity | ( | linphone::PresenceActivity::Type | acttype, |
const std::string & | description | ||
) |
Create a PresenceModel with the given activity type and activity description.
acttype | The PresenceActivity::Type to set for the activity of the created model. |
description | An additional description of the activity to set for the activity. Can be nullptr if no additional description is to be added. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceModel> linphone::Core::createPresenceModelWithActivityAndNote | ( | linphone::PresenceActivity::Type | acttype, |
const std::string & | description, | ||
const std::string & | note, | ||
const std::string & | lang | ||
) |
Create a PresenceModel with the given activity type, activity description, note content and note language.
acttype | The PresenceActivity::Type to set for the activity of the created model. |
description | An additional description of the activity to set for the activity. Can be nullptr if no additional description is to be added. |
note | The content of the note to be added to the created model. |
lang | The language of the note to be added to the created model. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceNote> linphone::Core::createPresenceNote | ( | const std::string & | content, |
const std::string & | lang | ||
) |
Create a PresenceNote with the given content and language.
content | The content of the note to be created. |
lang | The language of the note to be created. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresencePerson> linphone::Core::createPresencePerson | ( | const std::string & | id | ) |
Create a PresencePerson with the given id.
id | The id of the person to be created. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceService> linphone::Core::createPresenceService | ( | const std::string & | id, |
linphone::PresenceBasicStatus | basicStatus, | ||
const std::string & | contact | ||
) |
Create a PresenceService with the given id, basic status and contact.
id | The id of the service to be created. |
basicStatus | The basic status of the service to be created. |
contact | A string containing a contact information corresponding to the service to be created. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Address> linphone::Core::createPrimaryContactParsed | ( | ) |
Same as getPrimaryContact() but the result is a Address object instead of const char *.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ProxyConfig> linphone::Core::createProxyConfig | ( | ) |
Create a proxy config with default values from Linphone core.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::createPublish | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::string & | event, | ||
int | expires | ||
) |
Create a publish context for an event state.
After being created, the publish must be sent using Event::sendPublish(). After expiry, the publication is refreshed unless it is terminated before.
resource | the resource uri for the event |
event | the event name |
expires | the lifetime of event being published, -1 if no associated duration, in which case it will not be refreshed. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Recorder> linphone::Core::createRecorder | ( | const std::shared_ptr< linphone::RecorderParams > & | params | ) |
Create a media file recorder.
This recorder support WAVE and MATROSKA formats.
params | The RecorderParams that will contains all recorder parameters. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::RecorderParams> linphone::Core::createRecorderParams | ( | ) | const |
Create a recorder params that will hold parameters.
This recorder support WAVE and MATROSKA formats.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::createSubscribe | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::string & | event, | ||
int | expires | ||
) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
If accepted, the subscription runs for a finite period, but is automatically renewed if not terminated before. Unlike subscribe() the subscription isn't sent immediately. It will be send when calling Event::sendSubscribe().
resource | the destination resource |
event | the event name |
expires | the whished duration of the subscription |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::createSubscribe | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::shared_ptr< linphone::ProxyConfig > & | proxy, | ||
const std::string & | event, | ||
int | expires | ||
) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
If accepted, the subscription runs for a finite period, but is automatically renewed if not terminated before. Unlike subscribe() the subscription isn't sent immediately. It will be send when calling Event::sendSubscribe().
resource | the destination resource |
proxy | the proxy configuration to use |
event | the event name |
expires | the whished duration of the subscription |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::XmlRpcSession> linphone::Core::createXmlRpcSession | ( | const std::string & | url | ) |
Create a XmlRpcSession for a given url.
url | The URL to the XML-RPC server. Must be NON nullptr. |
LINPHONECXX_PUBLIC void linphone::Core::deleteChatRoom | ( | const std::shared_ptr< linphone::ChatRoom > & | chatRoom | ) |
Removes a chatroom including all message history from the LinphoneCore.
chatRoom | A ChatRoom object |
LINPHONECXX_PUBLIC void linphone::Core::deleteConferenceInformation | ( | const std::shared_ptr< linphone::ConferenceInfo > & | conferenceInfo | ) |
Deletes a conference information from DB.
conferenceInfo | the ConferenceInfo to delete. |
LINPHONECXX_PUBLIC void linphone::Core::didRegisterForRemotePush | ( | void * | deviceToken | ) |
Sets device_token when application didRegisterForRemoteNotificationsWithDeviceToken (IOS only).
deviceToken | (NSData *). |
LINPHONECXX_PUBLIC void linphone::Core::didRegisterForRemotePushWithStringifiedToken | ( | const std::string & | deviceTokenStr | ) |
Sets device_token when application didRegisterForRemoteNotificationsWithDeviceToken (IOS only).
deviceTokenStr | extracted from the Data objectf received in didRegisterForRemoteNotificationsWithDeviceToken ios function. Append ":remote" after data formating.. |
LINPHONECXX_PUBLIC void linphone::Core::disableChat | ( | linphone::Reason | denyReason | ) |
Inconditionnaly disable incoming chat messages.
denyReason | the deny reason (Reason::None has no effect). |
LINPHONECXX_PUBLIC bool linphone::Core::dnsSearchEnabled | ( | ) | const |
Tells whether DNS search (use of local domain if the fully qualified name did return results) is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::dnsSrvEnabled | ( | ) | const |
Tells whether DNS SRV resolution is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::echoCancellationEnabled | ( | ) | const |
Returns true if echo cancellation is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::echoLimiterEnabled | ( | ) | const |
Tells whether echo limiter is enabled.
Enables or disable echo limiter. "Echo limiter" refers to an algorithm that creates half-duplex conversation in order to suppress echo. It is experimental and shall be used only in rare cases where echo cancellation cannot perform because of non-linear speaker/mic coupling. You shall not expected good audio quality with the echo limiter.
LINPHONECXX_PUBLIC void linphone::Core::enableAdaptiveRateControl | ( | bool | enabled | ) |
Enable adaptive rate control.
Adaptive rate control consists in using RTCP feedback provided information to dynamically control the output bitrate of the audio and video encoders, so that we can adapt to the network conditions and available bandwidth. Control of the audio encoder is done in case of audio-only call, and control of the video encoder is done for audio & video calls. Adaptive rate control feature is enabled by default.
enabled | true to enable adaptive rate control, false otherwise |
LINPHONECXX_PUBLIC void linphone::Core::enableAgc | ( | bool | val | ) |
Enable the experimental software Automatic Gain Control.
This algorithm is very experimental, not usable in its current state. Automatic Gain Control is usally provided by sound devices, typically on iOS and Android.
val | a boolean value |
LINPHONECXX_PUBLIC void linphone::Core::enableAlerts | ( | bool | enable | ) |
Enable alerts.
See Alert for more details.
enable | whether alert reporting is enabled or not. |
LINPHONECXX_PUBLIC void linphone::Core::enableAudioAdaptiveJittcomp | ( | bool | enable | ) |
Enable or disable the audio adaptive jitter compensation.
enable | true to enable the audio adaptive jitter compensation, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableAudioMulticast | ( | bool | yesno | ) |
Use to enable multicast rtp for audio stream.
If enabled, outgoing calls put a multicast address from getVideoMulticastAddr() into audio cline. In case of outgoing call audio stream is sent to this multicast address. For incoming calls behavior is unchanged.
yesno | if yes, subsequent calls will propose multicast ip set by setAudioMulticastAddr() |
LINPHONECXX_PUBLIC void linphone::Core::enableAutoDownloadIcalendars | ( | bool | autoDownloadIcalendars | ) |
Auto download files attach to a chat message if it's content type matches the one we use for icalendars.
autoDownloadIcalendars | true to automatically download incoming icalendars, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableAutoDownloadVoiceRecordings | ( | bool | autoDownloadVoiceRecordings | ) |
Auto download files attach to a chat message if it's content type matches the one we use for voice recordings.
autoDownloadVoiceRecordings | true to automatically download incoming voice recordings, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableAutoIterate | ( | bool | enable | ) |
LINPHONECXX_PUBLIC void linphone::Core::enableAutomaticHttpProxyDetection | ( | bool | enable | ) |
Enables or disables automatic http proxy detection.
enable | true if automatic http proxy is enabled or false. |
LINPHONECXX_PUBLIC void linphone::Core::enableAutoSendRinging | ( | bool | enable | ) |
Enables the automatic sending of 180 Ringing when receiving a call.
enable | true to activate the automatic 180 Ringing, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableCallkit | ( | bool | enabled | ) |
Special function to enable the callkit.
enabled | true to enable callkit, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableCallToneIndications | ( | bool | yesno | ) | const |
Enables or disables call tone indications.
This value is taken into account from next tine call parameters are created. This feature can also be enabled per-call using CallParams.
LINPHONECXX_PUBLIC void linphone::Core::enableCapabilityNegotiationReinvite | ( | bool | enable | ) |
Define whether capability negotiation (RFC5939) reINVITE is enabled.
enable | true to enable capability negotiation reINVITE; false otherwise. |
LINPHONECXX_PUBLIC void linphone::Core::enableCfgLinesMerging | ( | bool | merge | ) |
Define whether cfg lines are going to be merged if capability negotiation (RFC5939) is supported.
merge | true to merge acfg and pcfg lines with consecutive indexes; false otherwise. |
LINPHONECXX_PUBLIC void linphone::Core::enableChat | ( | ) |
Enable reception of incoming chat messages.
By default it is enabled but it can be disabled with disableChat().
LINPHONECXX_PUBLIC void linphone::Core::enableConferenceIcsInMessageBody | ( | bool | enable | ) |
Enable sending conference invitations in the chat message body instead of as a file attachment.
enable | true to send ICS as message body, false to send it as file transfer |
LINPHONECXX_PUBLIC void linphone::Core::enableConferenceServer | ( | bool | enable | ) |
Enable the conference server feature.
This has the effect to listen of the conference factory uri to create new conferences when receiving INVITE messages there.
enable | A boolean value telling whether to enable or disable the conference server feature |
LINPHONECXX_PUBLIC void linphone::Core::enableDnsSearch | ( | bool | enable | ) |
Enable or disable DNS search (use of local domain if the fully qualified name did return results).
enable | true to enable DNS search, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableDnsSrv | ( | bool | enable | ) |
Enable or disable DNS SRV resolution.
enable | true to enable DNS SRV resolution, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableEchoCancellation | ( | bool | enable | ) |
Enables or disable echo cancellation.
Value is saved and used for subsequent calls. This actually controls software echo cancellation only. When 'enable' is set to false, software echo cancellation is disabled, but hardware one, if available, remains activated. When set to true, software echo cancellation is activated in either of these two conditions:
LINPHONECXX_PUBLIC void linphone::Core::enableEchoLimiter | ( | bool | enable | ) |
Enables or disable echo limiter.
"Echo limiter" refers to an algorithm that creates half-duplex conversation in order to suppress echo. It is experimental and shall be used only in rare cases where echo cancellation cannot perform because of non-linear speaker/mic coupling. You shall not expected good audio quality with the echo limiter.
enable | true to enable echo limiter, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableForcedIceRelay | ( | bool | enable | ) |
Artificially cause the relay path to be selected when ICE is used.
This is mainly a function for test, for example to validate that the relay service (ever TURN or media-aware SIP proxy) is working as expected. Indeed, in many cases a path through host or server reflexive candidate will be found by ICE, which makes difficult to make sure that the relay service is working as expected.
enable | boolean value |
LINPHONECXX_PUBLIC void linphone::Core::enableFriendListSubscription | ( | bool | enable | ) |
Sets whether or not to start friend lists subscription when in foreground.
enable | whether or not to enable the feature |
LINPHONECXX_PUBLIC void linphone::Core::enableGenericComfortNoise | ( | bool | enabled | ) |
Enable RFC3389 generic comfort noise algorithm (CN payload type).
It is disabled by default, because this algorithm is only relevant for legacy codecs (PCMU, PCMA, G722). Enablement requires a SDK built with full G729 support: -DENABLE_G729=ON -DENABLE_G729B_CNG=ON .
enabled | true if enabled, false otherwise. |
LINPHONECXX_PUBLIC void linphone::Core::enableIpv6 | ( | bool | enable | ) |
Turns IPv6 support on or off.
enable | A boolean value telling whether to enable IPv6 support |
LINPHONECXX_PUBLIC void linphone::Core::enableKeepAlive | ( | bool | enable | ) |
Enables signaling keep alive, small udp packet sent periodically to keep udp NAT association.
enable | A boolean value telling whether signaling keep alive is to be enabled |
LINPHONECXX_PUBLIC void linphone::Core::enableLimeX3Dh | ( | bool | enable | ) |
Tells to LinphoneCore to use LIME X3DH.
enable | A boolean value telling whether to enable or disable LIME X3DH |
|
static |
Enable the linphone core log collection to upload logs on a server.
state | LogCollectionState value telling whether to enable log collection or not. |
LINPHONECXX_PUBLIC void linphone::Core::enableMic | ( | bool | enable | ) |
Enable or disable the microphone.
This effectively enable or disable microphone (mute) for currently the running call or conference if any, as well as it applies to future currently running calls or conferences.
enable | true to enable the microphone, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableNativeRinging | ( | bool | enable | ) |
Sets whether to use the native ringing (Android only).
enable | True to enable native ringing, false otherwise |
LINPHONECXX_PUBLIC void linphone::Core::enablePushNotification | ( | bool | enable | ) |
Enable or disable push notifications on Android & iOS.
If enabled, it will try to get the push token add configure each account with push_notification_allowed set to true with push parameters. IOS: will also instanciate a PushRegistry, so make sure that your app does not instanciate one too or there will be a conflict.
enable | true to enable push notifications, false to disable |
LINPHONECXX_PUBLIC void linphone::Core::enableQrcodeVideoPreview | ( | bool | enable | ) |
Controls QRCode enablement.
enable | A boolean value telling whether the QRCode is enabled in the preview. |
LINPHONECXX_PUBLIC void linphone::Core::enableRecordAware | ( | bool | enable | ) |
Enables the record aware feature that will warn other users when recording.
enable | true to activate the record aware feature, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableRetransmissionOnNack | ( | bool | enable | ) |
Turns NACK context on or off.
enable | A boolean value telling whether to enable NACK context |
LINPHONECXX_PUBLIC void linphone::Core::enableRtpBundle | ( | bool | value | ) |
Enables or disables RTP bundle mode (Media Multiplexing).
See https://datatracker.ietf.org/doc/html/rfc8843 for more information about the feature. When enabled, liblinphone will try to negociate the use of a single port for all streams when doing an outgoing call. It automatically enables rtcp-mux. This feature can also be enabled per-call using CallParams.
value | a boolean to indicate whether the feature is to be enabled. |
LINPHONECXX_PUBLIC void linphone::Core::enableSdp200Ack | ( | bool | enable | ) |
Control when media offer is sent in SIP INVITE.
enable | true if INVITE has to be sent whitout SDP. |
LINPHONECXX_PUBLIC void linphone::Core::enableSelfView | ( | bool | enable | ) |
Enables or disable self view during calls.
enable | A boolean value telling whether to enable self view Self-view refers to having local webcam image inserted in corner of the video window during calls. This function works at any time, including during calls. |
LINPHONECXX_PUBLIC void linphone::Core::enableSenderNameHiddenInForwardMessage | ( | bool | enable | ) |
Enable whether or not to hide sender name in forward message.
enable | whether or not to enable the feature |
LINPHONECXX_PUBLIC void linphone::Core::enableSessionExpires | ( | bool | enabled | ) | const |
Enable the Session Timers support.
enabled | Enable or disable it |
LINPHONECXX_PUBLIC void linphone::Core::enableTcapLineMerging | ( | bool | merge | ) |
Define whether tcap lines are going to be merged if capability negotiation (RFC5939) is supported.
merge | true to merge tcap lines with consecutive indexes; false otherwise. |
LINPHONECXX_PUBLIC void linphone::Core::enableVideoAdaptiveJittcomp | ( | bool | enable | ) |
Enable or disable the video adaptive jitter compensation.
enable | true to enable the video adaptive jitter compensation, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableVideoCapture | ( | bool | enable | ) |
Enable or disable video capture.
This function does not have any effect during calls. It just indicates the Core to initiate future calls with video capture or not.
enable | true to enable video capture, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableVideoDisplay | ( | bool | enable | ) |
Enable or disable video display.
This function does not have any effect during calls. It just indicates the Core to initiate future calls with video display or not.
enable | true to enable video display, false to disable it. |
LINPHONECXX_PUBLIC void linphone::Core::enableVideoMulticast | ( | bool | yesno | ) |
Use to enable multicast rtp for video stream.
If enabled, outgoing calls put a multicast address from getVideoMulticastAddr() into video cline. In case of outgoing call video stream is sent to this multicast address. For incoming calls behavior is unchanged.
yesno | if yes, subsequent outgoing calls will propose multicast ip set by setVideoMulticastAddr() |
LINPHONECXX_PUBLIC void linphone::Core::enableVideoPreview | ( | bool | enable | ) |
Controls video preview enablement.
enable | A boolean value telling whether the video preview is to be shown Video preview refers to the action of displaying the local webcam image to the user while not in call. |
LINPHONECXX_PUBLIC void linphone::Core::enableVideoSourceReuse | ( | bool | enable | ) |
Enable or disable video source reuse when switching from preview to actual video call.
This source reuse is useful when you always display the preview, even before calls are initiated. By keeping the video source for the transition to a real video call, you will smooth out the source close/reopen cycle. This function does not have any effect durfing calls. It just indicates the Core to initiate future calls with video source reuse or not. Also, at the end of a video call, the source will be closed whatsoever for now.
enable | true to enable video source reuse. false to disable it for subsequent calls. |
LINPHONECXX_PUBLIC void linphone::Core::enableWifiOnly | ( | bool | enable | ) |
Turns Wifi only mode on or off.
If enabled, app won't register when active network isn't WiFi or Ethernet.
enable | A boolean value telling whether to enable IPv6 support |
LINPHONECXX_PUBLIC void linphone::Core::enableZeroRtpPortForStreamInactive | ( | bool | enable | ) |
Define whether RTP port is set to 0 when a stream is inactive.
enable | true to set the RTP port to 0 if the stream direction is inactive; false otherwise. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::Core::ensureRegistered | ( | ) |
Call this method when you receive a push notification (if you handle push notifications manually).
It will ensure the proxy configs are correctly registered to the proxy server, so the call or the message will be correctly delivered.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::Core::enterConference | ( | ) |
Join the local participant to the running conference.
LINPHONECXX_PUBLIC bool linphone::Core::fileFormatSupported | ( | const std::string & | fmt | ) |
Returns whether a specific file format is supported.
fmt | The format extension (wav, mkv). |
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::AuthInfo> linphone::Core::findAuthInfo | ( | const std::string & | realm, |
const std::string & | username, | ||
const std::string & | sipDomain | ||
) |
Find authentication info matching realm, username, domain criteria.
First of all, (realm,username) pair are searched. If multiple results (which should not happen because realm are supposed to be unique), then domain is added to the search.
realm | the authentication 'realm' (optional) |
username | the SIP username to be authenticated (mandatory) |
sipDomain | the SIP domain name (optional) |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Call> linphone::Core::findCallFromUri | ( | const std::string & | uri | ) | const |
Search from the list of current calls if a remote address match uri.
uri | which should match call remote uri |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallLog> linphone::Core::findCallLog | ( | const std::string & | callId, |
int | limit | ||
) |
Get the call log matching the call id, or nullptr if can't be found.
callId | Call id of the call log to find |
limit | Search limit of the most recent call logs to find |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallLog> linphone::Core::findCallLogFromCallId | ( | const std::string & | callId | ) |
Get the call log matching the call id, or nullptr if can't be found.
callId | Call id of the call log to find |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::findChatRoom | ( | const std::shared_ptr< const linphone::Address > & | peerAddr, |
const std::shared_ptr< const linphone::Address > & | localAddr | ||
) | const |
Find a chat room.
No reference is transfered to the application. The Core keeps a reference on the chat room.
peerAddr | a linphone address. |
localAddr | a linphone address. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ConferenceInfo> linphone::Core::findConferenceInformationFromUri | ( | const std::shared_ptr< linphone::Address > & | uri | ) |
Retrieve the conference information linked to the provided URI if any.
uri | Address of the uri. |
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::Address> > linphone::Core::findContactsByChar | ( | const std::string & | filter, |
bool | sipOnly | ||
) |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Friend> linphone::Core::findFriend | ( | const std::shared_ptr< const linphone::Address > & | address | ) | const |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Friend> linphone::Core::findFriendByPhoneNumber | ( | const std::string & | phoneNumber | ) | const |
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::Friend> > linphone::Core::findFriends | ( | const std::shared_ptr< const linphone::Address > & | address | ) | const |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::findOneToOneChatRoom | ( | const std::shared_ptr< const linphone::Address > & | localAddr, |
const std::shared_ptr< const linphone::Address > & | participantAddr, | ||
bool | encrypted | ||
) | const |
Find a one to one chat room.
No reference is transfered to the application. The Core keeps a reference on the chat room.
localAddr | a linphone address. |
participantAddr | a linphone address. |
encrypted | whether to look for an encrypted chat room or not |
LINPHONECXX_PUBLIC bool linphone::Core::forcedIceRelayEnabled | ( | ) | const |
Indicates whether the ICE relay path is forcibly selected.
LINPHONECXX_PUBLIC bool linphone::Core::friendListSubscriptionEnabled | ( | ) |
Returns whether or not friend lists subscription are enabled.
LINPHONECXX_PUBLIC bool linphone::Core::genericComfortNoiseEnabled | ( | ) | const |
Returns enablement of RFC3389 generic comfort noise algorithm.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Account> linphone::Core::getAccountByIdkey | ( | const std::string & | idkey | ) |
LINPHONECXX_PUBLIC linphone::AccountCreator::Backend linphone::Core::getAccountCreatorBackend | ( | ) | const |
Get the AccountCreator backend set for the Core.
LINPHONECXX_PUBLIC std::string linphone::Core::getAccountCreatorUrl | ( | ) |
Get the AccountCreator url on the Core.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::Account> > linphone::Core::getAccountList | ( | ) | const |
Returns an unmodifiable list of entered accounts.
LINPHONECXX_PUBLIC std::string linphone::Core::getAdaptiveRateAlgorithm | ( | ) | const |
Returns which adaptive rate algorithm is currently configured for future calls.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::AudioDevice> > linphone::Core::getAudioDevices | ( | ) | const |
Returns a list of audio devices, with only the first device for each type To have the list of all audio devices, use getExtendedAudioDevices()
LINPHONECXX_PUBLIC int linphone::Core::getAudioDscp | ( | ) | const |
Get the DSCP field for outgoing audio streams.
The DSCP defines the quality of service in IP packets.
LINPHONECXX_PUBLIC int linphone::Core::getAudioJittcomp | ( | ) |
Returns the nominal audio jitter buffer size in milliseconds.
LINPHONECXX_PUBLIC std::string linphone::Core::getAudioMulticastAddr | ( | ) | const |
Use to get multicast address to be used for audio stream.
LINPHONECXX_PUBLIC int linphone::Core::getAudioMulticastTtl | ( | ) | const |
Use to get multicast ttl to be used for audio stream.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::PayloadType> > linphone::Core::getAudioPayloadTypes | ( | ) |
Return the list of the available audio payload types.
LINPHONECXX_PUBLIC int linphone::Core::getAudioPort | ( | ) | const |
Gets the UDP port used for audio streaming.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Range> linphone::Core::getAudioPortsRange | ( | ) | const |
Get the audio port range from which is randomly chosen the UDP port used for audio streaming.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::AuthInfo> > linphone::Core::getAuthInfoList | ( | ) | const |
LINPHONECXX_PUBLIC int linphone::Core::getAutoIterateBackgroundSchedule | ( | ) | const |
Gets the timer used to schedule the call to core.iterate() method when in background (Android only).
This is only used when autoIterateEnabled() returns true.
LINPHONECXX_PUBLIC int linphone::Core::getAutoIterateForegroundSchedule | ( | ) | const |
Gets the timer used to schedule the call to core.iterate() method when in foreground (Android only).
This is only used when autoIterateEnabled() returns true.
LINPHONECXX_PUBLIC linphone::AVPFMode linphone::Core::getAvpfMode | ( | ) | const |
LINPHONECXX_PUBLIC int linphone::Core::getAvpfRrInterval | ( | ) | const |
Return the avpf report interval in seconds.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::getCallByCallid | ( | const std::string & | callId | ) | const |
Get the call by callid.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Call> linphone::Core::getCallByRemoteAddress | ( | const std::string & | remoteAddress | ) | const |
Get the call with the remote_address specified.
remoteAddress | The remote address of the call that we want to get |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::getCallByRemoteAddress2 | ( | const std::shared_ptr< const linphone::Address > & | remoteAddress | ) | const |
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::CallLog> > linphone::Core::getCallHistory | ( | const std::shared_ptr< const linphone::Address > & | peerAddress, |
const std::shared_ptr< const linphone::Address > & | localAddress | ||
) |
Get the list of call logs (past calls).
At the contrary of linphone_core_get_call_logs, it is your responsibility to unref the logs and free this list once you are done using it. Requires ENABLE_DB_STORAGE to work.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::CallLog> > linphone::Core::getCallLogs | ( | ) |
Get the list of call logs (past calls).
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::Core::getCallLogsDatabasePath | ( | ) |
Gets the database filename where call logs will be stored.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::Call> > linphone::Core::getCalls | ( | ) |
Gets the current list of calls.
Note that this list is read-only and might be changed by the core after a function call to iterate(). Similarly the Call objects inside it might be destroyed without prior notice. To hold references to Call object into your program, you must use linphone_call_ref.
LINPHONECXX_PUBLIC int linphone::Core::getCallsNb | ( | ) | const |
Get the number of Call.
LINPHONECXX_PUBLIC int linphone::Core::getCameraSensorRotation | ( | ) |
Get the camera sensor rotation.
This is needed on some mobile platforms to get the number of degrees the camera sensor is rotated relative to the screen.
LINPHONECXX_PUBLIC std::string linphone::Core::getCaptureDevice | ( | ) |
Gets the name of the currently assigned sound device for capture.
LINPHONECXX_PUBLIC bool linphone::Core::getChatMessagesAggregationEnabled | ( | ) |
Returns whether chat messages grouping is enabled or not.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::getChatRoom | ( | const std::shared_ptr< const linphone::Address > & | addr | ) |
Get a chat room whose peer is the supplied address.
If it does not exist yet, it will be created as a basic chat room. No reference is transfered to the application. The Core keeps a reference on the chat room.
addr | a linphone address. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::getChatRoom | ( | const std::shared_ptr< const linphone::Address > & | peerAddr, |
const std::shared_ptr< const linphone::Address > & | localAddr | ||
) |
Get a chat room.
If it does not exist yet, it will be created as a basic chat room. No reference is transfered to the application. The Core keeps a reference on the chat room.
peerAddr | a linphone address. |
localAddr | a linphone address. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ChatRoom> linphone::Core::getChatRoomFromUri | ( | const std::string & | to | ) |
Get a chat room for messaging from a sip uri like sip:joe@s. ip.l inpho ne.o rg
If it does not exist yet, it will be created as a basic chat room. No reference is transfered to the application. The Core keeps a reference on the chat room.
to | The destination address for messages. |
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::ChatRoom> > linphone::Core::getChatRooms | ( | ) |
Returns a list of chat rooms.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Conference> linphone::Core::getConference | ( | ) |
Get a pointer on the internal conference object.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::ConferenceInfo> > linphone::Core::getConferenceInformationList | ( | ) |
Retrieve the list of conference information on DB.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::ConferenceInfo> > linphone::Core::getConferenceInformationListAfterTime | ( | time_t | time | ) |
Retrieve the list of conference information on DB after a certain time.
time | Time to retrieve conference info. |
LINPHONECXX_PUBLIC float linphone::Core::getConferenceLocalInputVolume | ( | ) |
Get the set input volume of the local participant.
LINPHONECXX_PUBLIC linphone::Conference::ParticipantListType linphone::Core::getConferenceParticipantListType | ( | ) | const |
Tells whether the default conference participant list is open or closed.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int linphone::Core::getConferenceSize | ( | ) |
Get the number of participants including me, if it in, in the running conference.
The local participant is included in the count only if it is in the conference.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Config> linphone::Core::getConfig | ( | ) | const |
Returns the config object used to manage the storage (config) file.
LINPHONECXX_PUBLIC linphone::ConsolidatedPresence linphone::Core::getConsolidatedPresence | ( | ) | const |
Get my consolidated presence.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::getCurrentCall | ( | ) | const |
Gets the current call.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::Core::getCurrentCallRemoteAddress | ( | ) |
Get the remote address of the current call.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::VideoDefinition> linphone::Core::getCurrentPreviewVideoDefinition | ( | ) | const |
Get the effective video definition provided by the camera for the captured video.
When preview is disabled or not yet started this function returns a 0x0 video definition.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Account> linphone::Core::getDefaultAccount | ( | ) | const |
Returns the default account, that is the one used to determine the current identity.
LINPHONECXX_PUBLIC linphone::Conference::Layout linphone::Core::getDefaultConferenceLayout | ( | ) | const |
Gets the default conference layout core the linphone core.
LINPHONECXX_PUBLIC long linphone::Core::getDefaultEphemeralLifetime | ( | ) | const |
Gets the default lifetime of ephemeral messages in seconds core the linphone core.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::FriendList> linphone::Core::getDefaultFriendList | ( | ) | const |
Retrieves the first list of Friend from the core.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::AudioDevice> linphone::Core::getDefaultInputAudioDevice | ( | ) | const |
Gets the default input audio device.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::AudioDevice> linphone::Core::getDefaultOutputAudioDevice | ( | ) | const |
Gets the default output audio device.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ProxyConfig> linphone::Core::getDefaultProxyConfig | ( | ) | const |
Returns the default proxy configuration, that is the one used to determine the current identity.
LINPHONECXX_PUBLIC std::string linphone::Core::getDefaultVideoDisplayFilter | ( | ) |
Get the name of the default mediastreamer2 filter used for rendering video on the current platform.
This is for advanced users of the library, mainly to expose mediastreamer video filter name and status.
LINPHONECXX_PUBLIC int linphone::Core::getDelayedTimeout | ( | ) |
Gets the delayed timeout See setDelayedTimeout() for details.
LINPHONECXX_PUBLIC int linphone::Core::getDeviceRotation | ( | ) |
Gets the current device orientation.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::DigestAuthenticationPolicy> linphone::Core::getDigestAuthenticationPolicy | ( | ) | const |
Get the current digest authentication policy applicable for SIP and HTTP.
Get the current digest authentication policy applicable for SIP and HTTP.
LINPHONECXX_PUBLIC bool linphone::Core::getDisableRecordOnMute | ( | ) |
Get whether the microphone will be completely deactivated when muted.
Please refer to setDisableRecordOnMute().
LINPHONECXX_PUBLIC bool linphone::Core::getDnsSetByApp | ( | ) |
Tells if the DNS was set by an application.
LINPHONECXX_PUBLIC int linphone::Core::getDownloadBandwidth | ( | ) | const |
Retrieve the maximum available download bandwidth.
This value was set by setDownloadBandwidth().
LINPHONECXX_PUBLIC int linphone::Core::getDownloadPtime | ( | ) |
Get audio packetization time linphone expects to receive from peer.
A value of zero means that ptime is not specified.
LINPHONECXX_PUBLIC int linphone::Core::getEchoCancellationCalibration | ( | ) | const |
Gets the currently stored calibration delay for the software echo cancellation.
LINPHONECXX_PUBLIC std::string linphone::Core::getEchoCancellerFilterName | ( | ) | const |
Get the name of the mediastreamer2 filter used for echo cancelling.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::AudioDevice> > linphone::Core::getExtendedAudioDevices | ( | ) | const |
Returns the list of all audio devices.
LINPHONECXX_PUBLIC std::string linphone::Core::getFileTransferServer | ( | ) |
Get the globaly set http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml.
Url may be like: "https://file.linphone.org/upload.php".
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Friend> linphone::Core::getFriendByRefKey | ( | const std::string & | key | ) | const |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::FriendList> linphone::Core::getFriendListByName | ( | const std::string & | name | ) | const |
Retrieves the list of Friend from the core that has the given display name.
name | the name of the list |
LINPHONECXX_PUBLIC std::string linphone::Core::getFriendsDatabasePath | ( | ) |
Gets the database filename where friends will be stored.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::FriendList> > linphone::Core::getFriendsLists | ( | ) | const |
Retrieves the list of FriendList from the core.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::ConferenceInfo> > linphone::Core::getFutureConferenceInformationList | ( | ) |
Retrieve the list of future conference information on DB.
LINPHONECXX_PUBLIC linphone::GlobalState linphone::Core::getGlobalState | ( | ) | const |
Returns the global state of core.
LINPHONECXX_PUBLIC bool linphone::Core::getGuessHostname | ( | ) |
Returns true if hostname part of primary contact is guessed automatically.
LINPHONECXX_PUBLIC std::string linphone::Core::getHttpProxyHost | ( | ) | const |
Get http proxy address to be used for signaling.
LINPHONECXX_PUBLIC int linphone::Core::getHttpProxyPort | ( | ) | const |
Get http proxy port to be used for signaling.
LINPHONECXX_PUBLIC std::string linphone::Core::getIdentity | ( | ) |
Gets the default identity SIP address.
This is an helper function. If no default proxy is set, this will return the primary contact ( see getPrimaryContact() ). If a default proxy is set it returns the registered identity on the proxy.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ImNotifPolicy> linphone::Core::getImNotifPolicy | ( | ) | const |
Get the ImNotifPolicy object controlling the instant messaging notifications.
LINPHONECXX_PUBLIC int linphone::Core::getInCallTimeout | ( | ) |
Gets the in call timeout See setInCallTimeout() for details.
LINPHONECXX_PUBLIC int linphone::Core::getIncTimeout | ( | ) |
Returns the incoming call timeout See setIncTimeout() for details.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::AudioDevice> linphone::Core::getInputAudioDevice | ( | ) | const |
Gets the input audio device for the current call.
LINPHONECXX_PUBLIC std::string linphone::Core::getLabel | ( | ) | const |
Get the label assigned to the LinphoneCore.
The default value is nullptr (no label).
LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallLog> linphone::Core::getLastOutgoingCallLog | ( | ) |
Get the latest outgoing call log.
Conference calls are not returned by this function! Requires ENABLE_DB_STORAGE to work.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::Ldap> > linphone::Core::getLdapList | ( | ) |
Returns a list of entered LDAPs.
Items must be freed with linphone_ldap_unref
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::Core::getLimeX3DhServerUrl | ( | ) |
Get the x3dh server url.
LINPHONECXX_PUBLIC std::list<std::string> linphone::Core::getLinphoneSpecsList | ( | ) |
Get the list of linphone specs string values representing what functionalities the linphone client supports.
LINPHONECXX_PUBLIC std::list<std::string> linphone::Core::getLoadedPlugins | ( | ) |
Return the list of loaded plugins.
|
static |
Get the max file size in bytes of the files used for log collection.
|
static |
Get the path where the log files will be written for log collection.
|
static |
Get the prefix of the filenames that will be used for log collection.
LINPHONECXX_PUBLIC std::string linphone::Core::getLogCollectionUploadServerUrl | ( | ) |
Gets the url of the server where to upload the collected log files.
LINPHONECXX_PUBLIC int linphone::Core::getMaxCalls | ( | ) |
Get the maximum number of simultaneous calls Linphone core can manage at a time.
All new call above this limit are declined with a busy answer
LINPHONECXX_PUBLIC int linphone::Core::getMaxSizeForAutoDownloadIncomingFiles | ( | ) |
Gets the size under which incoming files in chat messages will be downloaded automatically.
LINPHONECXX_PUBLIC std::string linphone::Core::getMediaDevice | ( | ) |
Gets the name of the currently assigned sound device for media.
LINPHONECXX_PUBLIC linphone::MediaEncryption linphone::Core::getMediaEncryption | ( | ) | const |
Get the media encryption policy being used for RTP packets.
LINPHONECXX_PUBLIC linphone::MediaResourceMode linphone::Core::getMediaResourceMode | ( | ) | const |
This function returns the media resource mode for this core.
LINPHONECXX_PUBLIC float linphone::Core::getMicGainDb | ( | ) |
Get microphone gain in db.
LINPHONECXX_PUBLIC int linphone::Core::getMissedCallsCount | ( | ) |
Get the number of missed calls.
Once checked, this counter can be reset with resetMissedCallsCount().
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::Core::getNatAddress | ( | ) | const |
Deprecated.
Get the public IP address of NAT being used.
LINPHONECXX_PUBLIC void* linphone::Core::getNativePreviewWindowId | ( | ) |
Get the native window handle of the video preview window.
see setNativeVideoWindowId() for details about window_id There is a special case for Qt : getNativePreviewWindowId() returns a #QQuickFramebufferObject::Renderer. Note : Qt blocks GUI thread when calling createRenderer(), so it is safe to call linphone functions there if needed.
LINPHONECXX_PUBLIC void* linphone::Core::getNativeVideoWindowId | ( | ) | const |
Get the native window handle of the video window.
see linphone_core_set_native_video_window_id for details about window_id There is a special case for Qt : getNativeVideoWindowId() returns a #QQuickFramebufferObject::Renderer. Note : Qt blocks GUI thread when calling createRenderer(), so it is safe to call linphone functions there if needed.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::NatPolicy> linphone::Core::getNatPolicy | ( | ) | const |
Get The policy that is used to pass through NATs/firewalls.
It may be overridden by a NAT policy for a specific proxy config.
LINPHONECXX_PUBLIC int linphone::Core::getNortpTimeout | ( | ) | const |
Gets the value of the no-rtp timeout.
When no RTP or RTCP packets have been received for a while Core will consider the call is broken (remote end crashed or disconnected from the network), and thus will terminate the call. The no-rtp timeout is the duration above which the call is considered broken.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::AudioDevice> linphone::Core::getOutputAudioDevice | ( | ) | const |
Gets the output audio device for the current call.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PayloadType> linphone::Core::getPayloadType | ( | const std::string & | type, |
int | rate, | ||
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.
type | payload mime type (I.E SPEEX, PCMU, VP8) |
rate | can be LINPHONE_FIND_PAYLOAD_IGNORE_RATE |
channels | number of channels, can be LINPHONE_FIND_PAYLOAD_IGNORE_CHANNELS |
LINPHONECXX_PUBLIC std::string linphone::Core::getPlaybackDevice | ( | ) |
Gets the name of the currently assigned sound device for playback.
LINPHONECXX_PUBLIC float linphone::Core::getPlaybackGainDb | ( | ) |
Get playback gain in db before entering sound card.
LINPHONECXX_PUBLIC std::string linphone::Core::getPlayFile | ( | ) | const |
Get the wav file that is played when putting somebody on hold, or when files are used instead of soundcards (see setUseFiles()).
The file is a 16 bit linear wav file.
|
static |
Are PostQuantum algoritms available.
LINPHONECXX_PUBLIC float linphone::Core::getPreferredFramerate | ( | ) |
Returns the preferred video framerate, previously set by setPreferredFramerate().
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::VideoDefinition> linphone::Core::getPreferredVideoDefinition | ( | ) | const |
Get the preferred video definition for the stream that is captured and sent to the remote party.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::PresenceModel> linphone::Core::getPresenceModel | ( | ) | const |
Get my presence model.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::VideoDefinition> linphone::Core::getPreviewVideoDefinition | ( | ) | const |
Get the definition of the captured video.
LINPHONECXX_PUBLIC std::string linphone::Core::getPrimaryContact | ( | ) |
Returns the default identity when no proxy configuration is used.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Address> linphone::Core::getPrimaryContactParsed | ( | ) |
Same as getPrimaryContact() but the result is a Address object instead of const char *.
LINPHONECXX_PUBLIC std::string linphone::Core::getProvisioningUri | ( | ) | const |
Get provisioning URI.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ProxyConfig> linphone::Core::getProxyConfigByIdkey | ( | const std::string & | idkey | ) |
Search for a ProxyConfig by it's idkey.
idkey | An arbitrary idkey string associated to a proxy configuration |
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::ProxyConfig> > linphone::Core::getProxyConfigList | ( | ) | const |
Returns an unmodifiable list of entered proxy configurations.
LINPHONECXX_PUBLIC int linphone::Core::getPushIncomingCallTimeout | ( | ) | const |
Returns the push incoming call timeout See setPushIncomingCallTimeout() for details.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::PushNotificationConfig> linphone::Core::getPushNotificationConfig | ( | ) | const |
Gets the push notification configuration object if it exists.
LINPHONECXX_PUBLIC std::string linphone::Core::getRecordFile | ( | ) | const |
Get the wav file where incoming stream is recorded, when files are used instead of soundcards (see setUseFiles()).
This feature is different from call recording (CallParams::setRecordFile()) The file is a 16 bit linear wav file.
LINPHONECXX_PUBLIC std::string linphone::Core::getRemoteRingbackTone | ( | ) | const |
Get the ring back tone played to far end during incoming calls.
LINPHONECXX_PUBLIC std::string linphone::Core::getRing | ( | ) | const |
Returns the path to the wav file used for ringing.
LINPHONECXX_PUBLIC std::string linphone::Core::getRingback | ( | ) | const |
Returns the path to the wav file used for ringing back.
LINPHONECXX_PUBLIC std::string linphone::Core::getRingerDevice | ( | ) |
Gets the name of the currently assigned sound device for ringing.
LINPHONECXX_PUBLIC std::string linphone::Core::getRootCa | ( | ) |
Gets the path to a file or folder containing the trusted root CAs (PEM format)
LINPHONECXX_PUBLIC int linphone::Core::getSipDscp | ( | ) | const |
Get the DSCP field for SIP signaling channel.
The DSCP defines the quality of service in IP packets.
LINPHONECXX_PUBLIC int linphone::Core::getSipTransportTimeout | ( | ) |
Get the SIP transport timeout, which represents the maximum time permitted to establish a connection to a SIP server.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::list<std::string> linphone::Core::getSoundDevicesList | ( | ) | const |
Gets the list of the available sound devices.
LINPHONECXX_PUBLIC std::string linphone::Core::getSrtpCryptoSuites | ( | ) |
Get the crypto suites available to the core.
LINPHONECXX_PUBLIC std::string linphone::Core::getStaticPicture | ( | ) |
Get the path to the image file streamed when "Static picture" is set as the video device.
LINPHONECXX_PUBLIC float linphone::Core::getStaticPictureFps | ( | ) |
Get the frame rate for static picture.
LINPHONECXX_PUBLIC std::string linphone::Core::getStunServer | ( | ) | const |
Get the STUN server address being used.
LINPHONECXX_PUBLIC std::list<std::string> linphone::Core::getSupportedFileFormatsList | ( | ) | const |
Returns a null terminated table of strings containing the file format extension supported for call recording.
LINPHONECXX_PUBLIC linphone::SupportLevel linphone::Core::getTag100RelSupportLevel | ( | ) | const |
Get the support level of the 100rel attribute.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::PayloadType> > linphone::Core::getTextPayloadTypes | ( | ) |
Return the list of the available text payload types.
LINPHONECXX_PUBLIC int linphone::Core::getTextPort | ( | ) | const |
Gets the UDP port used for text streaming.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Range> linphone::Core::getTextPortsRange | ( | ) | const |
Get the text port range from which is randomly chosen the UDP port used for text streaming.
LINPHONECXX_PUBLIC std::string linphone::Core::getTlsCert | ( | ) | const |
Gets the TLS certificate.
LINPHONECXX_PUBLIC std::string linphone::Core::getTlsCertPath | ( | ) | const |
Gets the path to the TLS certificate file.
LINPHONECXX_PUBLIC std::string linphone::Core::getTlsKey | ( | ) | const |
Gets the TLS key.
LINPHONECXX_PUBLIC std::string linphone::Core::getTlsKeyPath | ( | ) | const |
Gets the path to the TLS key file.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Transports> linphone::Core::getTransports | ( | ) |
Retrieves the port configuration used for each transport (udp, tcp, tls).
A zero value port for a given transport means the transport is not used. A value of LC_SIP_TRANSPORT_RANDOM (-1) means the port is to be chosen randomly by the system. A value of LC_SIP_TRANSPORT_DONTBIND (-2) means that the socket will not be bound explicitely, in other words liblinphone won't listen for incoming connections at all. This mode is suitable for a pure client application (ex: a mobile application).
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Transports> linphone::Core::getTransportsUsed | ( | ) |
Retrieves the real port number assigned for each sip transport (udp, tcp, tls).
A zero value means that the transport is not activated. If LC_SIP_TRANSPORT_RANDOM was passed to linphone_core_set_sip_transports, the random port choosed by the system is returned.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Tunnel> linphone::Core::getTunnel | ( | ) | const |
get tunnel instance if available
LINPHONECXX_PUBLIC int linphone::Core::getUnreadChatMessageCount | ( | ) | const |
Return the global unread chat message count.
LINPHONECXX_PUBLIC int linphone::Core::getUnreadChatMessageCountFromActiveLocals | ( | ) | const |
Return the unread chat message count for all active local address.
(Primary contact + proxy configs.)
LINPHONECXX_PUBLIC int linphone::Core::getUnreadChatMessageCountFromLocal | ( | const std::shared_ptr< const linphone::Address > & | address | ) | const |
Return the unread chat message count for a given local address.
address | Address object. |
LINPHONECXX_PUBLIC int linphone::Core::getUploadBandwidth | ( | ) | const |
Retrieve the maximum available upload bandwidth.
This value was set by setUploadBandwidth().
LINPHONECXX_PUBLIC int linphone::Core::getUploadPtime | ( | ) |
Set audio packetization time linphone will send (in absence of requirement from peer) A value of 0 stands for the current codec default packetization time.
LINPHONECXX_PUBLIC std::string linphone::Core::getUpnpExternalIpaddress | ( | ) | const |
Return the external ip address of router.
In some cases the uPnP can have an external ip address but not a usable uPnP (state different of Ok).
LINPHONECXX_PUBLIC linphone::UpnpState linphone::Core::getUpnpState | ( | ) | const |
Return the internal state of uPnP.
LINPHONECXX_PUBLIC bool linphone::Core::getUseFiles | ( | ) |
Gets whether linphone is currently streaming audio from and to files, rather than using the soundcard.
LINPHONECXX_PUBLIC bool linphone::Core::getUseInfoForDtmf | ( | ) |
Indicates whether SIP INFO is used to send digits.
LINPHONECXX_PUBLIC std::string linphone::Core::getUserAgent | ( | ) |
Gets the user-agent as a string.
LINPHONECXX_PUBLIC std::string linphone::Core::getUserCertificatesPath | ( | ) |
Get the path to the directory storing the user's certificates.
LINPHONECXX_PUBLIC bool linphone::Core::getUseRfc2833ForDtmf | ( | ) |
Indicates whether RFC2833 is used to send digits.
|
static |
Returns liblinphone's version as a string.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::VideoActivationPolicy> linphone::Core::getVideoActivationPolicy | ( | ) | const |
Get the default policy for video.
See setVideoActivationPolicy() for more details.
LINPHONECXX_PUBLIC linphone::CodecPriorityPolicy linphone::Core::getVideoCodecPriorityPolicy | ( | ) | const |
Get the current priority policy for video codecs (payload types).
See CodecPriorityPolicy for more details.
LINPHONECXX_PUBLIC std::string linphone::Core::getVideoDevice | ( | ) | const |
Returns the name of the currently active video device.
LINPHONECXX_PUBLIC std::list<std::string> linphone::Core::getVideoDevicesList | ( | ) | const |
Gets the list of the available video capture devices.
LINPHONECXX_PUBLIC std::string linphone::Core::getVideoDisplayFilter | ( | ) |
Get the name of the mediastreamer2 filter used for rendering video.
LINPHONECXX_PUBLIC int linphone::Core::getVideoDscp | ( | ) | const |
Get the DSCP field for outgoing video streams.
The DSCP defines the quality of service in IP packets.
LINPHONECXX_PUBLIC int linphone::Core::getVideoJittcomp | ( | ) |
Returns the nominal video jitter buffer size in milliseconds.
LINPHONECXX_PUBLIC std::string linphone::Core::getVideoMulticastAddr | ( | ) | const |
Use to get multicast address to be used for video stream.
LINPHONECXX_PUBLIC int linphone::Core::getVideoMulticastTtl | ( | ) | const |
Use to get multicast ttl to be used for video stream.
LINPHONECXX_PUBLIC std::list<std::shared_ptr<linphone::PayloadType> > linphone::Core::getVideoPayloadTypes | ( | ) |
Return the list of the available video payload types.
LINPHONECXX_PUBLIC int linphone::Core::getVideoPort | ( | ) | const |
Gets the UDP port used for video streaming.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Range> linphone::Core::getVideoPortsRange | ( | ) | const |
Get the video port range from which is randomly chosen the UDP port used for video streaming.
LINPHONECXX_PUBLIC std::string linphone::Core::getVideoPreset | ( | ) | const |
Get the video preset used for video calls.
LINPHONECXX_PUBLIC std::list<linphone::ZrtpKeyAgreement> linphone::Core::getZrtpAvailableKeyAgreementList | ( | ) |
Return the list of the available ZRTP key agreement algorithns.
LINPHONECXX_PUBLIC void* linphone::Core::getZrtpCacheDb | ( | ) |
Get a pointer to the sqlite db holding zrtp/lime cache.
LINPHONECXX_PUBLIC std::list<linphone::ZrtpKeyAgreement> linphone::Core::getZrtpKeyAgreementList | ( | ) |
Return the ordonated list of the ZRTP key agreement algorithns currently configured.
LINPHONECXX_PUBLIC std::string linphone::Core::getZrtpSecretsFile | ( | ) |
Get the path to the file storing the zrtp secrets cache.
LINPHONECXX_PUBLIC linphone::ZrtpPeerStatus linphone::Core::getZrtpStatus | ( | const std::string & | addr | ) |
Get the zrtp sas validation status for a peer uri.
Once the SAS has been validated or rejected, the status will never return to Unknown (unless you delete your cache)
addr | the peer uri |
LINPHONECXX_PUBLIC bool linphone::Core::hasBuiltinEchoCanceller | ( | ) |
Check whether the device has a hardware echo canceller.
LINPHONECXX_PUBLIC bool linphone::Core::hasCrappyOpengl | ( | ) |
Check whether the device is flagged has crappy opengl.
LINPHONECXX_PUBLIC bool linphone::Core::inCall | ( | ) | const |
Tells whether there is a call running.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Address> linphone::Core::interpretUrl | ( | const std::string & | url | ) |
Constructs a Address from the given string if possible.
In case of just a username, characters will be unescaped. If a phone number is detected, it will be flattened. sip: or sips: prefix will be added if not present. Finally, will be added if not present using default proxy config.
url | the url to parse |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Address> linphone::Core::interpretUrl | ( | const std::string & | url, |
bool | applyInternationalPrefix | ||
) |
Constructs a Address from the given string if possible.
In case of just a username, characters will be unescaped. If a phone number is detected, it will be flattened. sip: or sips: prefix will be added if not present. Finally, will be added if not present using default proxy config.
url | the url to parse |
applyInternationalPrefix | whether or not to try to format url as phone number using default account prefix if it set (and if url is a number). |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::invite | ( | const std::string & | url | ) |
Initiates an outgoing call.
The application doesn't own a reference to the returned LinphoneCall object. Use linphone_call_ref to safely keep the LinphoneCall pointer valid within your application.
url | The destination of the call (sip address, or phone number). |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::inviteAddress | ( | const std::shared_ptr< const linphone::Address > & | addr | ) |
Initiates an outgoing call given a destination Address The Address can be constructed directly using Factory::createAddress(), or created by interpretUrl().
The application doesn't own a reference to the returned Call object. Use linphone_call_ref to safely keep the Call pointer valid within your application.
addr | The destination of the call (sip address). |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::inviteAddressWithParams | ( | const std::shared_ptr< const linphone::Address > & | addr, |
const std::shared_ptr< const linphone::CallParams > & | params | ||
) |
Initiates an outgoing call given a destination Address The Address can be constructed directly using Factory::createAddress(), or created by interpretUrl().
The application doesn't own a reference to the returned Call object. Use linphone_call_ref to safely keep the Call pointer valid within your application. If the proxy is not specified in parameters, the caller proxy will be automatically selected by finding what is the best to reach the destination of the call.
addr | The destination of the call (sip address). |
params | Call parameters |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::inviteAddressWithParams | ( | const std::shared_ptr< const linphone::Address > & | addr, |
const std::shared_ptr< const linphone::CallParams > & | params, | ||
const std::string & | subject, | ||
const std::shared_ptr< const linphone::Content > & | content | ||
) |
Initiates an outgoing call given a destination Address The Address can be constructed directly using Factory::createAddress(), or created by interpretUrl().
The application doesn't own a reference to the returned Call object. Use linphone_call_ref to safely keep the Call pointer valid within your application. If the proxy is not specified in parameters, the caller proxy will be automatically selected by finding what is the best to reach the destination of the call.
addr | The destination of the call (sip address). |
params | Call parameters |
subject | Subject of the call |
content | Body of the SIP INVITE |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Call> linphone::Core::inviteWithParams | ( | const std::string & | url, |
const std::shared_ptr< const linphone::CallParams > & | params | ||
) |
Initiates an outgoing call according to supplied call parameters The application doesn't own a reference to the returned Call object.
Use linphone_call_ref to safely keep the Call pointer valid within your application.
url | The destination of the call (sip address, or phone number). |
params | the CallParams call parameters |
LINPHONECXX_PUBLIC bool linphone::Core::ipv6Enabled | ( | ) |
Tells whether IPv6 is enabled or not.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isAutoDownloadIcalendarsEnabled | ( | ) |
Gets if the auto download for incoming icalendars is enabled or not.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isAutoDownloadVoiceRecordingsEnabled | ( | ) |
Gets if the auto download for incoming voice recordings is enabled or not.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isAutoIterateEnabled | ( | ) | const |
Gets whether auto iterate is enabled or not (Android & iOS only).
LINPHONECXX_PUBLIC bool linphone::Core::isContentTypeSupported | ( | const std::string & | contentType | ) | const |
Tells whether a content type is supported.
contentType | The content type to check |
LINPHONECXX_PUBLIC bool linphone::Core::isEchoCancellerCalibrationRequired | ( | ) |
Check whether the device is echo canceller calibration is required.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isFriendListSubscriptionEnabled | ( | ) |
Returns whether or not friend lists subscription are enabled.
LINPHONECXX_PUBLIC bool linphone::Core::isInBackground | ( | ) | const |
Gets whether the Core is considering itself in background or not.
The Core foreground/background state depends on the last call made to enterBackground() or enterForeground().
LINPHONECXX_PUBLIC bool linphone::Core::isIncomingInvitePending | ( | ) |
Tells whether there is an incoming invite pending.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isInConference | ( | ) | const |
Indicates whether the local participant is part of a conference.
LINPHONECXX_PUBLIC bool linphone::Core::isMediaEncryptionMandatory | ( | ) |
Check if the configured media encryption is mandatory or not.
LINPHONECXX_PUBLIC bool linphone::Core::isMediaEncryptionSupported | ( | linphone::MediaEncryption | menc | ) |
Check if media encryption is supported.
menc | The media encryption policy to be used. |
LINPHONECXX_PUBLIC bool linphone::Core::isMediaFilterSupported | ( | const std::string & | filtername | ) |
Checks if the given media filter is loaded and usable.
This is for advanced users of the library, mainly to expose mediastreamer video filter status.
filtername | the filter name |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isNativeRingingEnabled | ( | ) | const |
Returns whether the native ringing is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::isNetworkReachable | ( | ) |
return network state either as positioned by the application or by linphone itself.
LINPHONECXX_PUBLIC bool linphone::Core::isPluginLoaded | ( | const std::string & | name | ) | const |
Tells whether a plugin is loaded or not.
name | name of the plugin |
LINPHONECXX_PUBLIC bool linphone::Core::isPushNotificationAvailable | ( | ) |
Gets whether push notifications are available or not (Android & iOS only).
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isPushNotificationEnabled | ( | ) |
Gets whether push notifications are enabled or not (Android & iOS only).
If not, the app will have to handle all the push-related settings for each accounts
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isRecordAwareEnabled | ( | ) |
Gets if the record aware feature is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::isSenderNameHiddenInForwardMessage | ( | ) |
Returns whether or not sender name is hidden in forward message.
LINPHONECXX_PUBLIC bool linphone::Core::isVerifyServerCertificates | ( | ) |
Get whether the tls server certificate must be verified when connecting to a SIP/TLS server.
LINPHONECXX_PUBLIC bool linphone::Core::isVerifyServerCn | ( | ) |
Get whether the tls server certificate common name must be verified when connecting to a SIP/TLS server.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::isVibrationOnIncomingCallEnabled | ( | ) |
Gets whether the device will vibrate while an incoming call is ringing (Android only).
LINPHONECXX_PUBLIC void linphone::Core::iterate | ( | ) |
Main loop function.
It is crucial that your application call it periodically. iterate() performs various backgrounds tasks:
LINPHONECXX_PUBLIC bool linphone::Core::keepAliveEnabled | ( | ) |
Is signaling keep alive enabled.
LINPHONECXX_PUBLIC bool linphone::Core::ldapAvailable | ( | ) |
Tells if LDAP is available.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::Core::leaveConference | ( | ) |
Make the local participant leave the running conference.
LINPHONECXX_PUBLIC bool linphone::Core::limeX3DhEnabled | ( | ) | const |
Tells wether LIME X3DH is enabled or not.
LINPHONECXX_PUBLIC void linphone::Core::loadConfigFromXml | ( | const std::string & | xmlUri | ) |
Update current config with the content of a xml config file.
xmlUri | the path to the xml file |
LINPHONECXX_PUBLIC bool linphone::Core::localPermissionEnabled | ( | ) | const |
Special function to check if the local network permission has been granted by the user (useful for iOS).
The test performed by this function may popup the local network permission dialog, for that reason it could be a good idea to check it twice to conclude that the user has deny the permission.
|
static |
Tells whether the linphone core log collection is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::mediaEncryptionSupported | ( | linphone::MediaEncryption | menc | ) |
Check if a media encryption type is supported.
menc | MediaEncryption |
LINPHONECXX_PUBLIC bool linphone::Core::micEnabled | ( | ) |
Tells whether the microphone is enabled.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::migrateToMultiTransport | ( | ) |
Migrate configuration so that all SIP transports are enabled.
Versions of linphone < 3.7 did not support using multiple SIP transport simultaneously. This function helps application to migrate the configuration so that all transports are enabled. Existing proxy configuration are added a transport parameter so that they continue using the unique transport that was set previously. This function must be used just after creating the core, before any call to iterate()
LINPHONECXX_PUBLIC bool linphone::Core::nativeRingingEnabled | ( | ) | const |
Returns whether the native ringing is enabled or not.
LINPHONECXX_PUBLIC void linphone::Core::notifyAllFriends | ( | const std::shared_ptr< linphone::PresenceModel > & | presence | ) |
Notify all friends that have subscribed.
presence | PresenceModel to notify |
LINPHONECXX_PUBLIC void linphone::Core::notifyNotifyPresenceReceived | ( | const std::shared_ptr< linphone::Friend > & | linphoneFriend | ) |
Notifies the upper layer that a presence status has been received by calling the appropriate callback if one has been set.
This method is for advanced usage, where customization of the liblinphone's internal behavior is required.
linphoneFriend | the Friend whose presence information has been received. |
LINPHONECXX_PUBLIC void linphone::Core::notifyNotifyPresenceReceivedForUriOrTel | ( | const std::shared_ptr< linphone::Friend > & | linphoneFriend, |
const std::string & | uriOrTel, | ||
const std::shared_ptr< const linphone::PresenceModel > & | presenceModel | ||
) |
Notifies the upper layer that a presence model change has been received for the uri or telephone number given as a parameter, by calling the appropriate callback if one has been set.
This method is for advanced usage, where customization of the liblinphone's internal behavior is required.
linphoneFriend | the Friend whose presence information has been received. |
uriOrTel | telephone number or sip uri |
presenceModel | the PresenceModel that has been modified |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::pauseAllCalls | ( | ) |
Pause all currently running calls.
LINPHONECXX_PUBLIC void linphone::Core::playDtmf | ( | char | dtmf, |
int | durationMs | ||
) |
Plays a dtmf sound to the local user.
dtmf | DTMF to play ['0'..'16'] | '#' | '#' |
durationMs | Duration in ms, -1 means play until next further call to stopDtmf() |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::playLocal | ( | const std::string & | audiofile | ) |
Plays an audio file to the local user.
This function works at any time, during calls, or when no calls are running. It doesn't request the underlying audio system to support multiple playback streams.
audiofile | The path to an audio file in wav PCM 16 bit format |
LINPHONECXX_PUBLIC int linphone::Core::preemptSoundResources | ( | ) |
Empties sound resources to allow a new call to be accepted.
This function is autyomatically called by the core if the media resource mode is set to unique.
LINPHONECXX_PUBLIC void linphone::Core::processPushNotification | ( | const std::string & | callId | ) |
Call this method when you receive a push notification (if you handle push notifications manually).
It will ensure the proxy configs are correctly registered to the proxy server, so the call or the message will be correctly delivered.
callId | the Call-ID of the MESSAGE or INVITE for which the push was received and to wait for. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::publish | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::string & | event, | ||
int | expires, | ||
const std::shared_ptr< const linphone::Content > & | body | ||
) |
Publish an event state.
This first create a Event with createPublish() and calls Event::sendPublish() to actually send it. After expiry, the publication is refreshed unless it is terminated before.
resource | the resource uri for the event |
event | the event name |
expires | the lifetime of event being published, -1 if no associated duration, in which case it will not be refreshed. |
body | the actual published data |
LINPHONECXX_PUBLIC bool linphone::Core::pushNotificationEnabled | ( | ) |
Gets whether push notifications are enabled or not (Android & iOS only).
If not, the app will have to handle all the push-related settings for each accounts
LINPHONECXX_PUBLIC bool linphone::Core::qrcodeVideoPreviewEnabled | ( | ) | const |
Tells whether QRCode is enabled in the preview.
LINPHONECXX_PUBLIC bool linphone::Core::realtimeTextEnabled | ( | ) |
Gets if realtime text is enabled or not.
LINPHONECXX_PUBLIC unsigned int linphone::Core::realtimeTextGetKeepaliveInterval | ( | ) | const |
Gets keep alive interval of real time text.
LINPHONECXX_PUBLIC void linphone::Core::realtimeTextSetKeepaliveInterval | ( | unsigned int | interval | ) |
Set keep alive interval for real time text.
interval | The keep alive interval of real time text, 25000 by default. |
LINPHONECXX_PUBLIC bool linphone::Core::recordAwareEnabled | ( | ) |
Gets if the record aware feature is enabled or not.
LINPHONECXX_PUBLIC void linphone::Core::refreshRegisters | ( | ) |
force registration refresh to be initiated upon next iterate
LINPHONECXX_PUBLIC void linphone::Core::rejectSubscriber | ( | const std::shared_ptr< linphone::Friend > & | linphoneFriend | ) |
Black list a friend.
same as Friend::setIncSubscribePolicy() with SubscribePolicy::SPDeny policy;
linphoneFriend | Friend to reject |
LINPHONECXX_PUBLIC void linphone::Core::reloadMsPlugins | ( | const std::string & | path | ) |
Reload mediastreamer2 plugins from specified directory.
path | the path from where plugins are to be loaded, pass nullptr to use default (compile-time determined) plugin directory. |
LINPHONECXX_PUBLIC void linphone::Core::reloadSoundDevices | ( | ) |
Update detection of sound devices.
Use this function when the application is notified of USB plug events, so that list of available hardwares for sound playback and capture is updated.
LINPHONECXX_PUBLIC void linphone::Core::reloadVideoDevices | ( | ) |
Update detection of camera devices.
Use this function when the application is notified of USB plug events, so that list of available hardwares for video capture is updated.
LINPHONECXX_PUBLIC void linphone::Core::removeAccount | ( | const std::shared_ptr< linphone::Account > & | account | ) |
LINPHONECXX_PUBLIC void linphone::Core::removeAuthInfo | ( | const std::shared_ptr< const linphone::AuthInfo > & | info | ) |
Removes an authentication information object.
info | The AuthInfo to remove. |
LINPHONECXX_PUBLIC void linphone::Core::removeCallLog | ( | const std::shared_ptr< linphone::CallLog > & | callLog | ) |
Remove a specific call log from call history list.
This function destroys the call log object. It must not be accessed anymore by the application after calling this function.
callLog | CallLog object to remove. |
LINPHONECXX_PUBLIC void linphone::Core::removeContentTypeSupport | ( | const std::string & | contentType | ) |
Remove support for the specified content type.
It is the application responsibility to handle it correctly afterwards.
contentType | The content type to remove support for |
LINPHONECXX_PUBLIC void linphone::Core::removeFriendList | ( | const std::shared_ptr< linphone::FriendList > & | list | ) |
Removes a friend list.
list | FriendList object |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::removeFromConference | ( | const std::shared_ptr< linphone::Call > & | call | ) |
Remove a call from the conference.
call | a call that has been previously merged into the conference. After removing the remote participant belonging to the supplied call, the call becomes a normal call in paused state. If one single remote participant is left alone together with the local user in the conference after the removal, then the conference is automatically transformed into a simple call in StreamsRunning state. The conference's resources are then automatically destroyed. In other words, unless leaveConference() is explicitly called, the last remote participant of a conference is automatically put in a simple call in running state. |
LINPHONECXX_PUBLIC void linphone::Core::removeLdap | ( | const std::shared_ptr< linphone::Ldap > & | ldap | ) |
Remove a LDAP from the configuration.
ldap | The LDAP to remove. |
LINPHONECXX_PUBLIC void linphone::Core::removeLinphoneSpec | ( | const std::string & | spec | ) |
Remove the given linphone specs from the list of functionalities the linphone client supports.
spec | The spec to remove |
LINPHONECXX_PUBLIC void linphone::Core::removeListener | ( | const std::shared_ptr< CoreListener > & | listener | ) |
Remove a previously added listener from the Core instance.
listener | the application listener |
LINPHONECXX_PUBLIC void linphone::Core::removeProxyConfig | ( | const std::shared_ptr< linphone::ProxyConfig > & | config | ) |
Removes a proxy configuration.
Core will then automatically unregister and place the proxy configuration on a deleted list. For that reason, a removed proxy does NOT need to be freed.
config | the ProxyConfig to remove |
LINPHONECXX_PUBLIC void linphone::Core::removeSupportedTag | ( | const std::string & | tag | ) |
LINPHONECXX_PUBLIC void linphone::Core::resetEchoCancellationCalibration | ( | ) |
Clears all state resulting from a previous echo canceller calibration procedure, which restores default policy and settings for echo cancellation.
LINPHONECXX_PUBLIC bool linphone::Core::retransmissionOnNackEnabled | ( | ) |
Tells whether NACK context is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::rtpBundleEnabled | ( | ) | const |
Returns whether RTP bundle mode (also known as Media Multiplexing) is enabled.
See https://datatracker.ietf.org/doc/html/rfc8843 for more information.
LINPHONECXX_PUBLIC bool linphone::Core::sdp200AckEnabled | ( | ) | const |
Media offer control param for SIP INVITE.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ChatRoom> linphone::Core::searchChatRoom | ( | const std::shared_ptr< const linphone::ChatRoomParams > & | params, |
const std::shared_ptr< const linphone::Address > & | localAddr, | ||
const std::shared_ptr< const linphone::Address > & | remoteAddr, | ||
const std::list< std::shared_ptr< linphone::Address >> & | participants | ||
) | const |
Find a chat room.
params | The chat room parameters to match ChatRoomParams or nullptr |
localAddr | Address representing the local proxy configuration or nullptr |
remoteAddr | Address to search for or nullptr |
participants | The participants that must be present in the chat room to find. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Conference> linphone::Core::searchConference | ( | const std::shared_ptr< const linphone::ConferenceParams > & | params, |
const std::shared_ptr< const linphone::Address > & | localAddr, | ||
const std::shared_ptr< const linphone::Address > & | remoteAddr, | ||
const std::list< std::shared_ptr< linphone::Address >> & | participants | ||
) | const |
Find a conference.
params | The conference parameters to match ConferenceParams or nullptr |
localAddr | Address representing the local proxy configuration or nullptr |
remoteAddr | Address to search for or nullptr |
participants | The participants that must be present in the chat room to find |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Conference> linphone::Core::searchConference | ( | const std::shared_ptr< const linphone::Address > & | conferenceAddr | ) | const |
Find a conference.
conferenceAddr | Address representing the conference address |
LINPHONECXX_PUBLIC bool linphone::Core::selfViewEnabled | ( | ) | const |
Tells whether video self view during call is enabled or not.
|
static |
Enable logs serialization (output logs from either the thread that creates the linphone core or the thread that calls iterate()).
Must be called before creating the linphone core.
LINPHONECXX_PUBLIC void linphone::Core::setAccountCreatorBackend | ( | linphone::AccountCreator::Backend | backend | ) |
Set the AccountCreator backend on the Core.
backend | The AccountCreator::Backend |
LINPHONECXX_PUBLIC void linphone::Core::setAccountCreatorUrl | ( | const std::string & | url | ) |
Set the AccountCreator url on the Core.
url | The URL to reach |
LINPHONECXX_PUBLIC void linphone::Core::setAdaptiveRateAlgorithm | ( | const std::string & | algorithm | ) |
Sets adaptive rate algorithm.
It will be used for each new calls starting from now. Calls already started will not be updated.
algorithm | the adaptive rate control algorithm. Currently two values are supported: 'advanced', which is the default value, or 'basic'. |
LINPHONECXX_PUBLIC void linphone::Core::setAudioDscp | ( | int | dscp | ) |
Set the DSCP field for outgoing audio streams.
The DSCP defines the quality of service in IP packets.
dscp | The DSCP value to set |
LINPHONECXX_PUBLIC void linphone::Core::setAudioJittcomp | ( | int | milliseconds | ) |
Sets the nominal audio jitter buffer size in milliseconds.
The value takes effect immediately for all running and pending calls, if any. A value of 0 disables the jitter buffer.
milliseconds | the audio jitter buffer size to set in milliseconds |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setAudioMulticastAddr | ( | const std::string & | ip | ) |
Use to set multicast address to be used for audio stream.
ip | an ipv4/6 multicast address. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setAudioMulticastTtl | ( | int | ttl | ) |
Use to set multicast ttl to be used for audio stream.
ttl | value or -1 if not used. [0..255] default value is 1 |
LINPHONECXX_PUBLIC void linphone::Core::setAudioPayloadTypes | ( | const std::list< std::shared_ptr< linphone::PayloadType >> & | payloadTypes | ) |
Redefine the list of the available payload types.
payloadTypes | The new list of payload types. The core does not take ownership on it. |
LINPHONECXX_PUBLIC void linphone::Core::setAudioPort | ( | int | port | ) |
Sets the UDP port used for audio streaming.
A value of -1 will request the system to allocate the local port randomly. This is recommended in order to avoid firewall warnings.
port | The UDP port to use for audio streaming |
LINPHONECXX_PUBLIC void linphone::Core::setAudioPortRange | ( | int | minPort, |
int | maxPort | ||
) |
Sets the UDP port range from which to randomly select the port used for audio streaming.
minPort | The lower bound of the audio port range to use |
maxPort | The upper bound of the audio port range to use |
LINPHONECXX_PUBLIC void linphone::Core::setAutoIterateBackgroundSchedule | ( | int | schedule | ) |
Sets the timer used to schedule the call to core.iterate() method when in background (Android only).
schedule | The timing in milliseconds used to schedule the call while in background. |
LINPHONECXX_PUBLIC void linphone::Core::setAutoIterateForegroundSchedule | ( | int | schedule | ) |
Sets the timer used to schedule the call to core.iterate() method when in foreground (Android only).
schedule | The timing in milliseconds used to schedule the call while in foreground. |
LINPHONECXX_PUBLIC void linphone::Core::setAvpfMode | ( | linphone::AVPFMode | mode | ) |
Enable RTCP feedback (also known as RTP/AVPF profile).
Setting AVPFMode::Default is equivalent to LinphoneAVPFDisabled. This setting can be overriden per ProxyConfig with ProxyConfig::setAvpfMode(). The value set here is used for calls placed or received out of any proxy configured, or if the proxy config is configured with LinphoneAVPFDefault.
mode | The AVPF mode to use. |
LINPHONECXX_PUBLIC void linphone::Core::setAvpfRrInterval | ( | int | interval | ) |
Set the avpf report interval in seconds.
This value can be overriden by the proxy config using ProxyConfig::setAvpfRrInterval().
interval | The report interval in seconds |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::Core::setCallLogsDatabasePath | ( | const std::string & | path | ) |
Sets the database filename where call logs will be stored.
If the file does not exist, it will be created.
path | filesystem path |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setCaptureDevice | ( | const std::string & | devid | ) |
Sets the sound device used for capture.
devid | The device name as returned by linphone_core_get_sound_devices |
LINPHONECXX_PUBLIC void linphone::Core::setChatMessagesAggregationEnabled | ( | bool | enabled | ) |
Sets whether chat messages grouping is enabled or not.
Set [sip] chat_messages_aggregation in your configuration file for the timer, default is 500ms.
enabled | true to wait for chat messages and notify them as at once, false to keep legacy behavior. |
LINPHONECXX_PUBLIC void linphone::Core::setConferenceParticipantListType | ( | linphone::Conference::ParticipantListType | type | ) |
Select whether the default conference participant list is open or closed.
type | A Conference::ParticipantListType participant list type |
LINPHONECXX_PUBLIC void linphone::Core::setConsolidatedPresence | ( | linphone::ConsolidatedPresence | presence | ) |
Set my consolidated presence.
presence | ConsolidatedPresence value |
LINPHONECXX_PUBLIC void linphone::Core::setDefaultAccount | ( | const std::shared_ptr< linphone::Account > & | account | ) |
Sets the default account.
This default account must be part of the list of already entered LinphoneAccount. Toggling it as default will make Core use the identity associated with the account in all incoming and outgoing calls.
account | The account to use as the default one. |
LINPHONECXX_PUBLIC void linphone::Core::setDefaultConferenceLayout | ( | linphone::Conference::Layout | value | ) |
Set the default conference layout.
value | layout |
LINPHONECXX_PUBLIC void linphone::Core::setDefaultEphemeralLifetime | ( | long | value | ) |
Set the default ephemeral lifetime in seconds.
value | lifetime of ephemeral messages in seconds |
LINPHONECXX_PUBLIC void linphone::Core::setDefaultInputAudioDevice | ( | const std::shared_ptr< linphone::AudioDevice > & | audioDevice | ) |
Sets the given AudioDevice as default input for next calls.
audioDevice | The AudioDevice |
LINPHONECXX_PUBLIC void linphone::Core::setDefaultOutputAudioDevice | ( | const std::shared_ptr< linphone::AudioDevice > & | audioDevice | ) |
Sets the given AudioDevice as default output for next calls.
audioDevice | The AudioDevice |
LINPHONECXX_PUBLIC void linphone::Core::setDefaultProxyConfig | ( | const std::shared_ptr< linphone::ProxyConfig > & | config | ) |
Sets the default proxy.
This default proxy must be part of the list of already entered LinphoneProxyConfig. Toggling it as default will make Core use the identity associated with the proxy configuration in all incoming and outgoing calls.
config | The proxy configuration to use as the default one. |
LINPHONECXX_PUBLIC void linphone::Core::setDelayedTimeout | ( | int | seconds | ) |
Set the in delayed timeout in seconds.
After this timeout period, a delayed call (internal call initialisation or resolution) is resumed.
seconds | The new delayed timeout |
LINPHONECXX_PUBLIC void linphone::Core::setDeviceRotation | ( | int | rotation | ) |
Tells the core the device current orientation.
This can be used by capture filters on mobile devices to select between portrait/landscape mode and to produce properly oriented images. The exact meaning of the value in rotation if left to each device specific implementations. IOS supported values are 0 for UIInterfaceOrientationPortrait and 270 for UIInterfaceOrientationLandscapeRight.
rotation | The orientation to use |
LINPHONECXX_PUBLIC void linphone::Core::setDigestAuthenticationPolicy | ( | const std::shared_ptr< linphone::DigestAuthenticationPolicy > & | policy | ) |
Setup a new digest authentication policy applicable for SIP and HTTP.
Setup a new digest authentication policy applicable for SIP and HTTP.
policy | a DigestAuthenticationPolicy |
LINPHONECXX_PUBLIC void linphone::Core::setDisableRecordOnMute | ( | bool | disable | ) |
Calling this method with disable=true will cause the microhone to be completely deactivated when muted, when given possible by the implementation on the platform on which liblinphone is running.
Otherwise, sound recording remains active but silence is sent instead of recorded audio. Playback sound will be briefly interrupted while the audio is reconfigured. Currently only implemented for IOS, it will also disable Apple's microphone recording indicator when microphone is muted.
disable | True if you wish to entirely stop the audio recording when muting the microphone. |
LINPHONECXX_PUBLIC void linphone::Core::setDnsServers | ( | const std::list< std::string > & | servers | ) |
Forces liblinphone to use the supplied list of dns servers, instead of system's ones.
servers | A list of strings containing the IP addresses of DNS servers to be used. Setting to nullptr restores default behaviour, which is to use the DNS server list provided by the system. The list is copied internally. |
LINPHONECXX_PUBLIC void linphone::Core::setDnsServersApp | ( | const std::list< std::string > & | servers | ) |
Forces liblinphone to use the supplied list of dns servers, instead of system's ones and set dns_set_by_app at true or false according to value of servers list.
servers | A list of strings containing the IP addresses of DNS servers to be used. Setting to nullptr restores default behaviour, which is to use the DNS server list provided by the system. The list is copied internally. |
LINPHONECXX_PUBLIC void linphone::Core::setDownloadBandwidth | ( | int | bandwidth | ) |
Sets maximum available download bandwidth This is IP bandwidth, in kbit/s.
This information is used signaled to other parties during calls (within SDP messages) so that the remote end can have sufficient knowledge to properly configure its audio & video codec output bitrate to not overflow available bandwidth.
bandwidth | the bandwidth in kbits/s, 0 for infinite |
LINPHONECXX_PUBLIC void linphone::Core::setDownloadPtime | ( | int | ptime | ) |
Set audio packetization time linphone expects to receive from peer.
A value of zero means that ptime is not specified.
ptime | the download packetization time to set |
LINPHONECXX_PUBLIC void linphone::Core::setEchoCancellerFilterName | ( | const std::string & | filtername | ) |
Set the name of the mediastreamer2 filter to be used for echo cancelling.
This is for advanced users of the library.
filtername | The name of the mediastreamer2 filter to be used for echo cancelling. |
LINPHONECXX_PUBLIC void linphone::Core::setEnableSipUpdate | ( | int | value | ) | const |
Enable or disable the UPDATE method support.
value | Enable or disable it |
LINPHONECXX_PUBLIC void linphone::Core::setExpectedBandwidth | ( | int | bandwidth | ) |
Sets expected available upload bandwidth This is IP bandwidth, in kbit/s.
This information is used by liblinphone together with remote side available bandwidth signaled in SDP messages to properly configure audio & video codec's output bitrate.
bandwidth | the bandwidth in kbits/s, 0 for infinite |
LINPHONECXX_PUBLIC void linphone::Core::setFileTransferServer | ( | const std::string & | serverUrl | ) |
Globaly set an http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml.
Url may be like: "https://file.linphone.org/upload.php". This value can also be set for a dedicated account using linphone_proxy_config_set_file_transfer_server.
serverUrl | URL of the file server. |
LINPHONECXX_PUBLIC void linphone::Core::setFriendsDatabasePath | ( | const std::string & | path | ) |
Sets the database filename where friends will be stored.
If the file does not exist, it will be created.
path | filesystem path. |
LINPHONECXX_PUBLIC void linphone::Core::setGuessHostname | ( | bool | enable | ) |
Tells Core to guess local hostname automatically in primary contact.
enable | whether to enable the guess hostname feature or not |
LINPHONECXX_PUBLIC void linphone::Core::setHttpProxyHost | ( | const std::string & | host | ) |
Set http proxy address to be used for signaling during next channel connection.
Use setNetworkReachable() FASLE/true to force channel restart.
host | Hostname of IP adress of the http proxy (can be nullptr to disable). |
LINPHONECXX_PUBLIC void linphone::Core::setHttpProxyPort | ( | int | port | ) |
Set http proxy port to be used for signaling.
port | of the http proxy. |
LINPHONECXX_PUBLIC void linphone::Core::setInCallTimeout | ( | int | seconds | ) |
Set the in call timeout in seconds.
After this timeout period, the call is automatically hangup. A value of 0 disables this feature.
seconds | The new timeout in seconds |
LINPHONECXX_PUBLIC void linphone::Core::setIncTimeout | ( | int | seconds | ) |
Set the incoming call timeout in seconds.
If an incoming call isn't answered for this timeout period, it is automatically declined.
seconds | The new timeout in seconds |
LINPHONECXX_PUBLIC void linphone::Core::setInputAudioDevice | ( | const std::shared_ptr< linphone::AudioDevice > & | audioDevice | ) |
Sets the given AudioDevice as input for all active calls.
audioDevice | The AudioDevice. nullptr does nothing. |
LINPHONECXX_PUBLIC void linphone::Core::setLabel | ( | const std::string & | label | ) |
Set a label - for logging/troubleshooting purpose - to the core object.
This label is used by the logger to give context. When running an application with several LinphoneCore objects, (such as a test), it is useful to enhance the log's readability'.
label | a developper-friendly label. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::Core::setLimeX3DhServerUrl | ( | const std::string & | url | ) |
Set the x3dh server url.
If empty, this function will disable LIME X3DH from core. Otherwise, or if different from the existing value, this will (re-)initialize the LIME X3DH engine.
url | The x3dh server url. |
LINPHONECXX_PUBLIC void linphone::Core::setLinphoneSpecsList | ( | const std::list< std::string > & | specs | ) |
Set the linphone specs list value telling what functionalities the linphone client supports.
specs | The list of string specs to set. |
|
static |
Set the max file size in bytes of the files used for log collection.
Warning: this function should only not be used to change size dynamically but instead only before calling enableLogCollection(). If you increase max size on runtime, logs chronological order COULD be broken.
size | The max file size in bytes of the files used for log collection. |
|
static |
Set the path of a directory where the log files will be written for log collection.
When log collection is enabled, the function will close the file with the current prefix in the old path and it will open the new file with current prefix in the new path. If you need to change the path and the file at the same time, then you should deactivate log collection with enableLogCollection() before doing modifications.
path | The path where the log files will be written. |
|
static |
Set the prefix of the filenames that will be used for log collection.
When log collection is enabled, the function will close the old file and it will open the new one in the current path. If you need to change the path and the file at the same time, then you should deactivate log collection with enableLogCollection() before doing modifications.
prefix | The prefix to use for the filenames for log collection. |
LINPHONECXX_PUBLIC void linphone::Core::setLogCollectionUploadServerUrl | ( | const std::string & | serverUrl | ) |
Set the url of the server where to upload the collected log files.
serverUrl | The url of the server where to upload the collected log files. |
LINPHONECXX_PUBLIC void linphone::Core::setMaxCalls | ( | int | max | ) |
Set the maximum number of simultaneous calls Linphone core can manage at a time.
All new call above this limit are declined with a busy answer
max | number of simultaneous calls |
LINPHONECXX_PUBLIC void linphone::Core::setMaxSizeForAutoDownloadIncomingFiles | ( | int | size | ) |
Sets the size under which incoming files in chat messages will be downloaded automatically.
size | The size in bytes, -1 to disable the autodownload feature, 0 to download them all no matter the size |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setMediaDevice | ( | const std::string & | devid | ) |
Sets the sound device used for media.
devid | The device name as returned by linphone_core_get_sound_devices |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setMediaEncryption | ( | linphone::MediaEncryption | menc | ) |
Choose the media encryption policy to be used for RTP packets.
menc | The media encryption policy to be used. |
LINPHONECXX_PUBLIC void linphone::Core::setMediaEncryptionMandatory | ( | bool | mandatory | ) |
Define whether the configured media encryption is mandatory, if it is and the negotation cannot result in the desired media encryption then the call will fail.
If not an INVITE will be resent with encryption disabled.
mandatory | true to set it mandatory; false otherwise. |
LINPHONECXX_PUBLIC void linphone::Core::setMediaNetworkReachable | ( | bool | reachable | ) |
This method is called by the application to notify the linphone core library when the media (RTP) network is reachable.
This is for advanced usage, when SIP and RTP layers are required to use different interfaces. Most applications just need setNetworkReachable().
reachable | true if network is reachable, false otherwise |
LINPHONECXX_PUBLIC void linphone::Core::setMediaResourceMode | ( | linphone::MediaResourceMode | mode | ) |
Sets the media resources mode.
Value values are: unique and shared. When the mode is set to unique, then only one call in the state StreamsRunning is allowed. While acepting a call, the core will try to free media resource used by the current call. If it is unsuccessful, then the call is not accepted. If mode is set to shared, then the media resources of the current call (if any) are not emptied when taking a new call. If the user whishes to free them, he/she is responsible to call linphone_core_preempt_sound_resources himself/herself
mode | the chosen mode |
LINPHONECXX_PUBLIC void linphone::Core::setMicGainDb | ( | float | level | ) |
Allow to control microphone level: gain in db.
level | The new microphone level |
LINPHONECXX_PUBLIC void linphone::Core::setMtu | ( | int | mtu | ) |
Sets the maximum transmission unit size in bytes.
This information is useful for sending RTP packets. Default value is 1500.
mtu | The MTU in bytes |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::Core::setNatAddress | ( | const std::string & | addr | ) |
Deprecated.
This function was used to force a given IP address to appear in SDP. Unfortunately, this cannot work as explained by https://www.rfc-editor.org/rfc/rfc5389#section-2 .
addr | The public IP address of NAT to use. |
LINPHONECXX_PUBLIC void linphone::Core::setNativePreviewWindowId | ( | void * | windowId | ) |
Set the native window id where the preview video (local camera) is to be displayed.
This has to be used in conjonction with usePreviewWindow(). see setNativeVideoWindowId() for general details about window_id On Android : #org.linphone.mediastream.video.capture.CaptureTextureView is used for setNativePreviewWindowId(). It is inherited from #TextureView and takes care of rotating the captured image from the camera and scale it to keep it's ratio.
windowId | The native window id where the preview video is to be displayed. |
LINPHONECXX_PUBLIC void linphone::Core::setNativeVideoWindowId | ( | void * | windowId | ) |
Set the native video window id where the video is to be displayed.
On Desktop platforms(MacOS, Linux, Windows), the display filter is "MSOGL" by default. That means : If window_id is not set or set to LINPHONE_VIDEO_DISPLAY_NONE, then the core will not create its own window, unless the special id LINPHONE_VIDEO_DISPLAY_AUTO is given. This is currently only supported for Linux X11 (#Window type), Windows UWP (#SwapChainPanel type) and Windows (#HWND type). The CSharp Wrapper on Windows for UWP takes directly a #SwapChainPanel without Marshalling. On other platforms, window_id is a #MSOglContextInfo defined in msogl.h of mediastreamer2 There is a special case for Qt : The "MSQOGL" filter must be selected by using linphone_core_set_video_display_filter. Setting window id is only used to stop rendering by passing LINPHONE_VIDEO_DISPLAY_NONE. getNativeVideoWindowId() returns a #QQuickFramebufferObject::Renderer and createNativeVideoWindowId() creates one. After a creation, setNativeVideoWindowId() must be called with the new object. On mobile operating systems, LINPHONE_VIDEO_DISPLAY_AUTO is not supported and window_id depends of the platform : iOS : It is a #UIView. Android : It is a #TextureView.
windowId | The native window id where the remote video is to be displayed. |
LINPHONECXX_PUBLIC void linphone::Core::setNatPolicy | ( | const std::shared_ptr< linphone::NatPolicy > & | policy | ) |
Set the policy to use to pass through NATs/firewalls.
It may be overridden by a NAT policy for a specific proxy config.
policy | NatPolicy object |
LINPHONECXX_PUBLIC void linphone::Core::setNetworkReachable | ( | bool | reachable | ) |
This method is called by the application to notify the linphone core library when network is reachable.
Calling this method with true trigger linphone to initiate a registration process for all proxies. Calling this method disables the automatic network detection mode. It means you must call this method after each network state changes.
reachable | true if network is reachable, false otherwise |
LINPHONECXX_PUBLIC void linphone::Core::setNortpTimeout | ( | int | seconds | ) |
Sets the no-rtp timeout value in seconds.
seconds | The no-rtp timeout value to use in seconds |
LINPHONECXX_PUBLIC void linphone::Core::setOutputAudioDevice | ( | const std::shared_ptr< linphone::AudioDevice > & | audioDevice | ) |
Sets the given AudioDevice as output for all active calls.
audioDevice | The AudioDevice. nullptr does nothing. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setPlaybackDevice | ( | const std::string & | devid | ) |
Sets the sound device used for playback.
devid | The device name as returned by linphone_core_get_sound_devices |
LINPHONECXX_PUBLIC void linphone::Core::setPlaybackGainDb | ( | float | level | ) |
Allow to control play level before entering sound card: gain in db.
level | The new play level |
LINPHONECXX_PUBLIC void linphone::Core::setPlayFile | ( | const std::string & | file | ) |
Sets a wav file to be played when putting somebody on hold, or when files are used instead of soundcards (see setUseFiles()).
The file must be a 16 bit linear wav file.
file | The path to the file to be played when putting somebody on hold. |
LINPHONECXX_PUBLIC void linphone::Core::setPreferredFramerate | ( | float | fps | ) |
Set the preferred frame rate for video.
Based on the available bandwidth constraints and network conditions, the video encoder remains free to lower the framerate. There is no warranty that the preferred frame rate be the actual framerate. used during a call. Default value is 0, which means "use encoder's default fps value".
fps | the target frame rate in number of frames per seconds. |
LINPHONECXX_PUBLIC void linphone::Core::setPreferredVideoDefinition | ( | const std::shared_ptr< linphone::VideoDefinition > & | videoDefinition | ) |
Set the preferred video definition for the stream that is captured and sent to the remote party.
All standard video definitions are accepted on the receive path.
videoDefinition | VideoDefinition object |
LINPHONECXX_PUBLIC void linphone::Core::setPreferredVideoDefinitionByName | ( | const std::string & | name | ) |
Sets the preferred video definition by its name.
Call Factory::getSupportedVideoDefinitions() to have a list of supported video definitions.
name | The name of the definition to set |
LINPHONECXX_PUBLIC void linphone::Core::setPresenceModel | ( | const std::shared_ptr< linphone::PresenceModel > & | presence | ) |
Set my presence model.
presence | PresenceModel |
LINPHONECXX_PUBLIC void linphone::Core::setPreviewVideoDefinition | ( | const std::shared_ptr< linphone::VideoDefinition > & | videoDefinition | ) |
Set the video definition for the captured (preview) video.
This method is for advanced usage where a video capture must be set independently of the definition of the stream actually sent through the call. This allows for example to have the preview window in High Definition even if due to bandwidth constraint the sent video definition is small. Using this feature increases the CPU consumption, since a rescaling will be done internally.
videoDefinition | VideoDefinition object |
LINPHONECXX_PUBLIC void linphone::Core::setPreviewVideoDefinitionByName | ( | const std::string & | name | ) |
name | The name of the definition to set |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setPrimaryContact | ( | const std::string & | contact | ) |
Sets the local "from" identity.
This data is used in absence of any proxy configuration or when no default proxy configuration is set. See ProxyConfig
contact | the contact to set |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setProvisioningUri | ( | const std::string & | uri | ) |
Set URI where to download xml configuration file at startup.
This can also be set from configuration file or factory config file, from [misc] section, item "config-uri". Calling this function does not load the configuration. It will write the value into configuration so that configuration from remote URI will take place at next Core start.
uri | the http or https uri to use in order to download the configuration. Passing nullptr will disable remote provisioning. |
LINPHONECXX_PUBLIC void linphone::Core::setPushIncomingCallTimeout | ( | int | seconds | ) |
Configure the minimum interval between a push notification and the corresponding incoming INVITE.
If exceeded, Linphone Call is transitioned to CallError and further incoming invite associated to this push is declined if any.
seconds | The new timeout in seconds |
LINPHONECXX_PUBLIC void linphone::Core::setQrcodeDecodeRect | ( | const int | x, |
const int | y, | ||
const int | w, | ||
const int | h | ||
) |
Set the rectangle where the decoder will search a QRCode.
x | axis |
y | axis |
w | width |
h | height |
LINPHONECXX_PUBLIC void linphone::Core::setRecordFile | ( | const std::string & | file | ) |
Sets a wav file where incoming stream is to be recorded, when files are used instead of soundcards (see setUseFiles()).
This feature is different from call recording (CallParams::setRecordFile()) The file will be a 16 bit linear wav file.
file | The path to the file where incoming stream is to be recorded. |
LINPHONECXX_PUBLIC void linphone::Core::setRemoteRingbackTone | ( | const std::string & | ring | ) |
Specify a ring back tone to be played to far end during incoming calls.
ring | The path to the remote ring back tone to be played. |
LINPHONECXX_PUBLIC void linphone::Core::setRing | ( | const std::string & | path | ) |
Sets the path to a wav file used for ringing.
The file must be a wav 16bit linear. If null, ringing is disable unless #linphone_core_get_use_native_ringing() is enabled, in which case we use the device ringtone.
path | The path to a wav file to be used for ringing, null to disable or use device ringing depending on #linphone_core_get_use_native_ringing(). |
LINPHONECXX_PUBLIC void linphone::Core::setRingback | ( | const std::string & | path | ) |
Sets the path to a wav file used for ringing back.
Ringback means the ring that is heard when it's ringing at the remote party. The file must be a wav 16bit linear.
path | The path to a wav file to be used for ringing back. |
LINPHONECXX_PUBLIC void linphone::Core::setRingDuringIncomingEarlyMedia | ( | bool | enable | ) |
Enable or disable the ring play during an incoming early media call.
enable | A boolean value telling whether to enable ringing during an incoming early media call. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setRingerDevice | ( | const std::string & | devid | ) |
Sets the sound device used for ringing.
devid | The device name as returned by linphone_core_get_sound_devices |
LINPHONECXX_PUBLIC void linphone::Core::setRootCa | ( | const std::string & | path | ) |
Sets the path to a file or folder containing trusted root CAs (PEM format)
path | The path to a file or folder containing trusted root CAs. |
LINPHONECXX_PUBLIC void linphone::Core::setRootCaData | ( | const std::string & | data | ) |
Sets the trusted root CAs (PEM format)
data | The trusted root CAs as a string |
LINPHONECXX_PUBLIC void linphone::Core::setSessionExpiresRefresherValue | ( | linphone::SessionExpiresRefresher | refresher | ) | const |
Sets the session expires refresher value.
refresher | The SessionExpiresRefresher configuration value |
LINPHONECXX_PUBLIC void linphone::Core::setSipDscp | ( | int | dscp | ) |
Set the DSCP field for SIP signaling channel.
The DSCP defines the quality of service in IP packets.
dscp | The DSCP value to set |
LINPHONECXX_PUBLIC void linphone::Core::setSipNetworkReachable | ( | bool | reachable | ) |
This method is called by the application to notify the linphone core library when the SIP network is reachable.
This is for advanced usage, when SIP and RTP layers are required to use different interfaces. Most applications just need setNetworkReachable().
reachable | true if network is reachable, false otherwise |
LINPHONECXX_PUBLIC void linphone::Core::setSipTransportTimeout | ( | int | timeoutMs | ) |
Set the SIP transport timeout, which represents the maximum time permitted to establish a connection to a SIP server.
timeoutMs | The SIP transport timeout in milliseconds. |
LINPHONECXX_PUBLIC void linphone::Core::setSrtpCryptoSuites | ( | const std::string & | suites | ) |
Set the crypto suites available to the core.
suites | comma separated list of supported suites |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setStaticPicture | ( | const std::string & | path | ) |
Set the path to the image file to stream when "Static picture" is set as the video device.
path | The path to the image file to use. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setStaticPictureFps | ( | float | fps | ) |
Set the frame rate for static picture.
fps | The new frame rate to use for static picture. |
LINPHONECXX_PUBLIC void linphone::Core::setStunServer | ( | const std::string & | server | ) |
Set the STUN server address to use when the firewall policy is set to STUN.
server | The STUN server address to use. |
LINPHONECXX_PUBLIC void linphone::Core::setTag100RelSupportLevel | ( | linphone::SupportLevel | level | ) |
Define what level of support is provided to the 100rel attribute.
level | support level of 100rel |
LINPHONECXX_PUBLIC void linphone::Core::setTextPayloadTypes | ( | const std::list< std::shared_ptr< linphone::PayloadType >> & | payloadTypes | ) |
Redefine the list of the available payload types.
payloadTypes | The new list of payload types. The core does not take ownership on it. |
LINPHONECXX_PUBLIC void linphone::Core::setTextPort | ( | int | port | ) |
Sets the UDP port used for text streaming.
A value if -1 will request the system to allocate the local port randomly. This is recommended in order to avoid firewall warnings.
port | The UDP port to use for text streaming |
LINPHONECXX_PUBLIC void linphone::Core::setTextPortRange | ( | int | minPort, |
int | maxPort | ||
) |
Sets the UDP port range from which to randomly select the port used for text streaming.
minPort | The lower bound of the text port range to use |
maxPort | The upper bound of the text port range to use |
LINPHONECXX_PUBLIC void linphone::Core::setTlsCert | ( | const std::string & | tlsCert | ) |
Sets a TLS certificate used for TLS authentication The certificate won't be stored, you have to set it after each Core startup.
tlsCert | the TLS certificate. |
LINPHONECXX_PUBLIC void linphone::Core::setTlsCertPath | ( | const std::string & | tlsCertPath | ) |
Sets a TLS certificate path used for TLS authentication The path will be stored in the rc file and automatically restored on startup.
tlsCertPath | path to the TLS certificate. |
LINPHONECXX_PUBLIC void linphone::Core::setTlsKey | ( | const std::string & | tlsKey | ) |
Sets a TLS key used for TLS authentication The key won't be stored, you have to set it after each Core startup.
tlsKey | the TLS key. |
LINPHONECXX_PUBLIC void linphone::Core::setTlsKeyPath | ( | const std::string & | tlsKeyPath | ) |
Sets a TLS key path used for TLS authentication The path will be stored in the rc file and automatically restored on startup.
tlsKeyPath | path to the TLS key. |
LINPHONECXX_PUBLIC void linphone::Core::setTone | ( | linphone::ToneID | toneId, |
const std::string & | audiofile | ||
) |
Assign an audio file to be played as a specific tone id.
This function typically allows to customize telephony tones per country.
toneId | the #LinphoneToneId |
audiofile | a wav file to be played or nullptr to disable it. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setTransports | ( | const std::shared_ptr< const linphone::Transports > & | transports | ) |
Sets the ports to be used for each of transport (UDP or TCP) A zero value port for a given transport means the transport is not used.
A value of LC_SIP_TRANSPORT_RANDOM (-1) means the port is to be choosen randomly by the system. A value of LC_SIP_TRANSPORT_DONTBIND (-2) means that the socket will not be bound explicitely, in other words liblinphone won't listen for incoming connections at all. This mode is suitable for a pure client application (ex: a mobile application).
transports | A #LinphoneSipTransports structure giving the ports to use |
LINPHONECXX_PUBLIC void linphone::Core::setUploadBandwidth | ( | int | bandwidth | ) |
Sets maximum available upload bandwidth This is IP bandwidth, in kbit/s.
This information is used by liblinphone together with remote side available bandwidth signaled in SDP messages to properly configure audio & video codec's output bitrate.
bandwidth | the bandwidth in kbits/s, 0 for infinite |
LINPHONECXX_PUBLIC void linphone::Core::setUploadPtime | ( | int | ptime | ) |
Set audio packetization time linphone will send (in absence of requirement from peer) A value of 0 stands for the current codec default packetization time.
ptime | the upload packetization time to set |
LINPHONECXX_PUBLIC void linphone::Core::setUseFiles | ( | bool | yesno | ) |
Ask the core to stream audio from and to files, instead of using the soundcard.
yesno | A boolean value asking to stream audio from and to files or not. |
LINPHONECXX_PUBLIC void linphone::Core::setUseInfoForDtmf | ( | bool | useInfo | ) |
Sets whether SIP INFO is to be used to send digits.
useInfo | A boolean value telling whether to use SIP INFO to send digits |
LINPHONECXX_PUBLIC void linphone::Core::setUserAgent | ( | const std::string & | name, |
const std::string & | version | ||
) |
Set the user agent string used in SIP messages.
Set the user agent string used in SIP messages as "[ua_name]/[version]". No slash character will be printed if nullptr is given to "version". If nullptr is given to "ua_name" and "version" both, the User-agent header will be empty. This function should be called just after linphone_factory_create_core ideally.
name | Name of the user agent. |
version | Version of the user agent. |
LINPHONECXX_PUBLIC void linphone::Core::setUserCertificatesPath | ( | const std::string & | path | ) |
Set the path to the directory storing the user's x509 certificates (used by dtls)
path | The path to the directory to use to store the user's certificates. |
LINPHONECXX_PUBLIC void linphone::Core::setUseRfc2833ForDtmf | ( | bool | useRfc2833 | ) |
Sets whether RFC2833 is to be used to send digits.
useRfc2833 | A boolean value telling whether to use RFC2833 to send digits |
LINPHONECXX_PUBLIC void linphone::Core::setVideoActivationPolicy | ( | const std::shared_ptr< const linphone::VideoActivationPolicy > & | policy | ) |
Sets the default policy for video.
This policy defines whether:
policy | The VideoActivationPolicy to use |
LINPHONECXX_PUBLIC void linphone::Core::setVideoCodecPriorityPolicy | ( | linphone::CodecPriorityPolicy | policy | ) |
Set the priority policy for video codecs (payload types).
Since version 5.3, the default value is CodecPriorityPolicy::Auto unless the core's configuration file describes a list of video payload type to use. This is to preserve backward compatibility for upgrading applications. See CodecPriorityPolicy for more details.
policy | the CodecPriorityPolicy to apply |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setVideoDevice | ( | const std::string & | id | ) |
Sets the active video device.
id | The name of the video device to use as returned by linphone_core_get_video_devices |
LINPHONECXX_PUBLIC void linphone::Core::setVideoDisplayFilter | ( | const std::string & | filterName | ) |
Set the name of the mediastreamer2 filter to be used for rendering video.
This is for advanced users of the library, mainly to workaround hardware/driver bugs.
filterName | the filter name to use or nullptr to use default. |
LINPHONECXX_PUBLIC void linphone::Core::setVideoDscp | ( | int | dscp | ) |
Set the DSCP field for outgoing video streams.
The DSCP defines the quality of service in IP packets.
dscp | The DSCP value to set |
LINPHONECXX_PUBLIC void linphone::Core::setVideoJittcomp | ( | int | milliseconds | ) |
Sets the nominal video jitter buffer size in milliseconds.
The value takes effect immediately for all running and pending calls, if any. A value of 0 disables the jitter buffer.
milliseconds | the jitter buffer size in milliseconds |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setVideoMulticastAddr | ( | const std::string & | ip | ) |
Use to set multicast address to be used for video stream.
ip | an ipv4/6 multicast address. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::setVideoMulticastTtl | ( | int | ttl | ) |
Use to set multicast ttl to be used for video stream.
ttl | value or -1 if not used. [0..255] default value is 1 |
LINPHONECXX_PUBLIC void linphone::Core::setVideoPayloadTypes | ( | const std::list< std::shared_ptr< linphone::PayloadType >> & | payloadTypes | ) |
Redefine the list of the available video payload types.
Calling this function if the video codec priority policy is LinphoneCodecPriorityPolicyAuto turns video codec priority policy to basic scheme, since application is not supposed to control the order of video codecs when LinphoneCodecPriorityPolicyAuto is selected, by definition. (see setVideoCodecPriorityPolicy() )
payloadTypes | The new list of codecs. The core does not take ownership on it. |
LINPHONECXX_PUBLIC void linphone::Core::setVideoPort | ( | int | port | ) |
Sets the UDP port used for video streaming.
A value of -1 will request the system to allocate the local port randomly. This is recommended in order to avoid firewall warnings.
port | The UDP port to use for video streaming |
LINPHONECXX_PUBLIC void linphone::Core::setVideoPortRange | ( | int | minPort, |
int | maxPort | ||
) |
Sets the UDP port range from which to randomly select the port used for video streaming.
minPort | The lower bound of the video port range to use |
maxPort | The upper bound of the video port range to use |
LINPHONECXX_PUBLIC void linphone::Core::setVideoPreset | ( | const std::string & | preset | ) |
Set the video preset to be used for video calls.
preset | The name of the video preset to be used (can be nullptr to use the default video preset). |
LINPHONECXX_PUBLIC void linphone::Core::setZrtpKeyAgreementSuites | ( | const std::list< linphone::ZrtpKeyAgreement > & | keyAgreements | ) |
Redefine the list of prefered ZRTP key agreement algorithms.
keyAgreements | The new list of key agreements algorithms, in order of preference. The core does not take ownership on it. The setting accepts a maximum of 7 algorithms, if the list is longer, only the first 7 available algorithms are selected |
LINPHONECXX_PUBLIC void linphone::Core::setZrtpSecretsFile | ( | const std::string & | file | ) |
Set the path to the file storing the zrtp secrets cache.
file | The path to the file to use to store the zrtp secrets cache. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::soundDeviceCanCapture | ( | const std::string & | device | ) |
Tells whether a specified sound device can capture sound.
device | the device name as returned by linphone_core_get_sound_devices |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::Core::soundDeviceCanPlayback | ( | const std::string & | device | ) |
Tells whether a specified sound device can play sound.
device | the device name as returned by linphone_core_get_sound_devices |
LINPHONECXX_PUBLIC bool linphone::Core::soundResourcesLocked | ( | ) |
Check if a call will need the sound resources in near future (typically an outgoing call that is awaiting response).
In liblinphone, it is not possible to have two independant calls using sound device or camera at the same time. In order to prevent this situation, an application can use soundResourcesLocked() to know whether it is possible at a given time to start a new outgoing call. When the function returns true, an application should not allow the user to start an outgoing call.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::start | ( | ) |
Start a Core object after it has been instantiated and not automatically started.
Also re-initialize a Core object that has been stopped using stop(). Must be called only if GlobalState is either Ready of Off. State will changed to Startup, Configuring and then On.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::Core::startConferenceRecording | ( | const std::string & | path | ) |
Start recording the running conference.
path | Path to the file where the recording will be written |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::startEchoCancellerCalibration | ( | ) |
Starts an echo calibration of the sound devices, in order to find adequate settings for the echo canceler automatically.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::startEchoTester | ( | unsigned int | rate | ) |
Start the simulation of call to test the latency with an external device.
rate | Sound sample rate. |
LINPHONECXX_PUBLIC void linphone::Core::stop | ( | ) |
Stop a Core object after it has been instantiated and started.
If stopped, it can be started again using start(). Must be called only if GlobalState is either On. State will changed to Shutdown and then Off.
LINPHONECXX_PUBLIC void linphone::Core::stopAsync | ( | ) |
Stop asynchronously a Core object after it has been instantiated and started.
State changes to Shutdown then iterate() must be called to allow the Core to end asynchronous tasks (terminate call, etc.). When all tasks are finished, State will change to Off. Must be called only if GlobalState is On. When GlobalState is Off Core can be started again using start().
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::Core::stopConferenceRecording | ( | ) |
Stop recording the running conference.
LINPHONECXX_PUBLIC void linphone::Core::stopRinging | ( | ) |
Whenever the liblinphone is playing a ring to advertise an incoming call or ringback of an outgoing call, this function stops the ringing.
Typical use is to stop ringing when the user requests to ignore the call.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Event> linphone::Core::subscribe | ( | const std::shared_ptr< linphone::Address > & | resource, |
const std::string & | event, | ||
int | expires, | ||
const std::shared_ptr< const linphone::Content > & | body | ||
) |
Create an outgoing subscription, specifying the destination resource, the event name, and an optional content body.
If accepted, the subscription runs for a finite period, but is automatically renewed if not terminated before.
resource | the destination resource |
event | the event name |
expires | the whished duration of the subscription |
body | an optional body, may be nullptr. |
LINPHONECXX_PUBLIC linphone::Status linphone::Core::takePreviewSnapshot | ( | const std::string & | file | ) |
Take a photo of currently from capture device and write it into a jpeg file.
Note that the snapshot is asynchronous, an application shall not assume that the file is created when the function returns.
file | a path where to write the jpeg content. |
LINPHONECXX_PUBLIC bool linphone::Core::tcapLinesMergingEnabled | ( | ) | const |
Check if tcap lines are going to the merged if the capability negotiation (RFC5939) is supported or not.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::terminateAllCalls | ( | ) |
Terminates all the calls.
LINPHONECXX_PUBLIC linphone::Status linphone::Core::terminateConference | ( | ) |
Terminate the running conference.
If it is a local conference, all calls inside it will become back separate calls and will be put in #LinphoneCallPaused state. If it is a conference involving a focus server, all calls inside the conference will be terminated.
|
static |
True if tunnel support was compiled.
|
static |
Return the availability of uPnP.
LINPHONECXX_PUBLIC void linphone::Core::usePreviewWindow | ( | bool | yesno | ) |
Tells the core to use a separate window for local camera preview video, instead of inserting local view within the remote video window.
yesno | true to use a separate window, false to insert the preview in the remote video window. |
|
static |
Tells whether VCARD support is builtin.
LINPHONECXX_PUBLIC void linphone::Core::verifyServerCertificates | ( | bool | yesno | ) |
Specify whether the tls server certificate must be verified when connecting to a SIP/TLS server.
yesno | A boolean value telling whether the tls server certificate must be verified |
LINPHONECXX_PUBLIC void linphone::Core::verifyServerCn | ( | bool | yesno | ) |
Specify whether the tls server certificate common name must be verified when connecting to a SIP/TLS server.
yesno | A boolean value telling whether the tls server certificate common name must be verified |
LINPHONECXX_PUBLIC bool linphone::Core::vibrationOnIncomingCallEnabled | ( | ) |
Gets whether the device will vibrate while an incoming call is ringing (Android only).
LINPHONECXX_PUBLIC bool linphone::Core::videoAdaptiveJittcompEnabled | ( | ) |
Tells whether the video adaptive jitter compensation is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::videoCaptureEnabled | ( | ) |
Tells whether video capture is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::videoDisplayEnabled | ( | ) |
Tells whether video display is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::videoEnabled | ( | ) |
Returns true if either capture or display is enabled, false otherwise.
same as ( videoCaptureEnabled() | videoDisplayEnabled() )
LINPHONECXX_PUBLIC bool linphone::Core::videoMulticastEnabled | ( | ) | const |
Use to get multicast state of video stream.
LINPHONECXX_PUBLIC bool linphone::Core::videoPreviewEnabled | ( | ) | const |
Tells whether video preview is enabled.
LINPHONECXX_PUBLIC bool linphone::Core::videoSupported | ( | ) |
Test if video is supported.
LINPHONECXX_PUBLIC bool linphone::Core::wifiOnlyEnabled | ( | ) |
Tells whether Wifi only mode is enabled or not.
LINPHONECXX_PUBLIC bool linphone::Core::zeroRtpPortForStreamInactiveEnabled | ( | ) | const |
Check if RTP port is set to 0 when a stream is inactive.
LINPHONECXX_PUBLIC bool linphone::Core::zrtpGoClearEnabled | ( | ) | const |
Check if the ZRTP go clear is enabled or not.