|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Endpoint
The basic implementation of the endpoint. An Endpoint is a logical representation of a physical entity, such as an analog phone or a channel in a trunk. Endpoints are sources or sinks of data and can be physical or virtual. Physical endpoint creation requires hardware installation while software is sufficient for creating a virtual Endpoint. An interface on a gateway that terminates a trunk connected to a PSTN switch is an example of a physical Endpoint. An audio source in an audio-content server is an example of a virtual Endpoint.
| Field Summary | |
|---|---|
static AudioFormat |
DTMF
|
static AudioFormat |
G729
|
static AudioFormat |
GSM
|
static AudioFormat |
LINEAR_AUDIO
|
static AudioFormat |
PCMA
|
static AudioFormat |
PCMU
|
static AudioFormat |
SPEEX
|
| Method Summary | |
|---|---|
void |
addConnectionListener(ConnectionListener listener)
Register ConnectionListener to listen for changes in MsConnection state
handled by this Endpoint |
void |
addNotificationListener(NotificationListener listener)
Register NotificationListener to listen for MsNotifyEvent
which are fired due to events detected by Endpoints like DTMF. |
Endpoint |
clone()
|
Connection |
createConnection(ConnectionMode mode)
Creates new connection with specified mode. |
Connection |
createLocalConnection(ConnectionMode mode)
Creates new connection with specified mode. |
void |
deleteAllConnections()
Deletes all connection associated with this Endpoint. |
void |
deleteConnection(java.lang.String connectionID)
Deletes specified connection. |
java.lang.String |
describe(MediaType mediaType)
|
Component |
getComponent(java.lang.String resourceName)
|
Connection |
getConnection(java.lang.String connectionID)
|
int |
getConnectionIndex()
|
java.lang.String |
getLocalAddress(java.lang.String media)
Gets local IP Address to which specified media channel is attached |
java.lang.String |
getLocalName()
Gets the local name attribute. |
int |
getLocalPort(java.lang.String media)
Gets the port number to which specified media channel is attached |
MediaSink |
getSink(MediaType media)
|
MediaSource |
getSource(MediaType media)
|
Timer |
getTimer()
|
boolean |
hasConnections()
Indicates does this endpoint has connections. |
boolean |
isInUse()
Shows is this endpoint in use |
void |
removeConnectionListener(ConnectionListener listener)
Removes the ConnectionListener |
void |
removeNotificationListener(NotificationListener listener)
Remove the NotificationListener |
void |
setInUse(boolean inUse)
Marks this endpoint as used/unsed. |
void |
setLocalName(java.lang.String localName)
|
void |
setTimer(Timer timer)
|
void |
start()
Starts endpoint. |
void |
stop()
Terminates endpoint's execution. |
| Field Detail |
|---|
static final AudioFormat LINEAR_AUDIO
static final AudioFormat PCMA
static final AudioFormat PCMU
static final AudioFormat SPEEX
static final AudioFormat G729
static final AudioFormat GSM
static final AudioFormat DTMF
| Method Detail |
|---|
java.lang.String getLocalName()
Timer getTimer()
void setTimer(Timer timer)
java.lang.String getLocalAddress(java.lang.String media)
media - the media type
int getLocalPort(java.lang.String media)
media - the media type
void start()
throws ResourceUnavailableException
ResourceUnavailableExceptionvoid stop()
Connection createConnection(ConnectionMode mode)
throws TooManyConnectionsException,
ResourceUnavailableException
mode - the constant which identifies mode of the connection to be created.
TooManyConnectionsException
ResourceUnavailableException
Connection createLocalConnection(ConnectionMode mode)
throws TooManyConnectionsException,
ResourceUnavailableException
mode - the constant which identifies mode of the connection to be created.
TooManyConnectionsException
ResourceUnavailableExceptionvoid deleteConnection(java.lang.String connectionID)
connectionID - the identifier of the connection to be deleted.void deleteAllConnections()
boolean hasConnections()
Connection getConnection(java.lang.String connectionID)
Component getComponent(java.lang.String resourceName)
boolean isInUse()
void setInUse(boolean inUse)
inUse - true if endpoint is in use.void addNotificationListener(NotificationListener listener)
MsNotifyEvent
which are fired due to events detected by Endpoints like DTMF. Use above
execute methods to register for event passing appropriate
RequestedEvent
listener - void removeNotificationListener(NotificationListener listener)
listener - void addConnectionListener(ConnectionListener listener)
ConnectionListener to listen for changes in MsConnection state
handled by this Endpoint
listener - void removeConnectionListener(ConnectionListener listener)
listener - int getConnectionIndex()
Endpoint clone()
void setLocalName(java.lang.String localName)
MediaSink getSink(MediaType media)
MediaSource getSource(MediaType media)
java.lang.String describe(MediaType mediaType)
throws ResourceUnavailableException
ResourceUnavailableException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||