public interface AccountEventsHandler
Modifier and Type | Method and Description |
---|---|
default void |
onAccountCallOwnershipChanged(Account account,
Call call,
OwnershipChange action)
Notify upon call ownership changed
Providing information upon call ownership change.
|
default void |
onAccountChatMessageReceived(Account account,
java.lang.String pPeer,
java.lang.String pContent)
Notify upon Chat message was received
Notify upon Chat message was received , provides the sender and the content of the message
|
default void |
onAccountExtendedError(Account account,
ExtendedError error)
Notify upon account extended error occurs
Event fired when extended error in account occurs, providing detailed information for the error in the
ExtendedError object.
|
default void |
onAccountIncomingCall(Account account,
Call call)
Notify upon Incoming Call
Notification for incoming call
|
default void |
onAccountRetryingRegistration(Account account,
int isRetrying,
int inSeconds)
Notify upon Account is retrying registration
Registration or unregistration is going to be retried automatically
|
default void |
onAccountSipHeaderFields(Account account,
java.util.List<HeaderField> headerFields)
SIP header dump for a user registration
Dumps the header of a SIP message from a SIP registration.
|
default void |
onAccountStatusChanged(Account account,
AccountStatus status,
int statusCode)
Notify upon Account status is changed
Notify upon Account status is changed, provide which account and the status it is changed to.
|
default void |
onAccountUserSipOutboundMissing(Account account)
Warning for missing SIP Outbound support at the server
Happens when there is a SIP account with SIP Outbound enabled but the
server rejects the registrations with the error code 439, usually with
the text "First Hop Lacks Outbound Support".
|
default void |
onStunNetworkDiscovered(Account account,
NetworkType networkType)
Notify upon STUN discovered network type
|
default void onAccountStatusChanged(Account account, AccountStatus status, int statusCode)
account
- The account which status is changedstatus
- What status the account is changed tostatusCode
- The status representation as integerAccountStatus
default void onAccountRetryingRegistration(Account account, int isRetrying, int inSeconds)
account
- Account object of the account which registration is retryingisRetrying
- Gives information if the event is register or unregister 1 = registering, 0 = unregisteringinSeconds
- The (un)registration will be retried in this many seconds
approximately (the event could have been in the queue for unknown period already)Account
default void onAccountIncomingCall(Account account, Call call)
account
- Account that receives the callcall
- The call object holding handle to the incoming callCall
default void onAccountChatMessageReceived(Account account, java.lang.String pPeer, java.lang.String pContent)
account
- Account that receives the messagepPeer
- The message senderpContent
- Contents of the messageAccount
default void onAccountExtendedError(Account account, ExtendedError error)
account
- Account that received the errorerror
- The error object that provides full information regarding the errorExtendedError
default void onAccountUserSipOutboundMissing(Account account)
account
- The user which got the registration errorExtendedError
default void onAccountCallOwnershipChanged(Account account, Call call, OwnershipChange action)
account
- Account whose call ownership is changedcall
- The call which ownership is changedaction
- The type of change that is happend (Relieve, Acquired or NA)Call OwnershipChange
default void onAccountSipHeaderFields(Account account, java.util.List<HeaderField> headerFields)
account
- The account which got the registration responseheaderFields
- The header fields arrayHeaderField
default void onStunNetworkDiscovered(Account account, NetworkType networkType)
account
- The account which status is changednetworkType
- The discovered network typeNetworkType