[asterisk-users] capiAnswerFax

Michiel van Baak michiel at vanbaak.info
Tue Nov 7 08:12:47 MST 2006


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
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer afficionados are both called users?"



More information about the asterisk-users mailing list