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

org.asteriskjava.pbx.asterisk.wrap.events.PeerEntryEvent Maven / Gradle / Ivy

There is a newer version: 3.41.0
Show newest version
package org.asteriskjava.pbx.asterisk.wrap.events;

import org.asteriskjava.pbx.EndPoint;
import org.asteriskjava.pbx.PBX;
import org.asteriskjava.pbx.PBXFactory;
import org.asteriskjava.pbx.TechType;

public class PeerEntryEvent extends ResponseEvent
{
    private static final long serialVersionUID = 1L;

    private final EndPoint peer;

    public PeerEntryEvent(final org.asteriskjava.manager.event.PeerEntryEvent event)
    {
        super(event);

        PBX pbx = PBXFactory.getActivePBX();
        this.peer = pbx.buildEndPoint(TechType.valueOf(event.getChannelType()), event.getObjectName());
    }

    public EndPoint getPeer()
    {
        return this.peer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy