[asterisk-users] Asterisk 1.4 Call Recording

Mike Hammett asterisk-users at ics-il.net
Tue Jan 15 10:57:10 CST 2008


Are there any tricks to getting combine_wave to make?

[root at Aiur combine_wave-0.3]# ls -al
total 84
drwxr-xr-x 2 root root  4096 Jan 15 10:54 .
drwxr-x--- 6 root root  4096 Jan 15 10:54 ..
-rw-r--r-- 1 root root   351 Oct  6  2005 CHANGES
-rw-r--r-- 1 root root  1123 Oct  6  2005 combine_wave-0.3.lsm
-rw-r--r-- 1 root root 23280 Oct  6  2005 combine_wave.c
-rw-r--r-- 1 root root   449 Oct  6  2005 combine_wave.h
-rw-r--r-- 1 root root  1048 Oct  6  2005 combine_wave.man
-rw-r--r-- 1 root root 17976 Oct  6  2005 LICENSE
-rw-r--r-- 1 root root   459 Oct  6  2005 Makefile
-rw-r--r-- 1 root root   341 Oct  6  2005 README
-rw-r--r-- 1 root root   762 Oct  6  2005 wave_header.h
[root at Aiur combine_wave-0.3]# nano README
[root at Aiur combine_wave-0.3]# make
gcc -O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c combine_wave.c
combine_wave.c: In function ârunning_infoâ:
combine_wave.c:22: error: missing terminating " character
combine_wave.c:24: error: âbâ undeclared (first use in this function)
combine_wave.c:24: error: (Each undeclared identifier is reported only once
combine_wave.c:24: error: for each function it appears in.)
combine_wave.c:24: error: expected â)â before âtogglesâ
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: stray â\â in program
combine_wave.c:24: error: missing terminating " character
combine_wave.c:36: error: expected â;â before â}â token
combine_wave.c: In function âusageâ:
combine_wave.c:42: error: missing terminating " character
combine_wave.c:44: error: âcombine_waveâ undeclared (first use in this 
function)
combine_wave.c:44: error: âaâ undeclared (first use in this function)
combine_wave.c:44: error: âdâ undeclared (first use in this function)
combine_wave.c:44: error: expected â]â before âmilliâ
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: expected â)â before ânâ
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: stray â\â in program
combine_wave.c:44: error: missing terminating " character
combine_wave.c:62: error: expected â;â before â}â token
combine_wave.c: In function âstrsaveâ:
combine_wave.c:71: warning: implicit declaration of function âstrlenâ
combine_wave.c:71: warning: incompatible implicit declaration of built-in 
function âstrlenâ
combine_wave.c:73: warning: implicit declaration of function âstrcpyâ
combine_wave.c:73: warning: incompatible implicit declaration of built-in 
function âstrcpyâ
combine_wave.c: In function âmainâ:
combine_wave.c:604: warning: incompatible implicit declaration of built-in 
function âstrcpyâ
combine_wave.c:991: warning: implicit declaration of function âmemcpyâ
combine_wave.c:991: warning: incompatible implicit declaration of built-in 
function âmemcpyâ
make: *** [combine_wave.o] Error 1



-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com


----- Original Message ----- 
From: "Steve Johnson" <stevej456 at gmail.com>
To: <asterisk-users at ics-il.net>; "Asterisk Users Mailing List - 
Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Monday, January 14, 2008 10:51 AM
Subject: Re: [asterisk-users] Asterisk 1.4 Call Recording


> You might take a few ideas from this combine.sh script which works for
> me.  It uses the combine_wave program from
> http://panteltje.com/panteltje/dvd/combine_wave-0.3.tgz and the lame
> program to convert to mp3.
>
> It converts the entire directory /var/spool/asterisk/monitor/*-in.wav
> files to mp3 where the mp3 file doesn't already exist.
>
> S.
>
>
> File: combine.sh
> ---------------------------
> #!/bin/sh
>
> cd /var/spool/asterisk/monitor
>
> for f in *-in.wav
> do
>        in=$f
>        out=`echo $f | sed -e 's/-in.wav/-out.wav/'`
>        tmpwav=`echo $f | sed -e 's/-in.wav/-both.wav/'`
>        mp3=`echo $f | sed -e 's/-in.wav/.mp3/'`
>
>        if [ -e "$mp3" ]
>        then
>                continue
>        fi
>
>        # combine the two tracks into one stereo file
>        /usr/local/bin/combine_wave -l $in -r $out -o $tmpwav 2>/dev/null
>
>        /usr/bin/lame --silent -h -b 96 $tmpwav $mp3
>
>        # Remove temporary .wav files
>        test -w $tmpwav && rm $tmpwav
>
>        # Remove input files if successful
>        test -s $mp3 && rm $in $out
> done
>
> exit 0
> 




More information about the asterisk-users mailing list