[Freeswitch-svn] [commit] r4285 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Thu Feb 15 09:32:35 EST 2007
Author: mikej
Date: Thu Feb 15 09:32:34 2007
New Revision: 4285
Modified:
freeswitch/trunk/src/switch_rtp.c
Log:
make the 2833 dtmf increase the sequence number before it sends instead of after. The net result of this is, we are still doing it wrong (sending both and audio packet with the same sequence number as our 2833 packet) but because we increment it first, the ua should get our 2833 packet with that sequence number before it gets the audio packet with that sequence number. This should help dtmf interop on ua's that were discarding rtp packets received with a sequence number that it had already received.
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Thu Feb 15 09:32:34 2007
@@ -657,6 +657,7 @@
for (x = 0; x < loops; x++) {
+ rtp_session->dtmf_data.out_digit_seq++;
switch_rtp_write_manual(rtp_session,
rtp_session->dtmf_data.out_digit_packet,
4,
@@ -674,7 +675,6 @@
duration,
rtp_session->dtmf_data.out_digit_seq);
- rtp_session->dtmf_data.out_digit_seq++;
}
}
@@ -701,6 +701,7 @@
for (x = 0; x < 3; x++) {
+ rtp_session->dtmf_data.out_digit_seq++;
switch_rtp_write_manual(rtp_session,
rtp_session->dtmf_data.out_digit_packet,
4,
@@ -718,7 +719,6 @@
rtp_session->dtmf_data.out_digit_sofar,
0,
rtp_session->dtmf_data.out_digit_seq);
- rtp_session->dtmf_data.out_digit_seq++;
}
free(rdigit);
More information about the Freeswitch-svn
mailing list