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


Nested Class Summary
 
Nested classes/interfaces inherited from class webphone.SIPNotification
SIPNotification.Account, SIPNotification.AI, SIPNotification.Answer, SIPNotification.APIResult, SIPNotification.BLF, SIPNotification.Block, SIPNotification.CDR, SIPNotification.Chat, SIPNotification.ChatComposing, SIPNotification.ChatReport, SIPNotification.Credit, SIPNotification.DTMF, SIPNotification.Event, SIPNotification.Group, SIPNotification.INFO, SIPNotification.LicKey, SIPNotification.Line, SIPNotification.Log, SIPNotification.Media, SIPNotification.MWI, SIPNotification.NewContact, SIPNotification.PlayReady, SIPNotification.Popup, SIPNotification.Presence, SIPNotification.Rating, SIPNotification.Register, SIPNotification.RTPE, SIPNotification.RTPStat, SIPNotification.RTPT, SIPNotification.ServerContacts, SIPNotification.ShouldReset, SIPNotification.SIP, SIPNotification.SRS, SIPNotification.Start, SIPNotification.Status, SIPNotification.Stop, SIPNotification.USSD, SIPNotification.VAD, SIPNotification.Video, SIPNotification.Vrec
 
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)
 
Fields inherited from class webphone.SIPNotification
NOTIFICATION_ACCOUNT, NOTIFICATION_AI, NOTIFICATION_ALL, NOTIFICATION_ANSWER, NOTIFICATION_APIRESULT, NOTIFICATION_BLF, NOTIFICATION_BLOCK, NOTIFICATION_CDR, NOTIFICATION_CHAT, NOTIFICATION_CHATCOMPOSING, NOTIFICATION_CHATREPORT, NOTIFICATION_CREDIT, NOTIFICATION_DTMF, NOTIFICATION_EVENT, NOTIFICATION_GROUP, NOTIFICATION_INFO, NOTIFICATION_INVALID, NOTIFICATION_LICKEY, NOTIFICATION_LINE, NOTIFICATION_LOG, NOTIFICATION_MEDIA, NOTIFICATION_MWI, NOTIFICATION_NEWUSER, NOTIFICATION_PLAYREADY, NOTIFICATION_POPUP, NOTIFICATION_PRESENCE, NOTIFICATION_RATING, NOTIFICATION_REGISTER, NOTIFICATION_RTPE, NOTIFICATION_RTPSTAT, NOTIFICATION_RTPT, NOTIFICATION_SERVERCONTACTS, NOTIFICATION_SHOULDRESET, NOTIFICATION_SIP, NOTIFICATION_SRS, NOTIFICATION_START, NOTIFICATION_STATUS, NOTIFICATION_STOP, NOTIFICATION_USSD, NOTIFICATION_VAD, NOTIFICATION_VIDEO, NOTIFICATION_VREC
 
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

STATUS_INPROGRESS

public static final int STATUS_INPROGRESS
registration in progress (STATUS_REGISTER)

See Also:
Constant Field Values

STATUS_SUCCESS

public static final int STATUS_SUCCESS
registered (STATUS_REGISTERED)

See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
registration failed (STATUS_REGISTERFAILED)

See Also:
Constant Field Values

STATUS_UNREGISTERED

public static final int STATUS_UNREGISTERED
deregistered (STATUS_UNREGISTER)

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)


getReasonCode

public int getReasonCode()
the SIP reason code received from server (-1 if not received; useful for STATUS_FAILED)