java.lang.Objectwebphone.SIPNotification
webphone.SIPNotification.Register
public static class SIPNotification.Register
REGISTER notification.
Triggered by: register state changes from registrar endpoints
Event: SIPNotificationListener.onRegister
Fields: REGISTER,line,state,text,main,fcm,user,reason
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
static int |
FCM_MAIN
fcm register for the main account |
static int |
FCM_NO
not fcm register |
static int |
FCM_SECONDARY
fcm register for a secondary account |
static int |
FCM_UNREG
fcm unregister |
static int |
STATUS_FAILED
registration failed (STATUS_REGISTERFAILED) |
static int |
STATUS_INPROGRESS
registration in progress (STATUS_REGISTER) |
static int |
STATUS_SUCCESS
registered (STATUS_REGISTERED) |
static int |
STATUS_UNREGISTERED
deregistered (STATUS_UNREGISTER) |
| Method Summary | |
|---|---|
int |
getFcm()
should not be used (ignore) |
boolean |
getIsMain()
true for primary account, false for secondary registrations (if you are using multiple accounts) |
int |
getLine()
register endpoint line number. |
java.lang.String |
getReason()
failure reason text if any (useful for STATUS_FAILED) |
int |
getReasonCode()
the SIP reason code received from server (-1 if not received; useful for STATUS_FAILED) |
int |
getStatus()
register state (STATUS_... |
java.lang.String |
getText()
the status as string |
java.lang.String |
getUser()
local username (useful if you are using multiple accounts) |
| Methods inherited from class webphone.SIPNotification |
|---|
getNotificationType, getNotificationTypeText, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int STATUS_INPROGRESS
public static final int STATUS_SUCCESS
public static final int STATUS_FAILED
public static final int STATUS_UNREGISTERED
public static final int FCM_NO
public static final int FCM_MAIN
public static final int FCM_SECONDARY
public static final int FCM_UNREG
| Method Detail |
|---|
public int getLine()
public int getStatus()
public java.lang.String getText()
public boolean getIsMain()
public int getFcm()
public java.lang.String getUser()
public java.lang.String getReason()
public int getReasonCode()