public class MgcpProvider extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
MgcpProvider(String name,
UdpManager transport,
int port,
org.mobicents.media.server.scheduler.Scheduler scheduler)
Creates new provider instance.
|
|
MgcpProvider(UdpManager transport,
int port,
org.mobicents.media.server.scheduler.Scheduler scheduler)
Creates new provider instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(MgcpListener listener)
Registers new even listener.
|
MgcpEvent |
createEvent(int eventID,
SocketAddress address)
Creates new event object.
|
void |
removeListener(MgcpListener listener)
Unregisters event listener.
|
void |
send(MgcpEvent event)
Sends message.
|
void |
send(MgcpEvent event,
SocketAddress destination)
Sends message.
|
void |
send(MgcpMessage message,
SocketAddress destination)
Sends message.
|
void |
shutdown() |
public MgcpProvider(UdpManager transport, int port, org.mobicents.media.server.scheduler.Scheduler scheduler)
transport - the UDP interface instance.port - port number to bindscheduler - job schedulerprotected MgcpProvider(String name, UdpManager transport, int port, org.mobicents.media.server.scheduler.Scheduler scheduler)
transport - the UDP interface instance.port - port number to bindscheduler - job schedulerpublic MgcpEvent createEvent(int eventID, SocketAddress address)
eventID - the event identifier: REQUEST or RESPONSEpublic void send(MgcpEvent event, SocketAddress destination) throws IOException
message - the message to send.destination - the IP address of the destination.IOExceptionpublic void send(MgcpEvent event) throws IOException
message - the message to send.IOExceptionpublic void send(MgcpMessage message, SocketAddress destination) throws IOException
message - the message to send.destination - the IP address of the destination.IOExceptionpublic void addListener(MgcpListener listener) throws TooManyListenersException
listener - the listener instance to be registered.TooManyListenersExceptionpublic void removeListener(MgcpListener listener)
listener - the event listener instance to be unregistered.public void activate()
public void shutdown()
Copyright © 2014 TeleStax, Inc.. All Rights Reserved.