webphone
Class SIPNotification.Register

java.lang.Object
  extended by webphone.SIPNotification
      extended by webphone.SIPNotification.Register
Enclosing class:
SIPNotification

public static class SIPNotification.Register
extends SIPNotification

REGISTER notification.
Triggered by: register state changes from registrar endpoints
Event: SIPNotificationListener.onRegister
Fields: REGISTER,line,state,text,main,fcm,user,reason


Field Summary
static intFCM_MAIN
          fcm register for the main account
static intFCM_NO
          not fcm register
static intFCM_SECONDARY
          fcm register for a secondary account
static intFCM_UNREG
          fcm unregister
static intSTATUS_FAILED
          registration failed
static intSTATUS_INPROGRESS
          registration in progress
static intSTATUS_SUCCESS
          registered
static intSTATUS_UNREGISTERED
          deregistered
 
Method Summary
 intgetFcm()
          should not be used (ignore)
 booleangetIsMain()
          true for primary account, false for secondary registrations (if you are using multiple accounts)
 intgetLine()
          register endpoint line number.
 java.lang.StringgetReason()
          failure reason text if any (useful for STATUS_FAILED)
 intgetStatus()
          register state (STATUS_...
 java.lang.StringgetText()
          the status as string
 java.lang.StringgetUser()
          local username (useful if you are using multiple accounts)
 
Methods inherited from class webphone.SIPNotification
getNotificationType, toString
  

Field Detail

STATUS_INPROGRESS

public static final int STATUS_INPROGRESS
registration in progress

See Also:
Constant Field Values

STATUS_SUCCESS

public static final int STATUS_SUCCESS
registered

See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
registration failed

See Also:
Constant Field Values

STATUS_UNREGISTERED

public static final int STATUS_UNREGISTERED
deregistered

See Also:
Constant Field Values

FCM_NO

public static final int FCM_NO
not fcm register

See Also:
Constant Field Values

FCM_MAIN

public static final int FCM_MAIN
fcm register for the main account

See Also:
Constant Field Values

FCM_SECONDARY

public static final int FCM_SECONDARY
fcm register for a secondary account

See Also:
Constant Field Values

FCM_UNREG

public static final int FCM_UNREG
fcm unregister

See Also:
Constant Field Values
 
Method Detail

getLine

public int getLine()
register endpoint line number. should be 0


getStatus

public int getStatus()
register state (STATUS_... constant)


getText

public java.lang.String getText()
the status as string


getIsMain

public boolean getIsMain()
true for primary account, false for secondary registrations (if you are using multiple accounts)


getFcm

public int getFcm()
should not be used (ignore)


getUser

public java.lang.String getUser()
local username (useful if you are using multiple accounts)


getReason

public java.lang.String getReason()
failure reason text if any (useful for STATUS_FAILED)