webphone
Class SIPNotification

java.lang.Object
  extended by webphone.SIPNotification
Direct Known Subclasses:
SIPNotification.Answer, SIPNotification.BLF, SIPNotification.Block, SIPNotification.CDR, SIPNotification.Chat, SIPNotification.ChatComposing, SIPNotification.ChatReport, SIPNotification.Credit, SIPNotification.DTMF, SIPNotification.Event, SIPNotification.Group, SIPNotification.INFO, SIPNotification.Line, SIPNotification.Log, 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.Start, SIPNotification.Status, SIPNotification.Stop, SIPNotification.USSD, SIPNotification.VAD, SIPNotification.Video, SIPNotification.Vrec

public class SIPNotification
extends java.lang.Object

The SIPNotification object what you receive in your SIPNotificationListener event handlers or by using the GetNotification API.
This is the Outer/Base class for all the other specific SIPNotification objects.
See the "Notifications" chapter in the documentation for more details.


Nested Class Summary
static classSIPNotification.Answer
          ANSWER notification.
Triggered by: API answers
Event: SIPNotificationListener.onAnswer
Fields: ANSWER,details
static classSIPNotification.BLF
          BLF notification.
Triggered by: Busy Lamp Field change
Event: SIPNotificationListener.onBLF
Fields: BLF,peerusername,direction,state,callid
static classSIPNotification.Block
          BLOCK notification.
Triggered by: message blocked/ignored
Event: SIPNotificationListener.onBlock
Fields: BLOCK,type,message
static classSIPNotification.CDR
          CDR notification.
Triggered by: call disconect
Event: SIPNotificationListener.onCDR
Fields: CDR,line, peername,caller,called,peeraddress,connecttime,duration,discparty,reasontext
static classSIPNotification.Chat
          CHAT notification.
Triggered by: incoming chat messages
Event: SIPNotificationListener.onChat
Fields: CHAT,line,peername,text
static classSIPNotification.ChatComposing
          CHATCOMPOSING notification.
Triggered by: "composing" notifications received from peers
Event: SIPNotificationListener.onChatComposing
Fields: CHATCOMPOSING,line,peername,status
static classSIPNotification.ChatReport
          CHATREPORT notification.
Triggered by: IM send state (so you can check if outgoing message sent with the API_SendChat was delivered successfully or failed)
Event: SIPNotificationListener.onChatReport
Fields: CHATREPORT,line,peername,status,statustext,group,md5,id
static classSIPNotification.Credit
          CREDIT notification.
Triggered by: balance info received
Event: SIPNotificationListener.onCredit
Fields: CREDIT,text
static classSIPNotification.DTMF
          DTMF notification.
Triggered by: incoming DTMF.
Event: SIPNotificationListener.onDTMF
Fields: DTMF,line,msg
static classSIPNotification.Event
          EVENT notification.
Triggered by: Important events which should be displayed for the user.
Event: SIPNotificationListener.onEvent
Fields: LOG,TYPE,txt
static classSIPNotification.Group
          GROUP notification.
Triggered by: conference calls
Event: SIPNotificationListener.onGroup
Fields: GROUP,line,peers
static classSIPNotification.INFO
          INFO notification.
Triggered by: incoming/outgoing INFO or DTMF messages
Event: SIPNotificationListener.onINFO
Fields: INFO,type,line,peername,text
static classSIPNotification.Line
          LINE notification.
Triggered by: active line change (the line parameter is the current active line).
Event: SIPNotificationListener.onLine
Fields: LINE,line
static classSIPNotification.Log
          LOG notification.
Triggered by: logs (only if you set the "events" parameter to 3 and also depends on the "loglevel")
Event: SIPNotificationListener.onLog
Fields: LOG,TYPE,txt
static classSIPNotification.MWI
          MWI notification.
Triggered by: Messages-Waiting indicator
Event: SIPNotificationListener.onMWI
Fields: MWI,hasvoicemail,voicemailnumber,to,count,message
static classSIPNotification.NewContact
          NEWUSER notification.
Triggered by: new contact request
Event: SIPNotificationListener.onNewContact
Fields: NEWUSER,usrname,displayname
static classSIPNotification.PlayReady
          PLAYREADY notification.
Triggered by: audio streaming finished
Event: SIPNotificationListener.onPlayReady
Fields: PLAYREADY,line,callid
static classSIPNotification.Popup
          POPUP notification.
Triggered by: announcements
Event: SIPNotificationListener.onPopup
Fields: POPUP,txt
static classSIPNotification.Presence
          PRESENCE notification.
Triggered by: presence changes (peers online status)
Event: SIPNotificationListener.onPresence
Fields: PRESENCE,peername,state,details,displayname,email
static classSIPNotification.Rating
          RATING notification.
Triggered by: rating info received on call setup
Event: SIPNotificationListener.onRating
Fields: RATING,text
static classSIPNotification.Register
          REGISTER notification.
Triggered by: register state changes from registrar endpoints
Event: SIPNotificationListener.onRegister
Fields: REGISTER,line,state,text,main,fcm,user,reason
static classSIPNotification.RTPE
          RTPE notification.
Triggered by: RTP extra header changes
Event: SIPNotificationListener.onRTPE
Fields: RTPE,line,profile,extension
static classSIPNotification.RTPStat
          RTPSTAT notification.
Triggered by: media quality reports
Event: SIPNotificationListener.onRTPStat
Fields: RTPSTAT,quality,sent,rec,issues,loss
static classSIPNotification.RTPT
          RTPT notification.
Triggered by: ED-137 RTP extra header changes
Event: SIPNotificationListener.RTPT
Fields: RTPT,line,PTT-Type,SQU,PTT-ID,SCT,VF,extensionwords
static classSIPNotification.ServerContacts
          SERVERCONTACTS notification.
Triggered by: contact found at voip server
Event: SIPNotificationListener.onServerContacts
Fields: SERVERCONTACTS,text
static classSIPNotification.ShouldReset
          SHOULDRESET notification.
Triggered by: reinit required
Event: SIPNotificationListener.onShouldReset
Fields: SHOULDRESET,reason text
static classSIPNotification.SIP
          SIP notification.
Triggered by: received/sent SIP signaling messages
Event: SIPNotificationListener.onSIP
Fields: SIP,direction,address,message
static classSIPNotification.Start
          START notification.
Triggered by: startup
Event: SIPNotificationListener.onStart
Fields: START,what
static classSIPNotification.Status
          STATUS notification.
Triggered by: SIP session state chang, such as Init, Register, CallSetup, CallConnect, CallDisconnect, etc
You might receive multiple same or similar notifications for the same call state!
Event: SIPNotificationListener.onStatus
Fields: STATUS,line,statustext,peername,localname,endpointtype,peerdisplayname,[callid],online,registered,incall,mute,hold,encrypted,video,group, rtpsent,rtprec,rtploss,rtplosspercet,videohold,videosent,videorec,serverstats
static classSIPNotification.Stop
          STOP notification.
Triggered by: destroy
Event: SIPNotificationListener.onStop
Fields: STOP,api
static classSIPNotification.USSD
          USSD notification.
Triggered by: incoming USSD messages or report about success/failure about the outgoing USSD messages sent by API_SendUSSD.
Event: SIPNotificationListener.onUSSD
Fields: USSD,line,status,text
static classSIPNotification.VAD
          VAD notification.
Triggered by: voice activity
Event: SIPNotificationListener.onVAD
Fields: VAD,parameters (VAD,local_vad: ON local_avg: 0 local_max: 0 local_speaking: no remote_vad: ON remote_avg: 0 remote_max: 0 remote_speaking: no)
static classSIPNotification.Video
          VIDEO notification.
Triggered by: video start/stop events
Event: SIPNotificationListener.onVideo
Fields: VIDEO,startstop,type,line,reason,ip,port,codec,payload,quality,bw,max_bw,fps,max_fps,width,height,profilelevelid,profile,pixelfmt,level,pm,sprop,srtp_alg,srtp_key,srtp_remotekey,device,fmtp
static classSIPNotification.Vrec
          VREC notification.
Triggered by: call record state
Event: SIPNotificationListener.onVrec
Fields: NOTIF,line
 
Field Summary
static intNOTIFICATION_ALL
          all notifications
static intNOTIFICATION_ANSWER
          answer for previous request
static intNOTIFICATION_BLF
          BLF state changes
static intNOTIFICATION_BLOCK
          message blocked/ignored
static intNOTIFICATION_CDR
          call detail record
static intNOTIFICATION_CHAT
          incoming chat messages
static intNOTIFICATION_CHATCOMPOSING
          is composing notifications
static intNOTIFICATION_CHATREPORT
          Chat transmission status
static intNOTIFICATION_CREDIT
          balance state
static intNOTIFICATION_DTMF
          incoming DTMF
static intNOTIFICATION_EVENT
          important events
static intNOTIFICATION_GROUP
          conference calls people
static intNOTIFICATION_INFO
          incoming/outgoing INFO or DTMF messages
static intNOTIFICATION_INVALID
          invalid notification type
static intNOTIFICATION_LINE
          line change
static intNOTIFICATION_LOG
          log or event
static intNOTIFICATION_MWI
          voicemail
static intNOTIFICATION_NEWUSER
          new contact request
static intNOTIFICATION_PLAYREADY
          streaming finished
static intNOTIFICATION_POPUP
          popup message
static intNOTIFICATION_PRESENCE
          presence changes
static intNOTIFICATION_RATING
          call cost
static intNOTIFICATION_REGISTER
          registration state change
static intNOTIFICATION_RTPE
          RTP extra header changes
static intNOTIFICATION_RTPSTAT
          media quality reports
static intNOTIFICATION_RTPT
          ED-137 RTP extra header changes
static intNOTIFICATION_SERVERCONTACTS
          server contacts
static intNOTIFICATION_SHOULDRESET
          restart request
static intNOTIFICATION_SIP
          received/sent SIP signaling messages
static intNOTIFICATION_START
          api or sip stack start
static intNOTIFICATION_STATUS
          state change
static intNOTIFICATION_STOP
          api destroy
static intNOTIFICATION_USSD
          USSD messages
static intNOTIFICATION_VAD
          voice activity
static intNOTIFICATION_VIDEO
          video start/stop
static intNOTIFICATION_VREC
          voice record state
 
Method Summary
 intgetNotificationType()
          Type of the notification (NOTIFICATION_...
 java.lang.StringtoString()
          The whole notification as string (one line with the fields separated by comma)
 

Field Detail

NOTIFICATION_ALL

public static final int NOTIFICATION_ALL
all notifications

See Also:
Constant Field Values

NOTIFICATION_INVALID

public static final int NOTIFICATION_INVALID
invalid notification type

See Also:
Constant Field Values

NOTIFICATION_STATUS

public static final int NOTIFICATION_STATUS
state change

See Also:
Constant Field Values

NOTIFICATION_CDR

public static final int NOTIFICATION_CDR
call detail record

See Also:
Constant Field Values

NOTIFICATION_LOG

public static final int NOTIFICATION_LOG
log or event

See Also:
Constant Field Values

NOTIFICATION_EVENT

public static final int NOTIFICATION_EVENT
important events

See Also:
Constant Field Values

NOTIFICATION_POPUP

public static final int NOTIFICATION_POPUP
popup message

See Also:
Constant Field Values

NOTIFICATION_LINE

public static final int NOTIFICATION_LINE
line change

See Also:
Constant Field Values

NOTIFICATION_REGISTER

public static final int NOTIFICATION_REGISTER
registration state change

See Also:
Constant Field Values

NOTIFICATION_PRESENCE

public static final int NOTIFICATION_PRESENCE
presence changes

See Also:
Constant Field Values

NOTIFICATION_BLF

public static final int NOTIFICATION_BLF
BLF state changes

See Also:
Constant Field Values

NOTIFICATION_DTMF

public static final int NOTIFICATION_DTMF
incoming DTMF

See Also:
Constant Field Values

NOTIFICATION_INFO

public static final int NOTIFICATION_INFO
incoming/outgoing INFO or DTMF messages

See Also:
Constant Field Values

NOTIFICATION_USSD

public static final int NOTIFICATION_USSD
USSD messages

See Also:
Constant Field Values

NOTIFICATION_CHAT

public static final int NOTIFICATION_CHAT
incoming chat messages

See Also:
Constant Field Values

NOTIFICATION_CHATREPORT

public static final int NOTIFICATION_CHATREPORT
Chat transmission status

See Also:
Constant Field Values

NOTIFICATION_CHATCOMPOSING

public static final int NOTIFICATION_CHATCOMPOSING
is composing notifications

See Also:
Constant Field Values

NOTIFICATION_START

public static final int NOTIFICATION_START
api or sip stack start

See Also:
Constant Field Values

NOTIFICATION_STOP

public static final int NOTIFICATION_STOP
api destroy

See Also:
Constant Field Values

NOTIFICATION_SHOULDRESET

public static final int NOTIFICATION_SHOULDRESET
restart request

See Also:
Constant Field Values

NOTIFICATION_GROUP

public static final int NOTIFICATION_GROUP
conference calls people

See Also:
Constant Field Values

NOTIFICATION_VREC

public static final int NOTIFICATION_VREC
voice record state

See Also:
Constant Field Values

NOTIFICATION_PLAYREADY

public static final int NOTIFICATION_PLAYREADY
streaming finished

See Also:
Constant Field Values

NOTIFICATION_SIP

public static final int NOTIFICATION_SIP
received/sent SIP signaling messages

See Also:
Constant Field Values

NOTIFICATION_BLOCK

public static final int NOTIFICATION_BLOCK
message blocked/ignored

See Also:
Constant Field Values

NOTIFICATION_VAD

public static final int NOTIFICATION_VAD
voice activity

See Also:
Constant Field Values

NOTIFICATION_RTPE

public static final int NOTIFICATION_RTPE
RTP extra header changes

See Also:
Constant Field Values

NOTIFICATION_RTPT

public static final int NOTIFICATION_RTPT
ED-137 RTP extra header changes

See Also:
Constant Field Values

NOTIFICATION_RTPSTAT

public static final int NOTIFICATION_RTPSTAT
media quality reports

See Also:
Constant Field Values

NOTIFICATION_CREDIT

public static final int NOTIFICATION_CREDIT
balance state

See Also:
Constant Field Values

NOTIFICATION_RATING

public static final int NOTIFICATION_RATING
call cost

See Also:
Constant Field Values

NOTIFICATION_MWI

public static final int NOTIFICATION_MWI
voicemail

See Also:
Constant Field Values

NOTIFICATION_SERVERCONTACTS

public static final int NOTIFICATION_SERVERCONTACTS
server contacts

See Also:
Constant Field Values

NOTIFICATION_NEWUSER

public static final int NOTIFICATION_NEWUSER
new contact request

See Also:
Constant Field Values

NOTIFICATION_ANSWER

public static final int NOTIFICATION_ANSWER
answer for previous request

See Also:
Constant Field Values

NOTIFICATION_VIDEO

public static final int NOTIFICATION_VIDEO
video start/stop

See Also:
Constant Field Values
Method Detail

toString

public java.lang.String toString()
The whole notification as string (one line with the fields separated by comma)

Overrides:
toString in class java.lang.Object

getNotificationType

public int getNotificationType()
Type of the notification (NOTIFICATION_... constant)