Package org.linphone.core
Interface AccountParams
public interface AccountParams
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomParam(String key, String value) Set one custom parameter to thisAccountParams.clone()Instantiate a new account params with values from source.Get the audio video conference factory uri.Get enablement status of RTCP feedback (also known as AVPF profile).intGet the interval between regular RTCP reports when using AVPF/SAVPF.Get the CCMP server address.Get the CCMP user ID.Get the conference factory uri.Get the conference factory uri.Returns the contact parameters.Return the contact URI parameters.Get the custom contact address previously used when registering to the SIP
server.getCustomParam(String key) Get the custom parameter with key to thisAccountParams.Get the domain name of the given account params.intGet the account params expires.Deprecated.Get the identity address of the account params.getIdkey()Get the idkey property of aAccountParams.booleanChecks if encryption is mandatory for instant messages or not.Gets the prefix set for this account params.Gets the ISO country code set for the international prefix in this account
params.Get the base x3dh algorithm.Get the x3dh server url.Gets the Message Waiting Indication server address.longGets the native pointer used by this class to make native method calls.Get The policy that is used to pass through NATs/firewalls when using this
account params.Gets the account picture URI if set, null otherwise.intGet default privacy policy for all calls routed through this proxy.intGet the publish expiration time in second.booleanIndicates whether to add to the contact parameters the push notification
information.Returns the push notification configuration.Get the route of the collector end-point when using quality reporting.intGet the interval between interval reports when using quality reporting.getRealm()Get the realm of the given account params.Get the persistent reference key associated to the account params.booleanIndicates whether to add to the contact parameters the push notification
information.Address[]Gets the list of the routes set for this account params.Deprecated.Get the account params SIP proxy or registrar address.String[]Gets the list of supported tags.Returns the transport type of the server address.booleanReturn whether or not the international prefix will automaticaly be used for
calls and chats.Gets the object stored in this object user's dataGets the Voicemail address.booleanIndicates whether chat messages sent by this account in a {@link ChatRoom#Backend#Basic}
chat room will be using CPIM format or not.booleanReturn whether or not the + should be replaced by the International Call
Prefix.booleanTell if the proxy is used as the only route.booleanTell if the PUBLISH is enabled.booleanGets whether push notifications are available or not (Android & iOS only).booleanIndicates whether quality statistics during call should be stored and sent to a
collector according to RFC 6035.booleanReturns whether the account params is enabled or not.booleanReturns whether RTP bundle mode is assumed.booleanReturns whether RTP bundle mode (also known as Media Multiplexing) is enabled.booleanGets whether the account will unREGISTER when the core stops but only if the
push notifications are not allowed for the account.newWithConfig(Core lc, int index) Create a newAccountParamsobject from a configuration.voidSet the audio video conference factory uri.voidsetAvpfMode(AVPFMode mode) Enable the use of RTCP feedback (also known as AVPF profile).voidsetAvpfRrInterval(int interval) Set the interval between regular RTCP reports when using AVPF/SAVPF.voidsetCcmpServerUrl(String url) Set the CCMP server address.voidsetConferenceFactoryAddress(Address address) Set the conference factory uri.voidDeprecated.voidsetContactParameters(String contactParams) Set optional contact parameters that will be added to the contact information
sent in the registration.voidsetContactUriParameters(String contactUriParams) Set optional contact parameters that will be added to the contact information
sent in the registration, inside the URI.voidsetCpimInBasicChatRoomEnabled(boolean enable) Indicates whether chat messages sent by this account in a {@link ChatRoom#Backend#Basic}
chat room will be using CPIM format or not.voidsetCustomContact(Address contact) Set a an optional custom contact address to be used when registering to the SIP
server.voidsetDialEscapePlusEnabled(boolean enable) Set whether liblinphone should replace "+" by international calling prefix
(ICP) in dialed numbers (passed to linphone_core_invite).voidsetExpires(int expires) Sets the registration expiration time in seconds.intsetIdentityAddress(Address identity) Sets the user identity as a SIP address.voidSet the idkey property on the given account params.voidsetInstantMessagingEncryptionMandatory(boolean mandatory) Defines whether the encryption of instant messages is mandatory.voidsetInternationalPrefix(String prefix) Sets an international prefix (country code) to be automatically prepended when
inviting a number withCore.invite(java.lang.String)or when usingAccount.normalizePhoneNumber(java.lang.String)
.voidsetInternationalPrefixIsoCountryCode(String prefixIsoCountryCode) Sets the ISO country code matching the international prefix.voidsetLimeAlgo(String algo) Set the base(s) x3dh algorithm.voidsetLimeServerUrl(String url) Set the x3dh server url.voidsetMwiServerAddress(Address address) Sets the Message Waiting Indication server address.voidsetNatPolicy(NatPolicy policy) Set the policy to use to pass through NATs/firewalls when using this account
params.voidsetOutboundProxyEnabled(boolean enable) If enabled, the proxy will be used as the only route.voidsetPictureUri(String uri) Sets an URI for the account picture.voidsetPrivacy(int privacy) Set default privacy policy for all calls routed through this proxy.voidsetPublishEnabled(boolean enable) Indicates either or not, PUBLISH must be issued for thisAccountParams.voidsetPublishExpires(int expires) Set the publish expiration time in second.voidsetPushNotificationAllowed(boolean allow) Indicates whether to add to the contact parameters the push notification
information.voidSets the push notification configuration.voidsetQualityReportingCollector(String collector) Set the route of the collector end-point when using quality reporting.voidsetQualityReportingEnabled(boolean enable) Indicates whether quality statistics during call should be stored and sent to a
collector according to RFC 6035.voidsetQualityReportingInterval(int interval) Set the interval between 2 interval reports sending when using quality
reporting.voidSet the realm of the given account params.voidAssociate a persistent reference key to the account params.voidsetRegisterEnabled(boolean enable) Indicates either or not, REGISTRATION must be issued for thisAccountParams
.voidsetRemotePushNotificationAllowed(boolean allow) Indicates whether to add to the contact parameters the push notification
information.intsetRoutesAddresses(Address[] routes) Sets a list of SIP route.voidsetRtpBundleAssumptionEnabled(boolean value) Indicates whether support of rtp bundle is assumed.voidsetRtpBundleEnabled(boolean value) Enables or disables RTP bundle mode (Media Multiplexing).intsetServerAddr(String serverAddress) Deprecated.intsetServerAddress(Address serverAddress) Sets the SIP proxy or registrar address.voidsetSupportedTagsList(String[] supportedTags) Sets the list of supported tags.voidsetTransport(TransportType transport) Sets the transport type of the server address.voidsetUnregisterAtStopEnabled(boolean unregister) Sets whether the account will unREGISTER when the core stops but only if the
push notifications are not allowed for the account.voidsetUseInternationalPrefixForCallsAndChats(boolean enable) If enabled, the international prefix will automaticaly be used for calls and
chats.voidsetUserData(Object data) Sets the object to store in this object user's datavoidsetVoicemailAddress(Address address) Sets the Voicemail address.toString()
-
Method Details
-
getAudioVideoConferenceFactoryAddress
Get the audio video conference factory uri.
- Returns:
- The
Addressof the audio video conference factory.
-
setAudioVideoConferenceFactoryAddress
Set the audio video conference factory uri.
- Parameters:
address- TheAddressto set.
-
getAvpfMode
AVPFMode getAvpfMode()Get enablement status of RTCP feedback (also known as AVPF profile).
- Returns:
- the enablement mode, which can be
AVPFMode.Default(use
LinphoneCore's mode),AVPFMode.Enabled(avpf is enabled), orAVPFMode.Disabled
(disabled).
-
setAvpfMode
Enable the use of RTCP feedback (also known as AVPF profile).
- Parameters:
mode- the enablement mode, which can beAVPFMode.Default(use
LinphoneCore's mode),AVPFMode.Enabled(avpf is enabled), orAVPFMode.Disabled
(disabled).
-
getAvpfRrInterval
int getAvpfRrInterval()Get the interval between regular RTCP reports when using AVPF/SAVPF.
- Returns:
- The interval in seconds.
-
setAvpfRrInterval
void setAvpfRrInterval(int interval) Set the interval between regular RTCP reports when using AVPF/SAVPF.
- Parameters:
interval- The interval in seconds (between 0 and 5 seconds).
-
getCcmpServerUrl
Get the CCMP server address.
- Returns:
- The URL of the CCMP server.
-
setCcmpServerUrl
Set the CCMP server address.
- Parameters:
url- The URL of the CCMP server.
-
getCcmpUserId
Get the CCMP user ID.
- Returns:
- The ID of the CCMP user.
-
getConferenceFactoryAddress
Get the conference factory uri.
- Returns:
- The
Addressof the conference factory.
-
setConferenceFactoryAddress
Set the conference factory uri.
- Parameters:
address- TheAddressto set.
-
getConferenceFactoryUri
Get the conference factory uri.
- Returns:
- The uri of the conference factory.
-
setConferenceFactoryUri
Deprecated.Set the conference factory uri.
- Parameters:
uri- The uri of the conference factory.
deprecated: 16/08/2023 UsesetConferenceFactoryAddress(org.linphone.core.Address)instead.
-
getContactParameters
Returns the contact parameters.
- Returns:
- The previously set contact parameters.
-
setContactParameters
Set optional contact parameters that will be added to the contact information
sent in the registration.
- Parameters:
contactParams- A string contaning the additional parameters in text form,
like "myparam=something;myparam2=something_else"
The main use case for this function is provide the proxy additional information
regarding the user agent, like for example unique identifier or apple push id.
As an example, the contact address in the SIP register sent will look like
<sip:joe@15.128.128.93:50421>;apple-push-id=43143-DFE23F-2323-FA2232.
The main use case for this function is provide the proxy additional information
regarding the user agent, like for example unique identifier or apple push id.
As an example, the contact address in the SIP register sent will look like
<sip:joe@15.128.128.93:50421>;apple-push-id=43143-DFE23F-2323-FA2232.
-
getContactUriParameters
Return the contact URI parameters.
- Returns:
- The previously set contact URI parameters.
-
setContactUriParameters
Set optional contact parameters that will be added to the contact information
sent in the registration, inside the URI.
- Parameters:
contactUriParams- A string containing the additional parameters in text
form, like "myparam=something;myparam2=something_else"
The main use case for this function is provide the proxy additional information
regarding the user agent, like for example unique identifier or apple push id.
As an example, the contact address in the SIP register sent will look like
<sip:joe@15.128.128.93:50421;apple-push-id=43143-DFE23F-2323-FA2232>.
The main use case for this function is provide the proxy additional information
regarding the user agent, like for example unique identifier or apple push id.
As an example, the contact address in the SIP register sent will look like
<sip:joe@15.128.128.93:50421;apple-push-id=43143-DFE23F-2323-FA2232>.
-
isCpimInBasicChatRoomEnabled
boolean isCpimInBasicChatRoomEnabled()Indicates whether chat messages sent by this account in a {@link ChatRoom#Backend#Basic}
chat room will be using CPIM format or not.
By default SIP SIMPLE format is used for "basic" chat rooms, CPIM is only used
for {@link ChatRoom#Backend#FlexisipChat} chat rooms. see:
https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Features/Instant%20Messaging/Reply%20to%20a%20specific%20message/- Returns:
- true if chat messages will be sent out in CPIM format, false if chat
messages will be sent out as SIP SIMPLE.
-
setCpimInBasicChatRoomEnabled
void setCpimInBasicChatRoomEnabled(boolean enable) Indicates whether chat messages sent by this account in a {@link ChatRoom#Backend#Basic}
chat room will be using CPIM format or not.
- Parameters:
enable- true to send messages in CPIM format, false to keep using the SIP
SIMPLE format.
-
getCustomContact
Get the custom contact address previously used when registering to the SIP
server.
- Returns:
- a
Address
-
setCustomContact
Set a an optional custom contact address to be used when registering to the SIP
server.
This is typically used to supply an alternative SIP address to call in case the
main one is not reachable.- Parameters:
contact- aAddressthe optional alternative contact address.
-
isDialEscapePlusEnabled
boolean isDialEscapePlusEnabled()Return whether or not the + should be replaced by the International Call
Prefix.
- Returns:
- Whether liblinphone should replace "+" by the International Call
Prefix. in dialed numbers (passed toCore.invite(java.lang.String)).
-
setDialEscapePlusEnabled
void setDialEscapePlusEnabled(boolean enable) Set whether liblinphone should replace "+" by international calling prefix
(ICP) in dialed numbers (passed to linphone_core_invite).
- Parameters:
enable- true to replace + by the international prefix, false otherwise.
-
getDomain
Get the domain name of the given account params.
- Returns:
- The domain name of the account params.
-
getExpires
int getExpires()Get the account params expires.
- Returns:
- The duration of registration.
-
setExpires
void setExpires(int expires) Sets the registration expiration time in seconds.
- Parameters:
expires- The expiration time to set.
-
getIdentity
Deprecated.Get the identity of the account params.
- Returns:
- The SIP identity that belongs to this account params.
deprecated: 01/03/2021 UsegetIdentityAddress()instead.
-
getIdentityAddress
Get the identity address of the account params.
- Returns:
- The SIP identity that belongs to this account params.
-
setIdentityAddress
Sets the user identity as a SIP address.
This identity is normally formed with display name, username and domain, such
as: Alice <sip:alice@example.net> The REGISTER messages will have from and to
set to this identity.
This identity is normally formed with display name, username and domain, such
as: Alice <sip:alice@example.net> The REGISTER messages will have from and to
set to this identity.- Parameters:
identity- TheAddressof the identity to set.- Returns:
- 0 if successful, -1 otherwise.
-
getIdkey
- Returns:
- The idkey string, or null.
-
setIdkey
Set the idkey property on the given account params.
This property can the be referenced by another account params 'depends_on' to
create a dependency relation between them.- Parameters:
idkey- The idkey string to associate to the givenAccountParams.
-
getInstantMessagingEncryptionMandatory
boolean getInstantMessagingEncryptionMandatory()Checks if encryption is mandatory for instant messages or not.
- Returns:
- true if encryption is mandatory; false otherwise.
-
setInstantMessagingEncryptionMandatory
void setInstantMessagingEncryptionMandatory(boolean mandatory) Defines whether the encryption of instant messages is mandatory.
If it is, clear text messages will be denied.- Parameters:
mandatory- true to set it mandatory; false otherwise.
-
getInternationalPrefix
Gets the prefix set for this account params.
- Returns:
- The international prefix if set, null otherwise.
-
setInternationalPrefix
Sets an international prefix (country code) to be automatically prepended when
inviting a number withCore.invite(java.lang.String)or when usingAccount.normalizePhoneNumber(java.lang.String)
.
This international prefix shall usually be the country code of the country
where the user is living, without "+". warning: It is also referred as 'ccc'
(Calling Country Code) and must not be confused with the ICP (International
Call Prefix). The ICP is a fixed property of the country dial plan, and cannot
be set in theAccountParams.- Parameters:
prefix- The prefix to set (withouth the +).
-
getInternationalPrefixIsoCountryCode
Gets the ISO country code set for the international prefix in this account
params.
- Returns:
- The international prefix ISO country code if set, null otherwise.
-
setInternationalPrefixIsoCountryCode
Sets the ISO country code matching the international prefix.
- Parameters:
prefixIsoCountryCode- The ISO country code to set.
-
isPushNotificationAvailable
boolean isPushNotificationAvailable()Gets whether push notifications are available or not (Android & iOS only).
- Returns:
- true if push notifications are available, false otherwise
-
getLimeAlgo
Get the base x3dh algorithm.
- Returns:
- The x3dh base algorithm.
-
setLimeAlgo
Set the base(s) x3dh algorithm.
accept an ordered comma separated list (without space) of lime base algorithms
accepted values are a combination of: c25519, c448 and c25519mlk512 null is
also valid, it will unset the value- Parameters:
algo- The x3dh base algorithm.
-
getLimeServerUrl
Get the x3dh server url.
- Returns:
- The x3dh server url.
-
setLimeServerUrl
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.- Parameters:
url- The x3dh server url.
-
getMwiServerAddress
Gets the Message Waiting Indication server address.
- Returns:
- The Message Waiting Indication server address.
-
setMwiServerAddress
Sets the Message Waiting Indication server address.
- Parameters:
address- The Message Waiting Indication server address.
-
getNatPolicy
Get The policy that is used to pass through NATs/firewalls when using this
account params.
If it is set to null, the default NAT policy from the core will be used
instead.- Returns:
- The
NatPolicyobject in use.
see:Core.getNatPolicy()
-
setNatPolicy
Set the policy to use to pass through NATs/firewalls when using this account
params.
If it is set to null, the default NAT policy from the core will be used
instead.- Parameters:
policy- TheNatPolicyobject.
see:Core.setNatPolicy(org.linphone.core.NatPolicy)
-
isOutboundProxyEnabled
boolean isOutboundProxyEnabled()Tell if the proxy is used as the only route.
- Returns:
- enable true if enabled, false otherwise.
-
setOutboundProxyEnabled
void setOutboundProxyEnabled(boolean enable) If enabled, the proxy will be used as the only route.
warning: This function will replace or remove any routes previously set with
setRoutesAddresses(org.linphone.core.Address[])if any. For that reason#enableOutboundProxy
shall not be used withsetRoutesAddresses(org.linphone.core.Address[]). Application shall consider
either using the restrictive notion of outbound proxy (a single route identical
to the registrar URI), either the notion of predefined route-set where routes
can be multiple and different from registrar URI.- Parameters:
enable- true to enable, false otherwise.
-
getPictureUri
Gets the account picture URI if set, null otherwise.
- Returns:
- The account picture URI.
-
setPictureUri
Sets an URI for the account picture.
- Parameters:
uri- The account picture URI.
-
getPrivacy
int getPrivacy()Get default privacy policy for all calls routed through this proxy.
- Returns:
- Privacy mode as LinphonePrivacyMask
-
setPrivacy
void setPrivacy(int privacy) Set default privacy policy for all calls routed through this proxy.
- Parameters:
privacy- LinphonePrivacyMask to configure privacy
-
isPublishEnabled
boolean isPublishEnabled()Tell if the PUBLISH is enabled.
- Returns:
- true if PUBLISH request is enabled for this proxy.
-
setPublishEnabled
void setPublishEnabled(boolean enable) - Parameters:
enable- If true, publish will be engaged.
-
getPublishExpires
int getPublishExpires()Get the publish expiration time in second.
Default value is the registration expiration value.- Returns:
- The expire time in seconds.
-
setPublishExpires
void setPublishExpires(int expires) Set the publish expiration time in second.
- Parameters:
expires- The expire time in seconds.
-
getPushNotificationAllowed
boolean getPushNotificationAllowed()Indicates whether to add to the contact parameters the push notification
information.
For IOS, it indicates for VOIP push notification.- Returns:
- true if push notification informations should be added, false
otherwise.
-
setPushNotificationAllowed
void setPushNotificationAllowed(boolean allow) Indicates whether to add to the contact parameters the push notification
information.
For IOS, it indicates for VOIP push notification.- Parameters:
allow- true to allow push notification information, false otherwise.
-
getPushNotificationConfig
Returns the push notification configuration.
- Returns:
- The
PushNotificationConfigobject.
-
setPushNotificationConfig
Sets the push notification configuration.
- Parameters:
config- ThePushNotificationConfigobject.
-
getQualityReportingCollector
Get the route of the collector end-point when using quality reporting.
This SIP address should be used on server-side to process packets directly
before discarding packets. Collector address should be a non existing account
and will not receive any messages. If null, reports will be send to the proxy
domain.- Returns:
- The SIP address of the collector end-point.
-
setQualityReportingCollector
Set the route of the collector end-point when using quality reporting.
This SIP address should be used on server-side to process packets directly
before discarding packets. Collector address should be a non existing account
and will not receive any messages. If null, reports will be send to the proxy
domain.- Parameters:
collector- route of the collector end-point, if null PUBLISH will be sent
to the proxy domain.
-
isQualityReportingEnabled
boolean isQualityReportingEnabled()Indicates whether quality statistics during call should be stored and sent to a
collector according to RFC 6035.
- Returns:
- true if quality repotring is enabled, false otherwise.
-
setQualityReportingEnabled
void setQualityReportingEnabled(boolean enable) Indicates whether quality statistics during call should be stored and sent to a
collector according to RFC 6035.
- Parameters:
enable- true to store quality statistics and send them to the collector,
false to disable it.
-
getQualityReportingInterval
int getQualityReportingInterval()Get the interval between interval reports when using quality reporting.
- Returns:
- The interval in seconds, 0 means interval reports are disabled.
-
setQualityReportingInterval
void setQualityReportingInterval(int interval) Set the interval between 2 interval reports sending when using quality
reporting.
If call exceed interval size, an interval report will be sent to the collector.
On call termination, a session report will be sent for the remaining period.
Value must be 0 (disabled) or positive.- Parameters:
interval- The interval in seconds, 0 means interval reports are disabled.
-
getRealm
Get the realm of the given account params.
This is optional, but recommended as it allows digest authentication context to
be re-used accross subsequent SIP requests, which reduces by almost half the
number of SIP rmessages exchanged between a client and a server. The server is
required to support the qop=auth digest authentication mode to benefit from
this feature. see: rfc7616 https://datatracker.ietf.org/doc/html/rfc7616- Returns:
- The realm of the account params.
-
setRealm
Set the realm of the given account params.
This is optional, but recommended as it allows digest authentication context to
be re-used accross subsequent SIP requests, which reduces by almost half the
number of SIP rmessages exchanged between a client and a server. The server is
required to support the qop=auth digest authentication mode to benefit from
this feature. see: rfc7616 https://datatracker.ietf.org/doc/html/rfc7616- Parameters:
realm- New realm value.
-
getRefKey
Get the persistent reference key associated to the account params.
The reference key can be for example an id to an external database. It is
stored in the config file, thus can survive to process exits/restarts.- Returns:
- The reference key string that has been associated to the account
params, or null if none has been associated.
-
setRefKey
Associate a persistent reference key to the account params.
The reference key can be for example an id to an external database. It is
stored in the config file, thus can survive to process exits/restarts.- Parameters:
refkey- The reference key string to associate to the account params.
-
isRegisterEnabled
boolean isRegisterEnabled()Returns whether the account params is enabled or not.
- Returns:
- true if registration to the proxy is enabled.
-
setRegisterEnabled
void setRegisterEnabled(boolean enable) - Parameters:
enable- If true, registration will be engaged.
-
getRemotePushNotificationAllowed
boolean getRemotePushNotificationAllowed()Indicates whether to add to the contact parameters the push notification
information.
- Returns:
- true if remote push notification informations should be added, false
otherwise.
-
setRemotePushNotificationAllowed
void setRemotePushNotificationAllowed(boolean allow) Indicates whether to add to the contact parameters the push notification
information.
- Parameters:
allow- true to allow remote push notification information, false
otherwise.
-
getRoutesAddresses
Gets the list of the routes set for this account params.
- Returns:
- The list of routes.
-
setRoutesAddresses
Sets a list of SIP route.
When a route is set, all outgoing calls will go to the route's destination if
this account is the default one (seeCore.setDefaultAccount(org.linphone.core.Account)).
warning: This function shall not be used in conjunction with#enableOutboundProxy
.- Parameters:
routes- A list of routes.- Returns:
- -1 if routes are invalid, 0 otherwise.
-
isRtpBundleAssumptionEnabled
boolean isRtpBundleAssumptionEnabled()Returns whether RTP bundle mode is assumed.
See https://datatracker.ietf.org/doc/html/rfc8843 for more information.
See https://datatracker.ietf.org/doc/html/rfc8843 for more information.- Returns:
- a boolean indicating when rtp bundle support is assumed.
-
setRtpBundleAssumptionEnabled
void setRtpBundleAssumptionEnabled(boolean value) Indicates whether support of rtp bundle is assumed.
See#enableRtpBundlefor background information about rtp bundle.
Assumption that RTP bundling support allows interesting optimizations, such as
not gathering RTCP candidates, and not gathering candidates for video stream
when making an outgoing call. This setting is meaningful only if rtp bundle is
enabled. See https://datatracker.ietf.org/doc/html/rfc8843 for more information
about the feature.
See#enableRtpBundlefor background information about rtp bundle.
Assumption that RTP bundling support allows interesting optimizations, such as
not gathering RTCP candidates, and not gathering candidates for video stream
when making an outgoing call. This setting is meaningful only if rtp bundle is
enabled. See https://datatracker.ietf.org/doc/html/rfc8843 for more information
about the feature.- Parameters:
value- a boolean to indicate whether RTP bundle support can be assumed.
-
isRtpBundleEnabled
boolean isRtpBundleEnabled()Returns whether RTP bundle mode (also known as Media Multiplexing) is enabled.
See https://datatracker.ietf.org/doc/html/rfc8843 for more information.
See https://datatracker.ietf.org/doc/html/rfc8843 for more information.- Returns:
- a boolean indicating the enablement of rtp bundle mode.
-
setRtpBundleEnabled
void setRtpBundleEnabled(boolean 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.
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.- Parameters:
value- a boolean to indicate whether the feature is to be enabled.
-
getServerAddr
Deprecated.Get the account params proxy address.
- Returns:
- The proxy's SIP address.
deprecated: 01/03/2021 UsegetServerAddress()instead.
-
setServerAddr
Deprecated.Sets the proxy address.
Examples of valid sip proxy address are:
-IP address: sip:87.98.157.38
-IP address with port: sip:87.98.157.38:5062
-hostnames : sip:sip.example.net- Parameters:
serverAddress- The proxy address to set.- Returns:
- 0 if successful, -1 otherwise.
deprecated: 01/03/2021 UsesetServerAddress(org.linphone.core.Address)instead.
-
getServerAddress
Get the account params SIP proxy or registrar address.
- Returns:
- The proxy's SIP
Address.
-
setServerAddress
Sets the SIP proxy or registrar address.
Examples of valid sip proxy address are:
-IP address: sip:87.98.157.38
-IP address with port: sip:87.98.157.38:5062
-hostnames : sip:sip.example.net- Parameters:
serverAddress- The proxy asAddressto set.- Returns:
- 0 if successful, -1 otherwise.
-
getSupportedTagsList
Gets the list of supported tags.
- Returns:
- The list of supported tags .
-
setSupportedTagsList
Sets the list of supported tags.
- Parameters:
supportedTags- The list of supported tags .
-
getTransport
TransportType getTransport()Returns the transport type of the server address.
- Returns:
- The
TransportTypeof the server address.
-
setTransport
Sets the transport type of the server address.
- Parameters:
transport- TheTransportTypeto set.
-
isUnregisterAtStopEnabled
boolean isUnregisterAtStopEnabled()Gets whether the account will unREGISTER when the core stops but only if the
push notifications are not allowed for the account.
- Returns:
- true if the account will unREGISTER at stop, false otherwise.
-
setUnregisterAtStopEnabled
void setUnregisterAtStopEnabled(boolean unregister) Sets whether the account will unREGISTER when the core stops but only if the
push notifications are not allowed for the account.
- Parameters:
unregister- true to unregister the account, false otherwise.
-
getUseInternationalPrefixForCallsAndChats
boolean getUseInternationalPrefixForCallsAndChats()Return whether or not the international prefix will automaticaly be used for
calls and chats.
- Returns:
- Whether we should use international prefix automatically for calls.
-
setUseInternationalPrefixForCallsAndChats
void setUseInternationalPrefixForCallsAndChats(boolean enable) If enabled, the international prefix will automaticaly be used for calls and
chats.
- Parameters:
enable- true to use the international prefix for calls, false otherwise.
-
getVoicemailAddress
Gets the Voicemail address.
- Returns:
- The Voicemail address.
-
setVoicemailAddress
Sets the Voicemail address.
- Parameters:
address- The Voicemail address.
-
addCustomParam
- Parameters:
key- key of the searched parameter.value- value of the searched parameter.
-
clone
Instantiate a new account params with values from source.
- Returns:
- The newly created
AccountParamsobject.
-
getCustomParam
- Parameters:
key- key of the searched parameter.- Returns:
- The value of the parameter with key if found or an empty string
otherwise.
-
newWithConfig
- Parameters:
lc- TheCoreobject.index- The index of the configuration.- Returns:
- The newly created
AccountParamsobject.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-