"This Recommendation allows a media gateway controller to request the media gateway to detect that after a certain period of time no Internet protocol application data has flowed on a particular termination/stream. The ability to detect if Internet protocol application data flow has stopped or has not started is useful to avoid deadlock in latching scenarios and also may be of use to detect hanging bearers. This Recommendation defines an event which is related to one or more IP 2-tuples. An individual 2-tuple is given by <IP address@ IP port> of an IP flow of an ITU-T H.248 stream or termination. The set of conditions for inactivity detection is related to IP packet arrival and/or departure events for all 2-tuples of a stream/termination. The condition of packet arrivals or departures respectively is controlled via a dedicated parameter (called ""direction"") The flexibility of inactivity detection logic configurations allows the usage of ITU-T H.248.40 for various applications (see also the appendices)."