All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.manager.event.PriEventEvent Maven / Gradle / Ivy

There is a newer version: 3.40.1
Show newest version
package org.asteriskjava.manager.event;

/**
 * This event is implemented in channels/chan_dahdi.c.

* Available since Asterisk 1.6.1 * * @author srt * @version $Id: PriEventEvent.java 1230 2009-02-06 02:32:40Z sprior $ * @since 1.0.0 */ public class PriEventEvent extends ManagerEvent { private static final long serialVersionUID = 3257069450639290810L; private String priEvent; private Integer priEventCode; private String dChannel; private Integer span; public PriEventEvent(Object source) { super(source); } /** * Returns the textual representation of the event code.

* This is one of *

    *
  • "On hook" *
  • "Ring/Answered" *
  • "Wink/Flash" *
  • "Alarm" *
  • "No more alarm" *
  • "HDLC Abort" *
  • "HDLC Overrun" *
  • "HDLC Bad FCS" *
  • "Dial Complete" *
  • "Ringer On" *
  • "Ringer Off" *
  • "Hook Transition Complete" *
  • "Bits Changed" *
  • "Pulse Start" *
  • "Timer Expired" *
  • "Timer Ping" *
  • "Polarity Reversal" *
  • "Ring Begin" *
* * @return the textual representation of the event code. * @see #getPriEventCode() */ public String getPriEvent() { return priEvent; } public void setPriEvent(String priEvent) { this.priEvent = priEvent; } /** * Returns the numerical pri event code. * * @return the numerical pri event code. * @see #getPriEvent() */ public Integer getPriEventCode() { return priEventCode; } public void setPriEventCode(Integer priEventCode) { this.priEventCode = priEventCode; } /** * Returns the D-Channel the event occurred on. * * @return the D-Channel the event occurred on. */ public String getDChannel() { return dChannel; } public void setDChannel(String dChannel) { this.dChannel = dChannel; } /** * Returns the span the event occurred on. * * @return the span the event occurred on. */ public Integer getSpan() { return span; } public void setSpan(Integer span) { this.span = span; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy