[Asterisk-Users] spandsp rxfax under Linux 2.6 w/TDM400?

Dave Cotton dcotton at linuxautrement.com
Tue Mar 29 01:06:14 MST 2005


On Mon, 2005-03-28 at 18:18 -0800, Derrick Knight wrote:
> I have got my Asterisk server running with TDM400 card (2xFXO & 2xFXS). 
> I originally had the system configured with a Panasonic fax machine on 
> one of the extensions. Due to the high volume of fax spam, I figured it 
> would be a much better idea to capture the faxes as TIF or PDF files to 
> minimize wasted paper, etc. I have downloaded, compiled and installed 
> spandsp and can see the rxfax and txfax applications from within 
> Asterisk. When a fax comes in, it calls the rxfax application and then 
> does nothing. Here is my log:
> 
> Connected to Asterisk CVS-HEAD-03/28/05-16:44:11 currently running on 
> video (pid = 22837)
> video*CLI>
>     -- Starting simple switch on 'Zap/3-1'
>     -- Executing SetMusicOnHold("Zap/3-1", "default") in new stack
>     -- Executing Answer("Zap/3-1", "") in new stack
>     -- Executing Dial("Zap/3-1", "Zap/1|15") in new stack
>     -- Called 1
>     -- Zap/1-1 is ringing
>     -- Zap/1-1 is ringing
>     -- Redirecting Zap/3-1 to fax extension
>     -- Hungup 'Zap/1-1'
>     -- Executing Macro("Zap/3-1", "faxreceive") in new stack
>     -- Executing SetVar("Zap/3-1", "FAXFILE=/data/fax/1112059186.0.tif") 
> in new stack
>     -- Executing RxFAX("Zap/3-1", "/data/fax/1112059186.0.tif") in new stack
>     -- Hungup 'Zap/3-1'
> 
> I am running:
> Fedora Core 3 (2.6.10-1.770_14)
> Asterisk (CVS-HEAD-03/28/05-16:44:11)
> SpanDSP 0.0.2pre10
> libtiff 3.5.7 (including dev source)
> 
> Any guidance would be appreciated.

This is what I'm using albeit on an X100, that does work, I seem to
remember having trouble with the macro so used this instead.

[analog-in]
;
exten => s,1,System(/bin/echo -n -e "'@CALL${CALLERIDNAME} ~
${CALLERIDNUM}'" | nc -q0 -w1 192.168.1.161 10629)
exten => s,2,Answer
exten => s,3,GotoIf($[${CALLERIDNUM} = ${DAVE_MOBILE}]?disa,s,1)
exten => s,4,SetCallerID(9${CALLERIDNUM})
exten => s,5,Dial(${ALLPHONES},20,tr)
exten => s,6,Voicemail(u${INSTITUTE_VM})
exten => s,7,Hangup
exten => s,106,Voicemail(b${INSTITUTE_VM})
exten => s,107,Hangup
;
exten => fax,1,SetCallerID(${CALLERIDNUM})
exten => fax,2,SetVar(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID}.tif)
exten => fax,3,rxfax(${FAXFILE})
exten => fax,4,System(/usr/bin/mailfax ${FAXFILE} ${EMAILADDR}
${CALLERID})
exten => fax,5,Hangup
;

Dave Cotton




More information about the asterisk-users mailing list