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
| 9 | * @author bsutton |
| 10 | */ |
| 11 | public interface EndPoint extends Comparable<EndPoint> { |
| 12 | boolean isSame(EndPoint rhs); |
| 13 | |
| 14 | boolean isLocal(); |
| 15 | |
| 16 | boolean isSIP(); |
| 17 | |
| 18 | /** |
| 19 | * Returns the fully qualified name of the EndPoint including the tech. e.g. |
| 20 | * SIP/100 |
| 21 | * |
| 22 | * @return |
| 23 | */ |
| 24 | String getFullyQualifiedName(); |
| 25 | |
| 26 | /** |
| 27 | * Returns the simple name of the EndPoint sans the tech. e.g. SIP/100 would |
| 28 | * be returned as 100. |
| 29 | * |
| 30 | * @return |
| 31 | */ |
| 32 | String getSimpleName(); |
| 33 | |
| 34 | /** |
| 35 | * Returns the simple name of a SIP EndPoint sans the tech. e.g. SIP/100 |
| 36 | * would be returned as 100. If the endpoint is not actually a SIP end point |
| 37 | * then this method returns the full end point name. |
| 38 | * |
| 39 | * @return |
| 40 | */ |
| 41 | String getSIPSimpleName(); |
| 42 | |
| 43 | /** |
| 44 | * Returns true if the tech is not know for this end point. |
| 45 | * |
| 46 | * @return |
| 47 | */ |
| 48 | boolean isUnknown(); |
| 49 | |
| 50 | /** |
| 51 | * Returns the Tech that is used to reach this endpoint. |
| 52 | * |
| 53 | * @return |
| 54 | */ |
| 55 | TechType getTech(); |
| 56 | |
| 57 | boolean isEmpty(); |
| 58 | |
| 59 | /** |
| 60 | * Sets the tech on the end point to the specified tech. |
| 61 | * |
| 62 | * @param sip |
| 63 | */ |
| 64 | // public void setTech(Tech tech); |
| 65 | |
| 66 | } |
no outgoing calls
no test coverage detected