Registration

Methods for manipulating registration of the accounts.

If feature Multiple Accounts is provided, all registered accounts are identified by either account ID or account index. Whether it is better to use ID or index depends on the situation as there are some advantages and some disadvantages for either approach.

Account indexes have constant time complexity. However, they may not identify the same account after some methods, which are marked as having such side effect. Account indexes are generally preserved over application restart but your code should not depend on that.

Account IDs, on the other hand, have logarithmic time complexity but are persistent and identify the same account until the account is deleted.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addBlf(@Nullable accountId: String, uri: String, @NonNull blfSource: String, @NonNull blfSourceItemId: String)
Adds a new BLF uri to the list of subscribed uris.
Link copied to clipboard
Adds a new subscription.
Link copied to clipboard
open fun checkBalance(@IntRange(from = 0) index: Int)
open fun checkBalance(@Nullable accountId: String)
Check balance of an account.
Link copied to clipboard
open fun deleteAccount(@IntRange(from = 0) index: Int)
Delete an account Calling this method invalidates account indexes higher than index.
open fun deleteAccount(@Nullable accountId: String)
Delete an account.
Link copied to clipboard
open fun excludeNonStandardSipHeader(@IntRange(from = 0) index: Int, @NonNull method: String, @NonNull responseCode: String, @NonNull name: String)
open fun excludeNonStandardSipHeader(@Nullable accountId: String, @NonNull method: String, @NonNull responseCode: String, @NonNull name: String)
Exclude non-standard SIP header.
Link copied to clipboard
Link copied to clipboard
Get account XML.
Link copied to clipboard
Get number of accounts.
Link copied to clipboard
Get account ID for an account index.
Link copied to clipboard
Get account ID for a SIPIS server selector.
Link copied to clipboard
open fun getAccountIndex(@Nullable account: String): Int
Get index of an account.
Link copied to clipboard
Get IDs of all accounts.
Link copied to clipboard
Retrieves an array of all subscribed BLF uris.
Link copied to clipboard
Retrieves an array of all subscription identifiers.
Link copied to clipboard
Get balance record of an account.
Link copied to clipboard
open fun getBlf(@Nullable accountId: String, @NonNull uri: String): BusyLampField
Get dialog info for the given URI and account if available.
Link copied to clipboard
Get default account XML.
Link copied to clipboard
Get default account ID.
Link copied to clipboard
Get index of the default account.
Link copied to clipboard
Get indexes of all disabled account.
Link copied to clipboard
Get IDs of all disabled accounts.
Link copied to clipboard
Get indexes of all enabled accounts.
Link copied to clipboard
Get IDs of all enabled accounts.
Link copied to clipboard
Link copied to clipboard
Get voicemail record for an account.
Link copied to clipboard
open fun includeNonStandardSipHeader(@IntRange(from = 0) index: Int, @NonNull method: String, @NonNull responseCode: String, @NonNull name: String, @NonNull value: String)
open fun includeNonStandardSipHeader(@Nullable accountId: String, @NonNull method: String, @NonNull responseCode: String, @NonNull name: String, @NonNull value: String)
Include non-standard SIP header.
Link copied to clipboard
Check if an account is enabled.
Link copied to clipboard
open fun isDndActive(@Nullable accountId: String): Boolean
Check whether Do-not-Disturb mode is active on an account.
Link copied to clipboard
open fun moveAccount(@IntRange(from = 0) from: Int, @IntRange(from = 0) to: Int)
Move an account to another index.
Link copied to clipboard
open fun queryRate(@IntRange(from = 0) index: Int, @NonNull number: PeerAddress, @NonNull callback: RateCallback): Handle
open fun queryRate(@IntRange(from = 0) index: Int, @NonNull number: String, @NonNull callback: RateCallback): Handle
Query rate record for a number.
Link copied to clipboard
Check if an account supports call-through.
Link copied to clipboard
Check if an account supports messaging.
Link copied to clipboard
open fun readyForVideo(@IntRange(from = 0) index: Int): Boolean
Check if an account supports video.
Link copied to clipboard
Check if an account supports call-through.
Link copied to clipboard
open fun removeBlf(@Nullable accountId: String, @NonNull uri: String, @NonNull blfSource: String, @NonNull blfSourceItemId: String)
Removes a BLF uri from the list of subscribed uris.
Link copied to clipboard
open fun removeSubscription(@NonNull subscriptionId: String)
Removes subscription.
Link copied to clipboard
Link copied to clipboard
Save an account.
Link copied to clipboard
open fun setDefaultAccount(@IntRange(from = "-1") index: Int)
Set default account Using this method requires feature Multiple Accounts.
Link copied to clipboard
open fun setImmediateDnd(@Nullable accountId: String, dnd: Boolean)
Link copied to clipboard
TODO Document this
Link copied to clipboard
Update all accounts.