A TCAP leg manager predicate is an assertion related to the status if the TCAP leg manager that can be tested. The TCAP leg manager predicates can be used within conditions in feature execution scripts. For example, a script that runs at the session start feature execution point could be:
featurescript IPSMGWSessionStart {
run IPSMGWSCCPWhitelist
if not TcapLegManager.currentLeg.releaseLeg {
run IPSMGWMapProxy
}
}
Only run the IPSMGWMapProxy feature if the IPSMGWSCCPWhitelist did not release the current leg. |
TCAP Leg Manager predicates
The following predicates are available.
Predicate name | True when… |
---|---|
TcapLegManager.endSession |
a feature has requested endSession in this execution point |
TcapLegManager.currentLeg |
there is a leg active at the current execution point |
TcapLegManager.currentLinkedLeg |
the current execution point has an active leg linked to a second leg |
TcapLegManager.currentLeg.releaseLeg |
there is a pending releaseLeg on the specified leg |
TcapLegManager.currentLeg.pendingMessage |
there is a pending message on the specified leg |
TcapLegManager.detachAll |
detachAll has been requested |
TcapLegManager.currentLeg.detachFromLeg |
there is a pending detachFromLeg on the specified leg |
TcapLegManager.currentLeg.hasEndingInstruction |
any of detachAll, detachFromLeg, endSession, or releaseLeg are true |