This patch addresses the following issues in Asterisk 11 BETA version: 1. Asterisk was not incrementing the sequence numbers for the retransmission of the DTMF end packets(RTPEvent packet with end bit set to 1) 2. Asterisk 11 was not incrementing the sequence number for the RTP packet followed by DTMF packets --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -1446,13 +1446,14 @@ rtpheader[2] = htonl(rtp->ssrc); rtpheader[3] = htonl((digit << 24) | (0xa << 16) | (rtp->send_duration)); rtpheader[3] |= htonl((1 << 23)); - rtpheader[0] = htonl((2 << 30) | (rtp->send_payload << 16) | (rtp->seqno)); /* Send it 3 times, that's the magical number */ for (i = 0; i < 3; i++) { int ice; + rtpheader[0] = htonl((2 << 30) | (rtp->send_payload << 16) | (rtp->seqno)); res = rtp_sendto(instance, (void *) rtpheader, hdrlen + 4, 0, &remote_address, &ice); + rtp->seqno++; /* Increment the RTP sequence number for retransmissions also */ if (res < 0) { ast_log(LOG_ERROR, "RTP Transmission error to %s: %s\n",