public class MgcpController extends Object implements ServerManager, MgcpMessageObserver
| Constructor and Description |
|---|
MgcpController(String address,
int port,
UdpManager networkManager,
MgcpChannel channel,
MgcpTransactionManager transactions,
MgcpEndpointManager endpoints,
MgcpCommandProvider commands) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
ControlProtocol |
getControlProtocol() |
boolean |
isActive() |
void |
onMessage(InetSocketAddress from,
InetSocketAddress to,
MgcpMessage message,
MessageDirection direction)
Event triggered when a message arrives.
|
void |
onStarted(Endpoint endpoint,
EndpointInstaller installer) |
void |
onStopped(Endpoint endpoint) |
public MgcpController(String address, int port, UdpManager networkManager, MgcpChannel channel, MgcpTransactionManager transactions, MgcpEndpointManager endpoints, MgcpCommandProvider commands)
public ControlProtocol getControlProtocol()
getControlProtocol in interface ServerManagerpublic void activate()
throws IllegalStateException
activate in interface ServerManagerIllegalStateExceptionpublic void deactivate()
throws IllegalStateException
deactivate in interface ServerManagerIllegalStateExceptionpublic boolean isActive()
isActive in interface ServerManagerpublic void onStarted(Endpoint endpoint, EndpointInstaller installer)
onStarted in interface ServerManagerpublic void onStopped(Endpoint endpoint)
onStopped in interface ServerManagerpublic void onMessage(InetSocketAddress from, InetSocketAddress to, MgcpMessage message, MessageDirection direction)
MgcpMessageObserveronMessage in interface MgcpMessageObserverfrom - The sender of the message.to - The recipient of the message.message - The message.direction - The direction of the message: incoming or outgoing.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.