webphone
Class SIPNotificationListener

java.lang.Object
  extended by webphone.SIPNotificationListener

public class SIPNotificationListener
extends java.lang.Object

SIPNotificationListener interface to receive SIPNotification events
You will need to extend this class and override its member functions to receive the SIPNotification event objects.
Don't make any blocking functions calls from here as that will block also the JVoIP event handler.

Example:
  class MyNotificationListener extends SIPNotificationListener
  {
    void onStatus( SIPNotification.Status e)
    {
        System.out.println(e.toString());
    }
  }
  
  new MyNotificationListener();


See the example code and the "Notifications" chapter in the documentation and more details.


Constructor Summary
SIPNotificationListener()
           
 
Method Summary
 voidonAll(SIPNotification e)
          receive all notifications (this will be triggered for all events)
 voidonAnswer(SIPNotification.Answer e)
          receive ANSWER notifications (answer for outband requests)
 voidonBLF(SIPNotification.BLF e)
          receive BLF notifications (busy lamp field change)
 voidonBlock(SIPNotification.Block e)
          receive BLOCK notifications (session blocked)
 voidonCDR(SIPNotification.CDR e)
          receive CDR notifications (call detail record after calls)
 voidonChat(SIPNotification.Chat e)
          receive CHAT notifications (instant message)
 voidonChatComposing(SIPNotification.ChatComposing e)
          receive CHATCOMPOSING notifications (typing events)
 voidonChatReport(SIPNotification.ChatReport e)
          receive CHATREPORT notifications (IM delivery)
 voidonCredit(SIPNotification.Credit e)
          receive CREDIT notifications (detected user balance details)
 voidonDTMF(SIPNotification.DTMF e)
          receive DTMF notifications (incoming DTMF digits)
 voidonEvent(SIPNotification.Event e)
          receive EVENT notifications (important EVENT, WARNING, ERROR messages)
 voidonGroup(SIPNotification.Group e)
          receive GROUP notifications (conference group members)
 voidonINFO(SIPNotification.INFO e)
          receive INFO notifications (incoming INFO or DTMF)
 voidonLine(SIPNotification.Line e)
          receive LINE notifications (on active channel change)
 voidonLog(SIPNotification.Log e)
          receive LOG notifications (log EVENT,WARNING,ERROR,CRITICAL or RTP)
 voidonMWI(SIPNotification.MWI e)
          receive MWI notifications (on pending voicemail)
 voidonNewContact(SIPNotification.NewContact e)
          receive NEWUSER notifications (new contact request)
 voidonPlayReady(SIPNotification.PlayReady e)
          receive PLAYREADY notifications (audio stream play finished)
voidonSRS(SIPNotification.SRS e)
         receive SRS notifications (SIPREC Session Recording Server)
 voidonPopup(SIPNotification.Popup e)
          receive POPUP notifications (might be displayed for the user)
 voidonPresence(SIPNotification.Presence e)
          receive PRESENCE notifications (presence change)
 voidonRating(SIPNotification.Rating e)
          receive RATING notifications (detected call cost details)
 voidonRegister(SIPNotification.Register e)
          receive REGISTER notifications (register state change)
 voidonRTPE(SIPNotification.RTPE e)
          receive RTPE notifications (RTP extra headers)
 voidonRTPStat(SIPNotification.RTPStat e)
          receive RTPSTAT notifications (media quality report)
 voidonRTPT(SIPNotification.RTPT e)
          receive RTPT notifications (ED-137 RTP extra header changes)
 voidonServerContacts(SIPNotification.ServerContacts e)
          receive SERVERCONTACTS notifications (contact found)
 voidonShouldReset(SIPNotification.ShouldReset e)
          receive SHOULDRESET notifications (on network changed)
 voidonSIP(SIPNotification.SIP e)
          receive SIP notifications (SIP signaling)
 voidonStart(SIPNotification.Start e)
          receive START notifications (API and SIP stack start)
 voidonStatus(SIPNotification.Status e)
          receive STATUS notifications (on session state change)
 voidonStop(SIPNotification.Stop e)
          receive STOP notifications (on terminated)
 voidonUSSD(SIPNotification.USSD e)
          receive USSD notifications (incoming USSD)
 voidonVAD(SIPNotification.VAD e)
          receive VAD notifications (voice activity detection)
 voidonVideo(SIPNotification.Video e)
          receive VIDEO notifications (video start/stop)
 voidonVrec(SIPNotification.Vrec e)
          receive VREC notifications (voice recording start/stop)
   

Constructor Detail

SIPNotificationListener

public SIPNotificationListener()
Method Detail

onAll

public void onAll(SIPNotification e)
receive all notifications (this will be triggered for all events)


onLog

public void onLog(SIPNotification.Log e)
receive LOG notifications (log EVENT,WARNING,ERROR,CRITICAL or RTP)


onLine

public void onLine(SIPNotification.Line e)
receive LINE notifications (on active channel change)


onStatus

public void onStatus(SIPNotification.Status e)
receive STATUS notifications (on session state change)


onRegister

public void onRegister(SIPNotification.Register e)
receive REGISTER notifications (register state change)


onPresence

public void onPresence(SIPNotification.Presence e)
receive PRESENCE notifications (presence change)


onBLF

public void onBLF(SIPNotification.BLF e)
receive BLF notifications (busy lamp field change)


onDTMF

public void onDTMF(SIPNotification.DTMF e)
receive DTMF notifications (incoming DTMF digits)


onINFO

public void onINFO(SIPNotification.INFO e)
receive INFO notifications (incoming INFO or DTMF)


onUSSD

public void onUSSD(SIPNotification.USSD e)
receive USSD notifications (incoming USSD)


onChat

public void onChat(SIPNotification.Chat e)
receive CHAT notifications (instant message)


onChatReport

public void onChatReport(SIPNotification.ChatReport e)
receive CHATREPORT notifications (IM delivery)


onChatComposing

public void onChatComposing(SIPNotification.ChatComposing e)
receive CHATCOMPOSING notifications (typing events)


onCDR

public void onCDR(SIPNotification.CDR e)
receive CDR notifications (call detail record after calls)


onStart

public void onStart(SIPNotification.Start e)
receive START notifications (API and SIP stack start)


onStop

public void onStop(SIPNotification.Stop e)
receive STOP notifications (on terminated)


onShouldReset

public void onShouldReset(SIPNotification.ShouldReset e)
receive SHOULDRESET notifications (on network changed)


onPopup

public void onPopup(SIPNotification.Popup e)
receive POPUP notifications (might be displayed for the user)


onEvent

public void onEvent(SIPNotification.Event e)
receive EVENT notifications (important EVENT, WARNING, ERROR messages)


onGroup

public void onGroup(SIPNotification.Group e)
receive GROUP notifications (conference group members)


onVrec

public void onVrec(SIPNotification.Vrec e)
receive VREC notifications (voice recording start/stop)


onPlayReady

public void onPlayReady(SIPNotification.PlayReady e)
receive PLAYREADY notifications (audio stream play finished)


onSRS

public void onSIP(SIPNotification.SRS e)
receive SRS notifications (SIPREC Session Recording Server)

onSIP

public void onSIP(SIPNotification.SIP e)
receive SIP notifications (SIP signaling)


onBlock

public void onBlock(SIPNotification.Block e)
receive BLOCK notifications (session blocked)


onVAD

public void onVAD(SIPNotification.VAD e)
receive VAD notifications (voice activity detection)


onRTPE

public void onRTPE(SIPNotification.RTPE e)
receive RTPE notifications (RTP extra headers)


onRTPT

public void onRTPT(SIPNotification.RTPT e)
receive RTPT notifications (ED-137 RTP extra header changes)


onRTPStat

public void onRTPStat(SIPNotification.RTPStat e)
receive RTPSTAT notifications (media quality report)


onCredit

public void onCredit(SIPNotification.Credit e)
receive CREDIT notifications (detected user balance details)


onRating

public void onRating(SIPNotification.Rating e)
receive RATING notifications (detected call cost details)


onServerContacts

public void onServerContacts(SIPNotification.ServerContacts e)
receive SERVERCONTACTS notifications (contact found)


onMWI

public void onMWI(SIPNotification.MWI e)
receive MWI notifications (on pending voicemail)


onNewContact

public void onNewContact(SIPNotification.NewContact e)
receive NEWUSER notifications (new contact request)


onAnswer

public void onAnswer(SIPNotification.Answer e)
receive ANSWER notifications (answer for outband requests)


onVideo

public void onVideo(SIPNotification.Video e)
receive VIDEO notifications (video start/stop)