[Asterisk-Users] Email to FAX

Coufal Bohuslav bcoufal at onyx.cz
Thu Oct 13 02:52:30 MST 2005


But it seems that Asterisk understand that he has to dial (the dialed number 
is correct),

    -- Attempting call on Zap/4/585228796 for application 
txfax(/tmp/ast_fax-1129192102.10240.1804289383.0|caller) (Retry 1)

it seems that zap channel had answered (but nothing to try dial),

       > Channel Zap/4-1 was answered.

and lunching txfax

       > Launching txfax(/tmp/ast_fax-1129191936.10240.1804289383.0|caller) on 
Zap/4-1

and immediately hungup

    -- Hungup 'Zap/4-1'

May be something wrong in zapata.conf?

; Zapata telephony interface
;
; Configuration file
;
; You need to restart Asterisk to re-configure the Zap channel
; CLI> reload chan_zap.so
;               will reload the configuration file,
;               but not all configuration options are
;               re-configured during a reload.
[channels]
;
language=us
signalling=fxs_ks
context=default
;context=fax
channel => 3-4

Thank for any other sugestions,

Bob.

Dne čtvrtek 13 říjen 2005 11:18 trixter http://www.0xdecafbad.com napsal(a):
> 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).



More information about the asterisk-users mailing list