/*---------------------------------------------------------------------- * * dialer.c Program to dial a phone number, from command line. * If one is not specified, then dial the btinterent * freephone service status line. * *---------------------------------------------------------------------- * $Id: dialer.c,v 1.4 2005/02/03 15:09:56 cmb Exp $ * * $Log: dialer.c,v $ * Revision 1.4 2005/02/03 15:09:56 cmb * Updated for Mandrake 10.1 device names * * Revision 1.3 2005/02/03 14:46:03 cmb * Updated * * Revision 1.2 2002/09/16 13:12:23 cmb * Copes with spaces * * Revision 1.1 2000/04/06 10:05:09 cmb * Initial revision * *----------------------------------------------------------------------*/ #include "cmb.h" #define BUFSIZE 32768 char *chatcommand = "/home/cmb/bin/bin/chat -t 6 -s " "ABORT 'BUSY' " "ABORT 'ERROR' " "ABORT 'NO ANSWER' " "ABORT 'NO CARRIER' " "ABORT 'CONNECT' " "ABORT 'NO DIAL TONE' " "ABORT 'NO DIALTONE' " "ABORT '\\nRINGING\\r\\n\\r\\nRINGING\\r' " "'' 'AT' " "'OK-AT-OK' 'ATZE0Q0S7=20' " "'OK-ATZE0Q0S7=20-OK' 'ATDT%s;' " "'OK' '\\c' " "2>&1 >/dev/ttyS0