java.lang.Objectwebphone.SIPNotificationListener
public class SIPNotificationListener
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 | |
---|---|
void | onAll(SIPNotification e)
receive all notifications (this will be triggered for all events) |
void | onAnswer(SIPNotification.Answer e)
receive ANSWER notifications (answer for outband requests) |
void | onBLF(SIPNotification.BLF e)
receive BLF notifications (busy lamp field change) |
void | onBlock(SIPNotification.Block e)
receive BLOCK notifications (session blocked) |
void | onCDR(SIPNotification.CDR e)
receive CDR notifications (call detail record after calls) |
void | onChat(SIPNotification.Chat e)
receive CHAT notifications (instant message) |
void | onChatComposing(SIPNotification.ChatComposing e)
receive CHATCOMPOSING notifications (typing events) |
void | onChatReport(SIPNotification.ChatReport e)
receive CHATREPORT notifications (IM delivery) |
void | onCredit(SIPNotification.Credit e)
receive CREDIT notifications (detected user balance details) |
void | onDTMF(SIPNotification.DTMF e)
receive DTMF notifications (incoming DTMF digits) |
void | onEvent(SIPNotification.Event e)
receive EVENT notifications (important EVENT, WARNING, ERROR messages) |
void | onGroup(SIPNotification.Group e)
receive GROUP notifications (conference group members) |
void | onINFO(SIPNotification.INFO e)
receive INFO notifications (incoming INFO or DTMF) |
void | onLine(SIPNotification.Line e)
receive LINE notifications (on active channel change) |
void | onLog(SIPNotification.Log e)
receive LOG notifications (log EVENT,WARNING,ERROR,CRITICAL or RTP) |
void | onMWI(SIPNotification.MWI e)
receive MWI notifications (on pending voicemail) |
void | onNewContact(SIPNotification.NewContact e)
receive NEWUSER notifications (new contact request) |
void | onPlayReady(SIPNotification.PlayReady e)
receive PLAYREADY notifications (audio stream play finished) |
void | onSRS(SIPNotification.SRS e)
receive SRS notifications (SIPREC Session Recording Server) |
void | onPopup(SIPNotification.Popup e)
receive POPUP notifications (might be displayed for the user) |
void | onPresence(SIPNotification.Presence e)
receive PRESENCE notifications (presence change) |
void | onRating(SIPNotification.Rating e)
receive RATING notifications (detected call cost details) |
void | onRegister(SIPNotification.Register e)
receive REGISTER notifications (register state change) |
void | onRTPE(SIPNotification.RTPE e)
receive RTPE notifications (RTP extra headers) |
void | onRTPStat(SIPNotification.RTPStat e)
receive RTPSTAT notifications (media quality report) |
void | onRTPT(SIPNotification.RTPT e)
receive RTPT notifications (ED-137 RTP extra header changes) |
void | onServerContacts(SIPNotification.ServerContacts e)
receive SERVERCONTACTS notifications (contact found) |
void | onShouldReset(SIPNotification.ShouldReset e)
receive SHOULDRESET notifications (on network changed) |
void | onSIP(SIPNotification.SIP e)
receive SIP notifications (SIP signaling) |
void | onStart(SIPNotification.Start e)
receive START notifications (API and SIP stack start) |
void | onStatus(SIPNotification.Status e)
receive STATUS notifications (on session state change) |
void | onStop(SIPNotification.Stop e)
receive STOP notifications (on terminated) |
void | onUSSD(SIPNotification.USSD e)
receive USSD notifications (incoming USSD) |
void | onVAD(SIPNotification.VAD e)
receive VAD notifications (voice activity detection) |
void | onVideo(SIPNotification.Video e)
receive VIDEO notifications (video start/stop) |
void | onVrec(SIPNotification.Vrec e)
receive VREC notifications (voice recording start/stop) |
Constructor Detail |
---|
public SIPNotificationListener()
Method Detail |
---|
public void onAll(SIPNotification e)
public void onLog(SIPNotification.Log e)
public void onLine(SIPNotification.Line e)
public void onStatus(SIPNotification.Status e)
public void onRegister(SIPNotification.Register e)
public void onPresence(SIPNotification.Presence e)
public void onBLF(SIPNotification.BLF e)
public void onDTMF(SIPNotification.DTMF e)
public void onINFO(SIPNotification.INFO e)
public void onUSSD(SIPNotification.USSD e)
public void onChat(SIPNotification.Chat e)
public void onChatReport(SIPNotification.ChatReport e)
public void onChatComposing(SIPNotification.ChatComposing e)
public void onCDR(SIPNotification.CDR e)
public void onStart(SIPNotification.Start e)
public void onStop(SIPNotification.Stop e)
public void onShouldReset(SIPNotification.ShouldReset e)
public void onPopup(SIPNotification.Popup e)
public void onEvent(SIPNotification.Event e)
public void onGroup(SIPNotification.Group e)
public void onVrec(SIPNotification.Vrec e)
public void onPlayReady(SIPNotification.PlayReady e)
public void onSIP(SIPNotification.SRS e)
public void onSIP(SIPNotification.SIP e)
public void onBlock(SIPNotification.Block e)
public void onVAD(SIPNotification.VAD e)
public void onRTPE(SIPNotification.RTPE e)
public void onRTPT(SIPNotification.RTPT e)
public void onRTPStat(SIPNotification.RTPStat e)
public void onCredit(SIPNotification.Credit e)
public void onRating(SIPNotification.Rating e)
public void onServerContacts(SIPNotification.ServerContacts e)
public void onMWI(SIPNotification.MWI e)
public void onNewContact(SIPNotification.NewContact e)
public void onAnswer(SIPNotification.Answer e)
public void onVideo(SIPNotification.Video e)