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

Derrick Knight derrick at freerangeminds.com
Tue Mar 29 07:32:37 MST 2005


Thanks Dave,

I will strip out the macro and give it a try. It did appear from the log 
that the macro was being called and the last command was rxfax.
The sending fax shows that it is getting connected, and then fails to 
send the fax with a message that the receiving fax did not respond and 
no file was sent.

I'll repost my results after the stripping of the macro.

Thanks!
Derrick

Dave Cotton wrote:

>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
>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
>  
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050329/19103324/attachment.htm


More information about the asterisk-users mailing list