Registration
class 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.
Functions
Link copied to clipboard
Adds a new subscription.
Link copied to clipboard
Check balance of an account.
Link copied to clipboard
Delete an account Calling this method invalidates account indexes higher than
index.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
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
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
Get registration state of an account.
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
Check whether Do-not-Disturb mode is active on an account.
Link copied to clipboard
Link copied to clipboard
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
open fun queryRate(@Nullable accountId: String, @NonNull number: PeerAddress, @NonNull callback: RateCallback): Handle
open fun queryRate(@Nullable accountId: String, @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
Check if an account supports video.
Link copied to clipboard
Check if an account supports call-through.
Link copied to clipboard
Removes subscription.
Link copied to clipboard
Link copied to clipboard
Save an account.
Link copied to clipboard
Set default account Using this method requires feature Multiple Accounts.
Link copied to clipboard
Link copied to clipboard
TODO Document this
Link copied to clipboard
Update all accounts.
Link copied to clipboard