public class MgcpController extends Object implements ServerManager, MgcpMessageObserver
| Constructor and Description |
|---|
MgcpController(MgcpChannel channel,
TransactionManager transactions,
MgcpEndpointManager endpoints,
MgcpCommandProvider commands) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
ControlProtocol |
getControlProtocol() |
boolean |
isActive() |
void |
onMessage(MgcpMessage message,
MessageDirection direction)
Event triggered when a message arrives.
|
void |
onStarted(Endpoint endpoint,
EndpointInstaller installer) |
void |
onStopped(Endpoint endpoint) |
public MgcpController(MgcpChannel channel, TransactionManager 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(MgcpMessage message, MessageDirection direction)
MgcpMessageObserveronMessage in interface MgcpMessageObservermessage - The messagedirection - The direction of the message: incoming or outgoing.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.