mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Don't increment RTP timestmap on sending of DTMF (bug #2928)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4328 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
5
rtp.c
5
rtp.c
@@ -1013,7 +1013,6 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
|
|||||||
unsigned int *rtpheader;
|
unsigned int *rtpheader;
|
||||||
int hdrlen = 12;
|
int hdrlen = 12;
|
||||||
int res;
|
int res;
|
||||||
int ms;
|
|
||||||
int x;
|
int x;
|
||||||
int payload;
|
int payload;
|
||||||
char data[256];
|
char data[256];
|
||||||
@@ -1046,10 +1045,6 @@ int ast_rtp_senddigit(struct ast_rtp *rtp, char digit)
|
|||||||
rtp->dtmfmute.tv_sec += 1;
|
rtp->dtmfmute.tv_sec += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ms = calc_txstamp(rtp, NULL);
|
|
||||||
/* Default prediction */
|
|
||||||
rtp->lastts = rtp->lastts + ms * 8;
|
|
||||||
|
|
||||||
/* Get a pointer to the header */
|
/* Get a pointer to the header */
|
||||||
rtpheader = (unsigned int *)data;
|
rtpheader = (unsigned int *)data;
|
||||||
rtpheader[0] = htonl((2 << 30) | (1 << 23) | (payload << 16) | (rtp->seqno++));
|
rtpheader[0] = htonl((2 << 30) | (1 << 23) | (payload << 16) | (rtp->seqno++));
|
||||||
|
|||||||
Reference in New Issue
Block a user