org.asteriskjava.pbx.asterisk.wrap.events.AgentConnectEvent 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!
package org.asteriskjava.pbx.asterisk.wrap.events;
import org.asteriskjava.pbx.InvalidChannelName;
import org.asteriskjava.util.Log;
import org.asteriskjava.util.LogFactory;
public class AgentConnectEvent extends ChannelEventHelper {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unused")
private static final Log logger = LogFactory.getLog(AgentConnectEvent.class);
private String queue;
private String agentInterface;
public AgentConnectEvent(final org.asteriskjava.manager.event.AgentConnectEvent event) throws InvalidChannelName {
super(event.getChannel(), event.getUniqueId(), event.getCallerIdNum(), event.getCallerIdName());
agentInterface = event.getInterface();
queue = event.getQueue();
}
public String getQueueName() {
return queue;
}
public String getAgentInterface() {
return agentInterface;
}
}