Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved interpretation of DTMF tones in DtmfTransformEngine #433

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbeckr
Copy link

@cbeckr cbeckr commented Aug 4, 2018

This change addresses a number of issues that led to incorrect interpretations
of DTMF tones, especially tone sequences.

It introduces a queue to mitigate previous thread-safety issues and handle
more than one RTP packet at a time (a single tone is associated with at least
three RTP packets).

It also adds support for recognizing shorter tones (<120 ms) that are typically
represented by one self-contained RTP packet containing both start and end
indications.

Note: Corporate CLA was completed on 2018-08-03.

@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.


notifyAll();
}
queue.offer(p);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't read the diff carefully, but: PacketTransformers should not keep the RawPacket/DtmfRawPacket instances, because these instances and their buffers are re-used. I don't expect many DTMF packets, so a simple clone() should be enough.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your feedback. In e982394, I added a clone() implementation for DtmfRawPacket and added the call on line 626.

@cbeckr
Copy link
Author

cbeckr commented Mar 3, 2021

Is there still interest in this PR? If so, I'd be happy to update it. I see some files were moved but the underlying code hasn't changed much.

This change addresses a number of issues that led to incorrect interpretations
of DTMF tones, especially tone sequences.

It introduces a queue to mitigate previous thread-safety issues and handle
more than one RTP packet at a time (a single tone is associated with at least
three RTP packets).

It also adds support to recognize shorter tones (<120 ms) that are typically
represented by one self-contained RTP packet containing both start and end
indications.
@cbeckr
Copy link
Author

cbeckr commented Mar 26, 2021

Rebased - this is ready for review once more.
8x8 CLA completed 2021-03-26

Tested with The Test Call:

  • Invite sip:[email protected]
  • Dial #, then 2
  • Dial a DTMF sequence followed by #
  • It should read back the exact sequence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants