From: Mihai B. <mi...@ha...> - 2008-12-19 14:59:15
|
Well, if you dig through iaxclient.h, you'll notice a set of flags starting with IAXC_AUDIO_PREF_ They can be used to receive incoming and outgoing audio data in both raw and encoded format. The data is received through the main event callback. You will have to write your own code that saves the data to a file. If you want your client to just save audio to file and not actually use your audio hardware, you might want to look at test mode (again in iaxclient.h) The old audio_file stuff is deprecated and as far as I'm concerned, unsupported. You're on your own there. Mihai On Dec 19, 2008, at 9:33 AM, bugra HASBEK wrote: > hi guys, > > I want to build an application which auto-answers and records calls > to a file. I googled it but failed to find a proper solution. it > seems like there was an audio_file.c in the older version which can > be used by initializing iax with 'audio_internal_file' argument. In > the newer releases audio_file.c is missing so i downloaded > audio_file.c from an older release and add it to makefile. I also > edited iaxclient_lib.c to use audio_file.c instead of portaudio: > > -------------------- > if(file_initialize(&audio_driver, 8000) ) > // if(pa_initialize(&audio_driver, 8000) ) > --------------------- > > The problem is, i can't play the output file. I tried amarok, vlc, > wmp but they all refused to play the output file :(( > > Here is a self compilable sample of my program: http://pastebin.com/f2fcf5b60 > Here is audio_file.c: http://pastebin.com/f7e5ed3e7 > > My question is what is best way of recording a call and what is > wrong with my code? Any suggestion is appreciated.... > > btw i installed 2.0.2 version, there were build errors for tkphone > but i managed to bypass them. > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > Iaxclient-devel mailing list > Iax...@li... > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel |