From b4582f3209a4916ffaa54baa716ab27a87bb961a Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 27 Jun 2019 23:08:01 +0200 Subject: can accept incoming calls --- src/modem.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/modem.h (limited to 'src/modem.h') diff --git a/src/modem.h b/src/modem.h new file mode 100644 index 0000000..bc0cfac --- /dev/null +++ b/src/modem.h @@ -0,0 +1,24 @@ +/* + * modem.h + * (c) 2019, Jonas Gunz, jonasgunz.de + * + * +*/ + +#include +#include +#include +#include + +#define _AT "AT\r\n" +#define _AT_ANSWER "ATA\r\n" +#define _AT_ECHO_OFF "ATE0\r\n" +#define _AT_ECHO_ON "ATE1\r\n\”" +#define _AT_HANGUP "ATH\r\n" +#define _AT_CMD_MODE "+++" + +int modem_accept_wait(int fd); + +int modem_hang(int fd); + +int modem_run(int fd, int argc, char* argv[]); -- cgit v1.2.3