/* dial.c - generate DTMF dialing codes on the speaker
**
** Copyright (C) 1989 by Jef Poskanzer.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and that both that
** copyright notice and this permission notice appear in supporting
** documentation.  This software is provided "as is" without express or
** implied warranty.
*/

#include <stdio.h>
#include <fcntl.h>
#include "libsst.h"

main( argc, argv )
int argc;
char *argv[];
    {
    int sst_fd;

    if ( argc != 2 )
	{
	fprintf( stderr, "usage:  %s <dialstring>\n", argv[0] );
	exit( 1 );
	}

    sst_fd = sst_open( );

    sst_dtmf( sst_fd, argv[1], 250000, 30000 );

    sst_close( sst_fd );
    exit( 0 );
    }
