webphone
Class SIPNotification.MWI

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

public static class SIPNotification.MWI
extends SIPNotification

MWI notification.
Triggered by: Messages-Waiting indicator
Event: SIPNotificationListener.onMWI
Fields: MWI,hasvoicemail,voicemailnumber,to,count,message


Field Summary
static intENUM_VAL1
          enum_comment
static intENUM_VAL2
          enum_comment
 
Method Summary
 intgetCount()
          number of pending messages (Messages-Waiting)
 booleangetHasMessage()
          hasvoicemail: “yes” or “no” (Messages-Waiting indicator, whether if there are message(s) pending)
 java.lang.StringgetMessage()
          message text if sent by the server (Voice-Message)
 java.lang.StringgetTo()
          username from the SIP To header (Message-Account; usually the local account username, useful if you have multiple accounts)
 java.lang.StringgetVMNumber()
          the voicemail access number (as configured or as received in Message-Account)
 
Methods inherited from class webphone.SIPNotification
getNotificationType, toString
  

Field Detail

ENUM_VAL1

public static final int ENUM_VAL1
enum_comment

See Also:
Constant Field Values

ENUM_VAL2

public static final int ENUM_VAL2
enum_comment

See Also:
Constant Field Values
 
Method Detail

getHasMessage

public boolean getHasMessage()
hasvoicemail: “yes” or “no” (Messages-Waiting indicator, whether if there are message(s) pending)


getVMNumber

public java.lang.String getVMNumber()
the voicemail access number (as configured or as received in Message-Account)


getTo

public java.lang.String getTo()
username from the SIP To header (Message-Account; usually the local account username, useful if you have multiple accounts)


getCount

public int getCount()
number of pending messages (Messages-Waiting)


getMessage

public java.lang.String getMessage()
message text if sent by the server (Voice-Message)