<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Dave,<br>
<br>
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.<br>
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.<br>
<br>
I'll repost my results after the stripping of the macro.<br>
<br>
Thanks!<br>
Derrick<br>
<br>
Dave Cotton wrote:
<blockquote cite="mid1112083574.8286.11.camel@RobinHood" type="cite">
<pre wrap="">On Mon, 2005-03-28 at 18:18 -0800, Derrick Knight wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
</body>
</html>