Commit RTP fixes this time
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
e4a8e3fd9e
commit
36508bc31a
5
rtp.c
5
rtp.c
|
@ -233,7 +233,10 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat
|
|||
}
|
||||
else if(event_end & 0x80)
|
||||
{
|
||||
if (rtp->resp) {
|
||||
f = send_dtmf(rtp);
|
||||
rtp->resp = 0;
|
||||
}
|
||||
resp = 0;
|
||||
duration = 0;
|
||||
}
|
||||
|
@ -241,7 +244,7 @@ static struct ast_frame *process_rfc2833(struct ast_rtp *rtp, unsigned char *dat
|
|||
{
|
||||
f = send_dtmf(rtp);
|
||||
}
|
||||
|
||||
if (!(event_end & 0x80))
|
||||
rtp->resp = resp;
|
||||
rtp->dtmfcount = dtmftimeout;
|
||||
rtp->dtmfduration = duration;
|
||||
|
|
Loading…
Reference in New Issue