RFC 2833 DTMF digits don't currently get emitted with the media stream (at least as of SIPp 3.5.1) because the end-of-event flag isn't set due to an off-by-one error when generating packets.
This PR fixes the off-by-one error and adds a test to ensure that the flag is in the last packet generated for a digit.
RFC 2833 DTMF digits don't currently get emitted with the media stream (at least as of SIPp 3.5.1) because the end-of-event flag isn't set due to an off-by-one error when generating packets.
This PR fixes the off-by-one error and adds a test to ensure that the flag is in the last packet generated for a digit.