org.asteriskjava.pbx.EndPoint 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;
/**
* Provides an abstract interface for entities which can be dialed.
*
* This encompasses entities such as: Phone extensions SIPPeers Asterisk
* extensions External phone numbers
*
* @author bsutton
*
*/
public interface EndPoint extends Comparable
{
boolean isSame(EndPoint rhs);
boolean isLocal();
boolean isSIP();
/**
* Returns the fully qualified name of the EndPoint including the tech. e.g.
* SIP/100
*
* @return
*/
String getFullyQualifiedName();
/**
* Returns the simple name of the EndPoint sans the tech. e.g. SIP/100 would
* be returned as 100.
*
* @return
*/
String getSimpleName();
/**
* Returns the simple name of a SIP EndPoint sans the tech. e.g. SIP/100
* would be returned as 100. If the endpoint is not actually a SIP end point
* then this method returns the full end point name.
*
*
* @return
*/
String getSIPSimpleName();
/**
* Returns true if the tech is not know for this end point.
*
* @return
*/
boolean isUnknown();
/**
* Returns the Tech that is used to reach this endpoint.
*
* @return
*/
TechType getTech();
boolean isEmpty();
/**
* Sets the tech on the end point to the specified tech.
*
* @param sip
*/
// public void setTech(Tech tech);
}