[asterisk-users] docs for rxfax in 1.4 or app_fax in 1.6?

Philipp Kempgen philipp.kempgen at amooma.de
Sun Dec 14 05:04:15 CST 2008


sean darcy schrieb:
> Philipp Kempgen wrote:

>> 1.6 comes with SendFax() / ReceiveFax() which use SpanDSP as
>> well and replace txfax/rxfax.

> Any docs for ReceiveFax()? Or, if I'm really lucky, an example?

Not that I know of.
The built-in documentation is:
---cut--------------------------------------------------------------
  -= Info about application 'ReceiveFAX' =-

[Synopsis]
Receive a FAX

[Description]
  ReceiveFAX(filename[|options]):
Receives a fax from the channel into the given filename overwriting
the file if it already exists. File created will have TIFF format.
The option string may contain zero or more of the following characters:
     'c' -- makes the application behave as a calling machine
            The default behaviour is to behave as an answering machine.

This application uses following variables:
     LOCALSTATIONID to identify itself to the remote end.
     LOCALHEADERINFO to generate a header line on each page.

This application sets the following channel variables upon completion:
     FAXSTATUS       - status of operation:
                           SUCCESS | FAILED
     FAXERROR        - Error when FAILED
     FAXMODE         - Mode used:
                           audio | T38
     REMOTESTATIONID - CSID of the remote side.
     FAXPAGES        - number of pages sent.
     FAXBITRATE      - transmition rate.
     FAXRESOLUTION   - resolution.

Returns -1 in case of user hang up or any channel error.
Returns 0 on success.
---cut--------------------------------------------------------------

So I'd try something like:
---cut--------------------------------------------------------------
exten => 123,1,Verbose(1,### Incoming fax ${CDR(uniqueid)})
exten => 123,n,Set(LOCALSTATIONID=My Company)
exten => 123,n,ReceiveFAX(/tmp/fax-${CDR(uniqueid)}.tif)
exten => 123,n,Verbose(1,###       FAXSTATUS: ${FAXSTATUS})
exten => 123,n,Verbose(1,###        FAXERROR: ${FAXERROR})
exten => 123,n,Verbose(1,###         FAXMODE: ${FAXMODE})
exten => 123,n,Verbose(1,###        FAXPAGES: ${FAXPAGES})
exten => 123,n,Verbose(1,###      FAXBITRATE: ${FAXBITRATE})
exten => 123,n,Verbose(1,###   FAXRESOLUTION: ${FAXRESOLUTION})
exten => 123,n,Verbose(1,### REMOTESTATIONID: ${REMOTESTATIONID})
exten => 123,n,Hangup()
---cut--------------------------------------------------------------

   Philipp Kempgen

-- 
http://www.das-asterisk-buch.de  -  http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 



More information about the asterisk-users mailing list