[Asterisk-Users] Receiving faxes and then sending them on
Craig Guy
cguy at bigpond.net.au
Fri Jun 16 19:19:56 MST 2006
I haven't tried it, but you might be able to do something with the hangup
('h') extension. For example:
[macro-RXFAX]
exten => s,1,Answer()
exten => s,n,Set(FAXFILE=/tmp/fax-${UNIQUEID}.tif)
exten => s,n,Set(EMAILADDR=ingrid.fix at offix-koeln.de)
exten => s,n,Set(EMAILADDR=${ARG1})
exten => s,n,rxfax(${FAXFILE}|debug)
[fax-inbound]
exten => _XXXX,1,doSomeStuff
exten => _XXXX,n,macro(RXFAX,${EMAILADDRESS},${SOMENUMBER})
exten => _XXXX,n,Hangup
exten => h,1,goto(dialout,6666,1)
[dialout]
exten => 6666,1,system(/usr/local/sbin/mailfax ${FAXFILE} ${EMAILADDR} $
{CALLERIDNUM})
exten => 6666,n,Dial(${ARG2})
exten => 6666,n,txfax(${FAXFILE}|caller)
exten => 6666,n,Hangup
exten => s,n,system(/usr/local/sbin/mailfax ${FAXFILE} ${EMAILADDR} $
{CALLERIDNUM})
exten => s,n,Dial(${ARG2})
exten => s,n,txfax(${FAXFILE}|caller)
exten => s,n,Hangup
----- Original Message -----
From: "Koen Van Impe" <koenvi at gmail.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Friday, June 16, 2006 8:11 PM
Subject: Re: [Asterisk-Users] Receiving faxes and then sending them on
> Maye you should use the 'D' option in the Dial application to proceed when
> the call is answered.
> Not sure, and I don't have time to test myself, but give it a try!
>
> K
>
>
> On 6/16/06, Frederik Fix <frederikfix at eml.cc> wrote:
>>
>> Hi,
>> I'm trying to setup a system where incoming faxes are received using
>> SpanDSP and then send on to another (remote) fax machine. The SpanDSP
>> part is working excellently, however I dont seem to be able to get
>> the forwarding part to work. Heres what I put into my extensions.conf:
>>
>> exten => s,4,Answer()
>> exten => s,5,Set(FAXFILE=/tmp/fax-${UNIQUEID}.tif)
>> exten => s,6,Set(EMAILADDR=ingrid.fix at offix-koeln.de)
>> exten => s,7,Set(EMAILADDR=${ARG1})
>> exten => s,8,rxfax(${FAXFILE}|debug)
>> exten => s,9,system(/usr/local/sbin/mailfax ${FAXFILE} ${EMAILADDR} $
>> {CALLERIDNUM})
>> exten => s,10,Dial(${ARG2})
>> exten => s,11,txfax(${FAXFILE}|caller)
>> exten => s,12,Hangup
>>
>> Asterisk does start dialing at priority 10 however as soon as the
>> remote fax hangs up that call gets destroyed as well.
>>
>> Is there anyway to do something like this?
>>
>> Kind regards,
>> Frederik Fix
>> _______________________________________________
>> --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
>
More information about the asterisk-users
mailing list