diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-06-21 23:52:40 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-06-21 23:52:40 +0000 |
commit | 7876ba00032d1117816414899497de867bf3eb31 (patch) | |
tree | 8726c2acbfe4e1d46f60b140e0f58e7f59249229 /tonezone.c | |
parent | 56270d3698dc53f439a7fc8f7c26c10b0d79bc0c (diff) |
correct ZT_TONE_CALLWAIT for de and dk zones (bug #4519)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@680 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'tonezone.c')
-rwxr-xr-x | tonezone.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -123,7 +123,7 @@ static int build_tone(char *data, int size, struct tone_zone_sound *t, int *coun 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 @@ static int build_tone(char *data, int size, struct tone_zone_sound *t, int *coun /* 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; } |