jitsi / libjitsi

Advanced Java media library for secure real-time audio/video communication.
Apache License 2.0
627 stars 280 forks source link

The DTMFDispatcher thread of the DtmfTransformEngine is not stopped when the DtmfTransformEngine is closed #555

Open konikb opened 2 years ago

konikb commented 2 years ago

Description

An AudioMediaStream is created with a DTMFListener (the stream is established between a server application based on libjitsi and a SIP phone). Receiving a RTP DTMF tone (RFC4733) from the phone leads to the DTMFDispatcher thread creation in the DtmfTransformEngine. But when the media stream is closed the DTMFDispatcher thread remains.

Expected Behavior

The thread should be stopped.

Possible Solution

I think that stop() should be invoked in the close() method of the DtmfTransformEngine, or dtmfTransformEngine.stop() should be invoked in the AudiMediaStreamImpl close() method.