[Asterisk-Users] Email to FAX

trixter http://www.0xdecafbad.com trixter at 0xdecafbad.com
Thu Oct 13 02:18:10 MST 2005


On Thu, 2005-10-13 at 10:45 +0200, Coufal Bohuslav wrote:
> Hi,
> 
> when I try to send fax by example in README I got nothing. On asterisk console 
> i saw this:
> 
>     -- Attempting call on Zap/4/585228796 for application 
> txfax(/tmp/ast_fax-1129192102.10240.1804289383.0|caller) (Retry 1)
>        > Channel Zap/4-1 was answered.
>        > Launching txfax(/tmp/ast_fax-1129192102.10240.1804289383.0|caller) on 
> Zap/4-1
> 
>     -- Hungup 'Zap/4-1'
> 

http://soft-switch.org/installing-spandsp.html
When sending a fax it is more likely you will be calling out to the
remote FAX machine. In this case, make your Asterisk call the far FAX
machine, and when it answers do: 
        exten => 1234567,1,txfax(/home/steveu/testfax.tif|caller)
The addition of "|caller" will make txfax act as a calling machine,
rather than an answering machine.


This seems ti imply that txfax() doesnt actually dial anything, you have
to do that elsewhere, I suggest you use the outgoing spool directory and
place (mv not cp) a file in there.

Channel: Zap/1/5551212
Maxretries: 0
Waittime: 20
Application: txfax
Data: /tmp/fax.tiff|caller


This will cause asterisk to call on Zap/1 and dial the number 5551212,
when that answers it will call txfax and pass it the path to the fax
file and caller (so it acts like a caller not a server/answering
endpoint).


-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051013/d3bb3e08/attachment.pgp


More information about the asterisk-users mailing list