18 Programmatic Detection of Delta MPS
The DeltaMPSListener is a low-level interface that provides visibility into the MPS accounting. The Converged Application Server invokes the DeltaMPSListener whenever it increments or decrements the MPS metric. Use this interface when you want to identify which messages are counted, distinguish between internal and external messages, or reconcile application counters with the MPS metric.
The interface contains two methods:
void onRequest(SipServletRequest req, boolean isInternalMsg, boolean countMsg)void onResponse(SipServletResponse resp, boolean isInternalMsg, boolean countMsg)The boolean isInternalMsg is true if the message is internally dispatched. The boolean is false if the message is received or sent externally.
The boolean countMsg is true if the message was added to the MPS metric and should be counted by MessageListener. The boolean is false if the message was subtracted from the MPS metric and should not be counted by MessageListener.