AI and VoIP Blog

VOIP | AI | Cloud | Kamailio | Open Source


Different types of DTMF in SIP and why DTMF via RFC2833 is more reliable.


In Session Initiation Protocol (SIP), Dual-Tone Multi-Frequency (DTMF) tones are used for dialing, navigating automated phone systems, and other tasks. For instance, when you call a bank number and press a digit to select an option, the pressed digit is transported using DTMF. There are three methods for transmitting DTMF tones in SIP:

  1. In-band DTMF: In this method, DTMF tones are transmitted as part of the regular audio stream. This is the simplest method, but it can suffer from quality issues if the audio stream is compressed or degraded.
  2. Out-of-band DTMF via RFC 2833: This method sends DTMF tones separately from the audio stream, within RTP (Real-Time Protocol) packets. It’s typically more reliable than in-band DTMF, particularly for VoIP applications where the audio stream might be compressed. RFC 2833 is the standard that initially defined this method. It is now replaced by RFC 4733 but this method is still referred by RFC 2833.
  3. Out-of-band DTMF via SIP INFO messages: In this approach, DTMF tones are sent as separate SIP INFO messages. While this can be more reliable than in-band DTMF, it’s not as widely supported as the RFC 2833 method.

To understand more about DTMF via RFC 2833, lets check a call trace. In the call flow below we can see that the DTMF stream (telephony-event) is separate from the RTP stream. This is because it has a different payload type (101 in this case).

Since the DTMF has a separate stream it remains uncompressed and the receiving equipment is easily able to identify the digit.


In the above DTMF packet we can see that the digit pressed was a pound sign ‘#’ . If you would like to analyze this trace, it is available on my Github repo here https://github.com/VoIPNuggets-com/VoIPNuggets/blob/main/DTMF.pcap

If you have any questions or comments add them to the comment section below.
Thank you for visiting my blog!

Join 753 other subscribers

Leave a reply to Mike Dunn Cancel reply

Akash Gupta
Senior VoIP Engineer and AI Enthusiast



Discover more from AI and VoIP Blog

Subscribe to get the latest posts sent to your email.



3 responses to “Different types of DTMF in SIP and why DTMF via RFC2833 is more reliable.”

  1. hello,
    you might be able to help me regards phone line caller id system.
    I was using some costum made caller id unit to be able filter trough calls by predefined lists.
    so far all working fine, but now after chand provider and communication equipment my unit does not work any more.

    My unit is based ona HT9032 chip supported by arduino.
    New modem is produced by genexis and it is model DRG7850.
    So far in 3 weeks supplier was not able to figure out what is problem and why things are not working any more as the were.
    Do you have any idea what could be reason?

    Different data transmission type on newly installed modem?

    Many thanks
    kind regards
    marko

    Like

  2. Akash, Thanks for this explination. I have a situation with a ClearOne DSP that when dialing access codes with one particular vendor, neither In-Band nor Out-of-Band works consistnatly. When one fails, we can switch to the other and it will work. When it eventually fails, we can switch back and then it will work. Is that a normal occurrence? Is there something I might be missing?

    Like

    1. Interesting, this is not usual, I would run a packet capture to see what exactly happens when it stops working, could be issue with the DSP equipment.

      Like

Leave a reply to Mike Dunn Cancel reply