public class MgcpTransactionNumberspace extends Object
Call-agents may decide to use a specific number space for each of the gateways that they manage, or to use the same number space for all gateways that belong to some arbitrary group.
Call agents may decide to share the load of managing a large gateway between several independent processes. These processes MUST then share the transaction number space.
| Constructor and Description |
|---|
MgcpTransactionNumberspace()
Creates a new MGCP transaction number space with range [1;999.999.999]
|
MgcpTransactionNumberspace(int minimum,
int maximum)
Creates a new MGCP transaction number space.
|
| Modifier and Type | Method and Description |
|---|---|
int |
generateId() |
int |
getCurrent() |
int |
getMaximum() |
int |
getMinimum() |
public MgcpTransactionNumberspace(int minimum,
int maximum)
throws IllegalArgumentException
minimum - The minimum transaction identifier.maximum - The maximum transaction identifier.IllegalArgumentException - When minimum or maximum are outside the legal range [1, 999.999.999] or when maximum is
lesser than minimum.public MgcpTransactionNumberspace()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.