summaryrefslogtreecommitdiffstats
path: root/gentones.c
diff options
context:
space:
mode:
authorAndreas Eversberg2008-11-04 09:31:09 +0100
committerAndreas Eversberg2008-11-04 09:31:09 +0100
commitefc550418c0b107c07818809a3d8e779e476dcd4 (patch)
tree4ce7e1612b611a95007fa335019a1ebc19fa993f /gentones.c
parentMerge branch 'master' of ssh://jolly@www.mISDN.org/var/git/lcr (diff)
downloadlcr-efc550418c0b107c07818809a3d8e779e476dcd4.tar.gz
lcr-efc550418c0b107c07818809a3d8e779e476dcd4.tar.xz
lcr-efc550418c0b107c07818809a3d8e779e476dcd4.zip
Added processing of second caller id.
New routing macht rule to filter second caller id. Fixed extensions directory path. "make clean" now cleans ".po" files. Fixed unititialized variable bugs and compiler warnings. modified: Makefile.am modified: Makefile.in modified: action.cpp modified: apppbx.cpp modified: callerid.c modified: chan_lcr.c modified: dss1.cpp modified: dss1.h modified: extension.c modified: gentones.c modified: ie.cpp modified: mISDN.cpp modified: message.h modified: port.cpp modified: route.c modified: route.h modified: socket_server.c modified: tones.c modified: trace.c
Diffstat (limited to 'gentones.c')
-rw-r--r--gentones.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gentones.c b/gentones.c
index bf91e26..daaf9cb 100644
--- a/gentones.c
+++ b/gentones.c
@@ -86,9 +86,9 @@ static short isdn_audio_alaw_to_s16[] =
unsigned char encode_isdn(short sample, char law)
{
- int best=-1;
+ int best = -1;
int i,diff;
- int best_diff;
+ int best_diff = 9999;
i=0;
while(i<256)
@@ -149,7 +149,7 @@ void write_wav(FILE *fp, char *wav, char law)
struct fmt *fmt;
FILE *wfp;
signed int i;
- int channels, bytes;
+ int channels = 0, bytes = 0;
short sample, sample2;
signed int size, chunk;
int gotfmt = 0, gotdata = 0;