mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
update 2833 *stab*
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5222 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
aed6e97d9a
commit
b25e26924c
@ -752,13 +752,13 @@ static void do_2833(switch_rtp_t *rtp_session)
|
|||||||
rtp_session->dtmf_data.out_digit_packet[3] = (unsigned char) duration;
|
rtp_session->dtmf_data.out_digit_packet[3] = (unsigned char) duration;
|
||||||
|
|
||||||
|
|
||||||
rtp_session->dtmf_data.out_digit_seq++;
|
|
||||||
|
|
||||||
if (loops != 1) {
|
rtp_session->dtmf_data.timestamp_dtmf += samples;
|
||||||
rtp_session->dtmf_data.timestamp_dtmf += samples;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (x = 0; x < loops; x++) {
|
for (x = 0; x < loops; x++) {
|
||||||
|
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,
|
||||||
@ -770,6 +770,7 @@ static void do_2833(switch_rtp_t *rtp_session)
|
|||||||
loops == 1 ? "middle" : "end", rtp_session->dtmf_data.out_digit, rtp_session->dtmf_data.timestamp_dtmf,
|
loops == 1 ? "middle" : "end", rtp_session->dtmf_data.out_digit, rtp_session->dtmf_data.timestamp_dtmf,
|
||||||
rtp_session->dtmf_data.out_digit_sofar, duration, rtp_session->dtmf_data.out_digit_seq);
|
rtp_session->dtmf_data.out_digit_sofar, duration, rtp_session->dtmf_data.out_digit_seq);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (loops == 1) {
|
if (loops == 1) {
|
||||||
@ -804,7 +805,7 @@ static void do_2833(switch_rtp_t *rtp_session)
|
|||||||
|
|
||||||
|
|
||||||
for (x = 0; x < 3; x++) {
|
for (x = 0; x < 3; x++) {
|
||||||
//rtp_session->dtmf_data.out_digit_seq++;
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user