mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-07 21:44:51 +00:00
possible fix for FSCORE-30 (part 2)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5217 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
aa286db7bd
commit
f406e199fa
@ -751,14 +751,14 @@ static void do_2833(switch_rtp_t *rtp_session)
|
|||||||
rtp_session->dtmf_data.out_digit_packet[2] = (unsigned char) (duration >> 8);
|
rtp_session->dtmf_data.out_digit_packet[2] = (unsigned char) (duration >> 8);
|
||||||
rtp_session->dtmf_data.out_digit_packet[3] = (unsigned char) duration;
|
rtp_session->dtmf_data.out_digit_packet[3] = (unsigned char) duration;
|
||||||
|
|
||||||
if (loops != 1) {
|
|
||||||
rtp_session->dtmf_data.out_digit_seq++;
|
rtp_session->dtmf_data.out_digit_seq++;
|
||||||
|
|
||||||
|
if (loops != 1) {
|
||||||
|
rtp_session->dtmf_data.timestamp_dtmf += samples;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (x = 0; x < loops; x++) {
|
for (x = 0; x < loops; x++) {
|
||||||
if (loops == 1) {
|
|
||||||
rtp_session->dtmf_data.out_digit_seq++;
|
|
||||||
}
|
|
||||||
switch_rtp_write_manual(rtp_session,
|
switch_rtp_write_manual(rtp_session,
|
||||||
rtp_session->dtmf_data.out_digit_packet,
|
rtp_session->dtmf_data.out_digit_packet,
|
||||||
4,
|
4,
|
||||||
@ -818,7 +818,7 @@ static void do_2833(switch_rtp_t *rtp_session)
|
|||||||
rtp_session->dtmf_data.out_digit,
|
rtp_session->dtmf_data.out_digit,
|
||||||
rtp_session->dtmf_data.timestamp_dtmf, rtp_session->dtmf_data.out_digit_sofar, 0, rtp_session->dtmf_data.out_digit_seq);
|
rtp_session->dtmf_data.timestamp_dtmf, rtp_session->dtmf_data.out_digit_sofar, 0, rtp_session->dtmf_data.out_digit_seq);
|
||||||
}
|
}
|
||||||
|
rtp_session->dtmf_data.timestamp_dtmf += samples;
|
||||||
free(rdigit);
|
free(rdigit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user