[zaptel-commits] branch 1.2 r1073 - /branches/1.2/fxotune.c
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Thu May 18 08:40:15 MST 2006
Author: file
Date: Thu May 18 10:40:14 2006
New Revision: 1073
URL: http://svn.digium.com/view/zaptel?rev=1073&view=rev
Log:
Clear dialtone before running tests (issue #7136 reported and fixed by trumpetinc)
Modified:
branches/1.2/fxotune.c
Modified: branches/1.2/fxotune.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/fxotune.c?rev=1073&r1=1072&r2=1073&view=diff
==============================================================================
--- branches/1.2/fxotune.c (original)
+++ branches/1.2/fxotune.c Thu May 18 10:40:14 2006
@@ -174,7 +174,7 @@
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 @@
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 @@
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");
More information about the zaptel-commits
mailing list