org.asteriskjava.manager.event.DahdiShowChannelsEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
The newest version!
/*
* Copyright 2004-2006 Stefan Reuter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.asteriskjava.manager.event;
/**
* A DahdiShowChannelsEvent is triggered in response to a DahdiShowChannelsAction and shows the state of
* a Dahdi channel.
*
* @author srt
* @version $Id$
* @see org.asteriskjava.manager.action.DahdiShowChannelsAction
*/
public class DahdiShowChannelsEvent extends ResponseEvent {
/**
* Serial version identifier
*/
private static final long serialVersionUID = -3613642267527361400L;
private Integer Dahdichannel;
private String signalling;
private String signallingcode;
private Boolean dnd;
private String alarm;
private String uniqueid;
private String accountcode;
private String channel;
public String getAccountcode() {
return accountcode;
}
public void setAccountcode(String accountcode) {
this.accountcode = accountcode;
}
public String getChannel() {
return channel;
}
public void setChannel(String channel) {
this.channel = channel;
}
public Integer getDahdichannel() {
return Dahdichannel;
}
public void setDahdichannel(Integer Dahdichannel) {
this.Dahdichannel = Dahdichannel;
}
public String getSignallingcode() {
return signallingcode;
}
public void setSignallingcode(String signallingcode) {
this.signallingcode = signallingcode;
}
public String getUniqueid() {
return uniqueid;
}
public void setUniqueid(String uniqueid) {
this.uniqueid = uniqueid;
}
/**
* @param source
*/
public DahdiShowChannelsEvent(Object source) {
super(source);
}
/**
* Returns the signalling of this Dahdi channel.
* Possible values are:
*
* - E & M Immediate
* - E & M Wink
* - E & M E1
* - Feature Group D (DTMF)
* - Feature Group D (MF)
* - Feature Group B (MF)
* - E911 (MF)
* - FXS Loopstart
* - FXS Groundstart
* - FXS Kewlstart
* - FXO Loopstart
* - FXO Groundstart
* - FXO Kewlstart
* - PRI Signalling
* - R2 Signalling
* - SF (Tone) Signalling Immediate
* - SF (Tone) Signalling Wink
* - SF (Tone) Signalling with Feature Group D (DTMF)
* - SF (Tone) Signalling with Feature Group D (MF)
* - SF (Tone) Signalling with Feature Group B (MF)
* - GR-303 Signalling with FXOKS
* - GR-303 Signalling with FXSKS
* - Pseudo Signalling
*
*/
public String getSignalling() {
return signalling;
}
/**
* Sets the signalling of this Dahdi channel.
*/
public void setSignalling(String signalling) {
this.signalling = signalling;
}
/**
* Returns whether dnd (do not disturb) is enabled for this Dahdi channel.
*
* @return Boolean.TRUE if dnd is enabled, Boolean.FALSE if it is disabled,
* null
if not set.
* @since 0.3
*/
public Boolean getDnd() {
return dnd;
}
/**
* Sets whether dnd (do not disturb) is enabled for this Dahdi channel.
*
* @param dnd Boolean.TRUE if dnd is enabled, Boolean.FALSE if it is disabled.
* @since 0.3
*/
public void setDnd(Boolean dnd) {
this.dnd = dnd;
}
/**
* Returns the alarm state of this Dahdi channel.
* This may be one of
*
* - Red Alarm
* - Yellow Alarm
* - Blue Alarm
* - Recovering
* - Loopback
* - Not Open
* - No Alarm
*
*/
public String getAlarm() {
return alarm;
}
/**
* Sets the alarm state of this Dahdi channel.
*/
public void setAlarm(String alarm) {
this.alarm = alarm;
}
}