public class SubMgcpTransactionManager extends Object implements MgcpTransactionManager
| Constructor and Description |
|---|
SubMgcpTransactionManager(MgcpTransactionNumberspace numberspace,
com.google.common.util.concurrent.ListeningExecutorService executor) |
| 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 |
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 SubMgcpTransactionManager(MgcpTransactionNumberspace numberspace, com.google.common.util.concurrent.ListeningExecutorService executor)
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.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 MgcpMessageSubjectCopyright © 2017 TeleStax, Inc.. All Rights Reserved.