Paytia’s telephony engineering team has identified an issue where a 3CX telephone system, when connected to Paytia over SIP, is sending three DTMF tones for each key press instead of one. This behaviour was traced back to a configuration issue on the 3CX system.
Upon capturing call traces, our engineers observed irregular RTP packet behaviour related to DTMF tone transmission, which appears to be out of specification.
Upon analysis of RTP packet captures, the following issues were identified:
Repeated DTMF End-Tone Packets
The 3CX system is not sending standard tone start or progress packets.
Instead, it is sending three end-tone markers per DTMF event.
While RFC 2833/4733 allows for repeated end-tone packets, this is not the expected behaviour.
Incorrect Use of the RTP 'Marker' Bit
Each of the three repeated end-tone packets is being sent with the RTP Marker bit set.
The RTP specification states that the Marker bit should indicate the start of a new event.
As a result, Paytia’s low-level SIP stack interprets each of these packets as a new tone event rather than repetitions of the same tone.
Potential Misconfiguration in 3CX
This issue suggests that a setting or code change in the 3CX system is causing it to send only end-tone packets with the Marker bit set, rather than a full start-progress-end sequence.
It is possible that 3CX is configured to only send repeated end-tone packets and mistakenly considers each as a new event, causing the issue.
Any Paytia-integrated telephony system relying on correct DTMF tone detection will interpret these packets incorrectly.
Instead of registering a single key press, the system detects three, leading to potential issues with IVRs, payment processing, or other tone-sensitive operations.
Since this is an issue originating from the 3CX system, corrective actions will need to be taken on their end. However, possible approaches include:
3CX System Configuration Review
Check 3CX’s DTMF signalling settings, particularly around RFC 2833/4733 compliance.
Ensure that the system is transmitting a full DTMF sequence (start → progress → end) rather than just repeating end markers.
Verify whether any updates or patches introduced this behaviour.
3CX Vendor Support Engagement
Report the issue to 3CX support and request clarification on why the RTP Marker bit is being set incorrectly on repeated end-tone packets.
Provide RTP trace evidence demonstrating the misinterpretation due to the Marker bit usage.
Paytia SIP Stack Adjustment (If Necessary)
If 3CX does not acknowledge or resolve the issue, a workaround at the SIP stack level may be considered to handle multiple end-marker packets more intelligently.
This would require additional development effort to ensure compatibility across different SIP endpoints.
Issue resolution
3CX Codec change on the SIP trunk to G.711a from the default OPUS which had incorrectly been set.
Check here
{Your 3CX domain}/#/office/voice-and-chat
Edit your Paytia trunk
Go to the Options tab
At the bottom your will see ‘Codec priority’
If you see any codec other than PCMA as the first codec delete them.
Example
Delete ‘opus’ and leave PCMA as the available codec for Paytia trunks.