Index: tonezone.c =================================================================== RCS file: /usr/cvsroot/zaptel/tonezone.c,v retrieving revision 1.5 diff -u -r1.5 tonezone.c --- tonezone.c 15 Feb 2004 02:23:25 -0000 1.5 +++ tonezone.c 13 Jun 2005 10:09:35 -0000 @@ -123,7 +123,7 @@ return -1; } #if 0 - printf("Using %d samples for %d and %d\n", samples, freq1, freq2); + printf("Using %d samples for %d and %d\n", time * 8, freq1, freq2); #endif if (size < sizeof(struct zt_tone_def)) { fprintf(stderr, "Not enough space for samples\n"); @@ -164,6 +164,9 @@ /* If we don't end on a solid tone, return */ td->next = firstnobang; } + if (firstnobang < 0) + fprintf(stderr, "tone '%s' does not end with a solid tone or silence (all tone components have an exclamation mark)\n", t->data); + return used; } Index: zaptel.c =================================================================== RCS file: /usr/cvsroot/zaptel/zaptel.c,v retrieving revision 1.108 diff -u -r1.108 zaptel.c --- zaptel.c 8 Jun 2005 23:57:01 -0000 1.108 +++ zaptel.c 13 Jun 2005 10:09:39 -0000 @@ -2420,7 +2420,7 @@ next[x] = td.next; /* Make sure the "next" one is sane */ if ((next[x] >= th.count) || (next[x] < 0)) { - printk("Invalid 'next' pointer\n"); + printk("Invalid 'next' pointer: %d\n", next[x]); kfree(slab); return -EINVAL; } Index: zonedata.c =================================================================== RCS file: /usr/cvsroot/zaptel/zonedata.c,v retrieving revision 1.36 diff -u -r1.36 zonedata.c --- zonedata.c 9 Jun 2005 21:29:39 -0000 1.36 +++ zonedata.c 13 Jun 2005 10:09:42 -0000 @@ -460,7 +460,7 @@ { ZT_TONE_BUSY, "425/480,0/480" }, { ZT_TONE_RINGTONE, "425/1000,0/4000" }, { ZT_TONE_CONGESTION, "425/240,0/240" }, - { ZT_TONE_CALLWAIT, "!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200" }, + { ZT_TONE_CALLWAIT, "!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,!0/5000,!425/200,!0/200,!425/200,0" }, /* DIALRECALL - not specified */ { ZT_TONE_DIALRECALL, "!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425" }, /* RECORDTONE - not specified */ @@ -492,7 +492,7 @@ { ZT_TONE_BUSY, "425/500,0/500" }, { ZT_TONE_RINGTONE, "425/1000,0/4000" }, { ZT_TONE_CONGESTION, "425/200,0/200" }, - { ZT_TONE_CALLWAIT, "!425/200,!0/600,!425/200,!0/3000,!425/200,!0/200,!425/200" }, + { ZT_TONE_CALLWAIT, "!425/200,!0/600,!425/200,!0/3000,!425/200,!0/200,!425/200,0" }, /* DIALRECALL - not specified */ { ZT_TONE_DIALRECALL, "!425/100,!0/100,!425/100,!0/100,!425/100,!0/100,425" }, /* RECORDTONE - not specified */