summaryrefslogtreecommitdiff
path: root/fxotune.c
diff options
context:
space:
mode:
authorfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-05-18 15:40:14 +0000
committerfile <file@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2006-05-18 15:40:14 +0000
commit9d2f2166173a54358b244ac580c341c6dd9d5d6b (patch)
tree618a237d6ad169fa96849d69a11d04ffb96101e2 /fxotune.c
parent8647a60f08ee0992756b9b23b4cfc9dd6302b040 (diff)
Clear dialtone before running tests (issue #7136 reported and fixed by trumpetinc)
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@1073 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'fxotune.c')
-rw-r--r--fxotune.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fxotune.c b/fxotune.c
index 54ebed9..312ecca 100644
--- a/fxotune.c
+++ b/fxotune.c
@@ -174,7 +174,7 @@ static int acim_tune(int whichzap, char *dialstr)
for (acim = 0; acim < 16; acim++) {
float freq_results[15];
- int needtoreset = 0;
+ int needtoreset = 9;
coefs.acim = acim;
if (ioctl(whichzap, WCTDM_SET_ECHOTUNE, &coefs)) {
@@ -203,6 +203,7 @@ static int acim_tune(int whichzap, char *dialstr)
fprintf(stderr, "Cannot bring fd %d off hook", whichzap);
return -1;
}
+ sleep(2); // KD - Added to ensure that dial can actually takes place
memset(&dop, 0, sizeof(dop));
dop.op = ZT_DIAL_OP_REPLACE;
@@ -365,7 +366,7 @@ set:
continue;
}
- printf("Tuning module %d", i + 1);
+ printf("Tuning module %d\n", i + 1);
res = acim_tune(fd, argv[2]); /* Shouldn't matter what digit we press */
if (res < 0)
printf("Failure!\n");