Does RFC 4733 DTMF Work over SIP TLS and SRTP? Four PBX Tests
See four inbound and outbound RFC 4733 DTMF tests over TLS and SDES-SRTP on Asterisk 22.11.0 and FreeSWITCH 1.11.4, with a runnable Docker lab.
Asterisk 22.11.0 and FreeSWITCH 1.11.4 both exchanged RFC 4733 keypad digits over SDES-SRTP in the same calls that used TLS for SIP signaling. TeamLearners Inc., the operator of Korea AI Telecom, ran one inbound and one outbound call per PBX on an isolated Docker network on November 24, 2026 KST. In all four calls the peer sent 583, the PBX recognized those digits and returned 297, and the peer authenticated and decrypted the response before checking for 200 OK to BYE in the same SIP dialog.
TLS and SRTP keypad test results
All four calls negotiated PCMU, telephone-event/8000 (dynamic payload type 101 in this fixture), and the SDES suite AES_CM_128_HMAC_SHA1_80. Inbound and outbound refer to the direction in which the PBX established the call. Keypad events traveled both ways in every call.
| Test ID | PBX and call direction | TLS | Keypad packets authenticated by the peer | Digits decoded | BYE response |
|---|---|---|---|---|---|
SRTP-DTMF-AST-IN | Asterisk 22.11.0 inbound | 1.2 | 34 | 297 | 200 OK |
SRTP-DTMF-AST-OUT | Asterisk 22.11.0 outbound | 1.2 | 36 | 297 | 200 OK |
SRTP-DTMF-FS-IN | FreeSWITCH 1.11.4 inbound | 1.3 | 27 | 297 | 200 OK |
SRTP-DTMF-FS-OUT | FreeSWITCH 1.11.4 outbound | 1.3 | 27 | 297 | 200 OK |
The peer received nine terminal packets per call. Deduplicating by source identifier (SSRC), timestamp, and event code left three keypad events per call. The peer observed zero plaintext packets in the RTP replies it checked. The packet counts in the table are the observed counts for this fixture.
What to check when a call connects but digits are missing
- Confirm TLS for SIP, then check the SDP separately. Its media line negotiated
RTP/SAVP, and both ends selected the same SDES suite througha=crypto. RFC 4568 for SDES · RFC 3711 for SRTP - Check that the SDP answer includes
telephone-event/8000. Use the payload type negotiated in SDP. At the receiver, authenticate the SRTP packet before decoding the event and deduplicate repeated end packets. RFC 4733 for RTP telephone events - Send a known digit sequence in both directions and verify the order received by your app or IVR. To confirm teardown, match INVITE, ACK, and the BYE response by Call-ID and the applicable CSeq. Investigate SIP ACK and BYE
Reproduce the test in Docker
Extract the public TLS and SDES-SRTP lab ZIP and prepare the images using its README. Run bash run.sh asterisk dtmf and bash run.sh freeswitch dtmf in sequence. Both commands produce one inbound and one outbound result. Match the output's scenario_id to the table and compare your results with the dated dtmf-observation.json in the ZIP.
Silent PCMU frames kept the media clock moving in the keypad dialogs. The 997 Hz SRTP audio echo and keypad tests over SIP/UDP and plain RTP ran in separate dialogs. Live keypad delivery over the Korean phone network or a provider path and SRTCP are outside the scope of this test. Korea AI Telecom SRTP settings by direction