org.asteriskjava.pbx.asterisk.wrap.events.PeerStatusEvent 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.
package org.asteriskjava.pbx.asterisk.wrap.events;
import org.asteriskjava.pbx.EndPoint;
import org.asteriskjava.pbx.PBXFactory;
import org.asteriskjava.pbx.internal.core.AsteriskPBX;
public class PeerStatusEvent extends ManagerEvent
{
private static final long serialVersionUID = 1L;
private final EndPoint peer;
public PeerStatusEvent(final org.asteriskjava.manager.event.PeerStatusEvent event)
{
super(event);
final AsteriskPBX pbx = (AsteriskPBX) PBXFactory.getActivePBX();
this.peer = pbx.buildEndPoint(event.getPeer());// registerChannel(event.getPeer(),
// Channel.UNKNOWN_UNIQUE_ID);
}
public EndPoint getPeer()
{
return this.peer;
}
}