From: bugra H. <bug...@gm...> - 2008-12-19 14:33:59
|
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. |