FreeCalypso > hg > themwi-system-sw
diff mgw/dtmf_timer.c @ 150:529906fddcfa
mgw DTMF timing fix in the corner case of no speech
arriving between the end of one DTMF and the start of next
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 11 Oct 2022 14:10:29 -0800 |
parents | f062c32a5116 |
children |
line wrap: on
line diff
--- a/mgw/dtmf_timer.c Tue Oct 11 13:48:39 2022 -0800 +++ b/mgw/dtmf_timer.c Tue Oct 11 14:10:29 2022 -0800 @@ -55,6 +55,7 @@ sendto(ep->rtp_pstn.rtp_fd, &pkt, RTP_PACKET_SIZE_PSTN, 0, (struct sockaddr *) &ep->rtp_pstn.remote_addr, addrlen); ep->dtmf_frames_sent++; + ep->dtmf_last_time = cur_event_time; frame_limit = ep->dtmf_stop_req ? DTMF_MIN_FRAMES : DTMF_MAX_FRAMES; if (ep->dtmf_frames_sent >= frame_limit) return 1;