[asterisk-users] capiAnswerFax
Hello, Anyone knows if chan_capi-0.7.1 includes the patch to support capiAnswerFax? I tried to apply this patch (from http://www.mlkj.net/asterisk/) but it give me errors... Also i tried define one extension for fax receptions but this dont works: exten = 1,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() With this code, a fax call to DID 1 must be attended and the fax stored in /tmp, right? This not works... :( Thanks for any kind of possible help... PS. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] capiAnswerFax
On 15:03, Tue 07 Nov 06, Pedro Silva wrote: Hello, Anyone knows if chan_capi-0.7.1 includes the patch to support capiAnswerFax? I tried to apply this patch (from http://www.mlkj.net/asterisk/) but it give me errors... Also i tried define one extension for fax receptions but this dont works: exten = 1,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() With this code, a fax call to DID 1 must be attended and the fax stored in /tmp, right? This not works... :( Thanks for any kind of possible help... PS. Hi, The chan_capi you mention already has fax support. Here is the handle_fax context I use with the latest released chan_capi-cm [handle_fax] exten = s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}) exten = s,n,capicommand(receivefax|${FAXFILE}) exten = h,1,DeadAgi(faxreceive.php|${FAXFILE}) Good luck -- Michiel van Baak [EMAIL PROTECTED] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer afficionados are both called users? ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] capiAnswerFax
On Tue, 7 Nov 2006, Pedro Silva wrote: Hello, Anyone knows if chan_capi-0.7.1 includes the patch to support capiAnswerFax? This patch is not added to chan-capi.org, but receivefax and sendfax is available via capicommand(). Please see README of chan-capi 0.7.x package. Armin I tried to apply this patch (from http://www.mlkj.net/asterisk/) but it give me errors... Also i tried define one extension for fax receptions but this dont works: exten = 1,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() With this code, a fax call to DID 1 must be attended and the fax stored in /tmp, right? This not works... :( Thanks for any kind of possible help... PS. ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] capiAnswerFax
Excellent, Michiel! This works :) You know what kind of file it is created (SFF)? Can you send to me the example faxreceive.php? Thanks and best regards! PS. 2006/11/7, Michiel van Baak [EMAIL PROTECTED]: On 15:03, Tue 07 Nov 06, Pedro Silva wrote: Hello, Anyone knows if chan_capi-0.7.1 includes the patch to support capiAnswerFax? I tried to apply this patch (from http://www.mlkj.net/asterisk/) but it give me errors... Also i tried define one extension for fax receptions but this dont works: exten = 1,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() With this code, a fax call to DID 1 must be attended and the fax stored in /tmp, right? This not works... :( Thanks for any kind of possible help... PS. Hi, The chan_capi you mention already has fax support. Here is the handle_fax context I use with the latest released chan_capi-cm [handle_fax] exten = s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}) exten = s,n,capicommand(receivefax|${FAXFILE}) exten = h,1,DeadAgi(faxreceive.php|${FAXFILE}) Good luck -- Michiel van Baak [EMAIL PROTECTED] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer afficionados are both called users? ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] capiAnswerFax
On 15:34, Tue 07 Nov 06, Pedro Silva wrote: Excellent, Michiel! This works :) You know what kind of file it is created (SFF)? Can you send to me the example faxreceive.php? Thanks and best regards! PS. Hi, Glad it worked. The generated file is a 'Structured Fax File' The faxreceive.php is not that important in this case. All it does is lookup customer that sends the fax in our CRM application and moves the faxfile to the binary datastore of our CRM application. But if you're still interested here is the subversion view of it: http://covide.svn.sourceforge.net/viewvc/covide/trunk/classes/voip/agi_scripts/mysql/faxreceive.php?revision=1view=markup What's more interesting for you I think is how you can convert this file into something more common. The code is here: http://covide.svn.sourceforge.net/viewvc/covide/trunk/classes/voip/data.php?revision=1view=markup line 80 and below. Basically you can run the following commandline tools on the file to create a .pdf sfftobmp -t origfaxfile -o sometifffile.tif tiff2pdf -o somepdffile.pdf sometifffile.tif Good luck -- Michiel van Baak [EMAIL PROTECTED] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer afficionados are both called users? ___ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users