[asterisk-commits] branch kpfleming/vldtmf r9161 -
/team/kpfleming/vldtmf/rtp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Feb 5 20:15:10 MST 2006
Author: kpfleming
Date: Sun Feb 5 21:15:09 2006
New Revision: 9161
URL: http://svn.digium.com/view/asterisk?rev=9161&view=rev
Log:
start working on vldtmf receive in RTP
Modified:
team/kpfleming/vldtmf/rtp.c
Modified: team/kpfleming/vldtmf/rtp.c
URL: http://svn.digium.com/view/asterisk/team/kpfleming/vldtmf/rtp.c?rev=9161&r1=9160&r2=9161&view=diff
==============================================================================
--- team/kpfleming/vldtmf/rtp.c (original)
+++ team/kpfleming/vldtmf/rtp.c Sun Feb 5 21:15:09 2006
@@ -362,14 +362,21 @@
digit = code_to_digit(event->event);
+ if (event->end) {
+ if (rtp->inprocess_dtmf_receive == digit) {
+ if (rtp->lasteventendseqn != header->sequence) {
+ f = send_dtmf(rtp);
+ rtp->lasteventendseqn = header->sequence;
+ }
+ }
+ rtp->inprocess_dtmf_receive = 0;
+ } else {
+ }
+
if (rtp->inprocess_dtmf_receive && (rtp->inprocess_dtmf_receive != digit)) {
f = send_dtmf(rtp);
} else if (event->end) {
if (rtp->inprocess_dtmf_receive) {
- if (rtp->lasteventendseqn != header->sequence) {
- f = send_dtmf(rtp);
- rtp->lasteventendseqn = header->sequence;
- }
rtp->inprocess_dtmf_receive = 0;
}
digit = 0;
More information about the asterisk-commits
mailing list