From 956601883f4e7ed0398fd4fd1851f934f13ce632 Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 25 Feb 2005 22:09:23 +0000 Subject: Make the digit configurable again to break dialtone. git-svn-id: http://svn.digium.com/svn/zaptel/trunk@597 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- fxotune.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fxotune.c') diff --git a/fxotune.c b/fxotune.c index 45186f4..d9dd442 100755 --- a/fxotune.c +++ b/fxotune.c @@ -509,7 +509,7 @@ set: } if (!strcasecmp(argv[1], "-i")) { - if (argc != 2) { + if (argc != 3) { /* Show usage */ fputs(usage, stdout); return -1; @@ -531,7 +531,7 @@ set: continue; } - res = acim_tune(fd, "4"); /* Shouldn't matter what digit we press */ + res = acim_tune(fd, argv[2]); /* Shouldn't matter what digit we press */ close(fd); if (res > -1) { @@ -561,5 +561,7 @@ set: goto set; } + fputs(usage, stdout); + return 0; } -- cgit v1.2.3