public class GlobalMgcpTransactionManager extends Object implements MgcpTransactionManager, MgcpMessageObserver
| Constructor and Description |
|---|
GlobalMgcpTransactionManager(MgcpTransactionManagerProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
forget(MgcpMessageObserver observer) |
void |
notify(Object originator,
InetSocketAddress from,
InetSocketAddress to,
MgcpMessage message,
MessageDirection direction) |
void |
observe(MgcpMessageObserver observer) |
void |
onMessage(InetSocketAddress from,
InetSocketAddress to,
MgcpMessage message,
MessageDirection direction)
Event triggered when a message arrives.
|
void |
process(InetSocketAddress from,
InetSocketAddress to,
MgcpRequest request,
MgcpCommand command,
MessageDirection direction)
Processes a new MGCP Request to be handled in a new transaction.
|
void |
process(InetSocketAddress from,
InetSocketAddress to,
MgcpResponse response,
MessageDirection direction)
Processes an MGCP Response to close an open transaction.
|
public GlobalMgcpTransactionManager(MgcpTransactionManagerProvider provider)
public void observe(MgcpMessageObserver observer)
observe in interface MgcpMessageSubjectpublic void forget(MgcpMessageObserver observer)
forget in interface MgcpMessageSubjectpublic void notify(Object originator, InetSocketAddress from, InetSocketAddress to, MgcpMessage message, MessageDirection direction)
notify in interface MgcpMessageSubjectpublic 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.public void process(InetSocketAddress from, InetSocketAddress to, MgcpRequest request, MgcpCommand command, MessageDirection direction) throws DuplicateMgcpTransactionException
MgcpTransactionManagerprocess in interface MgcpTransactionManagerfrom - The sender of the request.to - The recipient of the request.request - The MGCP request message.command - The MGCP command to be executed.direction - Dictates whether the message is incoming or outgoing.DuplicateMgcpTransactionException - In case there is an existing transaction for the same call agent.public void process(InetSocketAddress from, InetSocketAddress to, MgcpResponse response, MessageDirection direction) throws MgcpTransactionNotFoundException
MgcpTransactionManagerprocess in interface MgcpTransactionManagerfrom - The sender of the request.to - The recipient of the request.response - The MGCP response message.direction - Dictates whether the message is incoming or outgoing.MgcpTransactionNotFoundException - In case there is no matching transaction to close.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.