diff mgw/ctrl_prot.c @ 127:f062c32a5116

mgw: implement DTMF
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2022 20:31:15 -0800
parents 020ba624bdd8
children
line wrap: on
line diff
--- a/mgw/ctrl_prot.c	Sat Oct 01 17:09:51 2022 -0800
+++ b/mgw/ctrl_prot.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>
@@ -59,6 +60,12 @@
 	case TMGW_CTRL_OP_DLCX:
 		process_dlcx(conn, &req, &resp);
 		break;
+	case TMGW_CTRL_OP_DTMF_START:
+		process_dtmf_start(conn, &req, &resp);
+		break;
+	case TMGW_CTRL_OP_DTMF_STOP:
+		process_dtmf_stop(conn, &req, &resp);
+		break;
 	default:
 		resp.res = TMGW_RESP_ERR_OPCODE;
 	}