diff mgw/dlcx.c @ 127:f062c32a5116

mgw: implement DTMF
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2022 20:31:15 -0800
parents f280328e7e2e
children 8c28426abef0
line wrap: on
line diff
--- a/mgw/dlcx.c	Sat Oct 01 17:09:51 2022 -0800
+++ b/mgw/dlcx.c	Sat Oct 01 20:31:15 2022 -0800
@@ -4,6 +4,7 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <sys/time.h>
 #include <netinet/in.h>
 #include <stdio.h>
 #include <stdint.h>
@@ -79,6 +80,8 @@
 
 	for (ep = delq; ep; ep = np) {
 		np = ep->next;
+		if (ep->dtmf_pp)
+			dtmf_stop_immediate(ep);
 		if (ep->ep_type & TMGW_EP_HAS_GSM_SOCK)
 			free_rtp_end(&ep->rtp_gsm);
 		if (ep->ep_type & TMGW_EP_HAS_PSTN_SOCK)