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 { 1
        run IPSMGWMapProxy
    }
}
1 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
TcapLegManager.currentLinkedLeg.releaseLeg

there is a pending releaseLeg on the specified leg
(currentLeg and currentLinkedLeg)

TcapLegManager.currentLeg.pendingMessage
TcapLegManager.currentLinkedLeg.pendingMessage

there is a pending message on the specified leg
(currentLeg and currentLinkedLeg)

TcapLegManager.detachAll

detachAll has been requested

TcapLegManager.currentLeg.detachFromLeg
TcapLegManager.currentLinkedLeg.detachFromLeg

there is a pending detachFromLeg on the specified leg
(currentLeg and currentLinkedLeg)

TcapLegManager.currentLeg.hasEndingInstruction
TcapLegManager.currentLinkedLeg.hasEndingInstruction

any of detachAll, detachFromLeg, endSession, or releaseLeg are true
(currentLeg and currentLinkedLeg)

Previous page