this patch allows the compilation of chan_capi-0.3.5 against current CVS-HEAD of asterisk. this patch is underlies the GPL. it works with chan_capi of Klaus-Peter Junghanns http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz and asterisk CVS-HEAD as of 2004-11-17 it also incorporates the capiAnswerFax patch of Carl Sempla / Cedrik Hans http://www.mlkj.net/asterisk/chan_capi-0.3.5-patch.tar.bz2 * wget http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.5.tar.gz * copy the file 'chan_capi-0.3.5-patch.diff' into your chan_capi-0.3.5 directory * run 'patch -p1 123,1,Answer() exten => 123,2,BackGround(jpop) exten => 124,1,Goto(handle_fax,s,1) exten => fax,1,Goto(handle_fax,s,1) [handle_fax] exten => s,1,capiAnswerFax(/tmp/${UNIQUEID}) exten => s,2,Hangup() exten => h,1,deadagi,fax.php // Run sfftobmp and mail it. The output of capiAnswerFax is a SFF file. Use sfftobmp to convert it. With a Diva Server, theses features are allowed : fax up to 33600, high resolution. Color Fax /JPEG Compression is disabled (I can't test it). A fix for a dead lock issue is also included (Oct 22 18:06:00 WARNING[11275]: channel.c:472 ast_channel_walk_locked: Avoided initial deadlock for 'CAPI[contr1/173720007]/7', 10 retries!)