<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Still no luck..<br>
<br>
I still get this:<br>
<br>
<br>
-- Accepting call from '3126290600' to '3125727758' on channel 0/1,
span 2<br>
-- Executing [3125727758@from-pstn:1] Macro("Zap/25-1",
<a class="moz-txt-link-rfc2396E" href="mailto:faxreceive|7758|rschall@callone.net">"faxreceive|7758|rschall@callone.net"</a>) in new stack<br>
-- Executing [s@macro-faxreceive:1] Answer("Zap/25-1", "") in new
stack<br>
-- Executing [s@macro-faxreceive:2] Set("Zap/25-1",
"FAXFILE=/var/spool/asterisk/fax/7758_3126290600_1207335375.54.tif") in
new stack<br>
-- Executing [s@macro-faxreceive:3] RxFAX("Zap/25-1",
"/var/spool/asterisk/fax/7758_3126290600_1207335375.54.tif") in new
stack<br>
-- Channel 0/1, span 2 got hangup request, cause 16<br>
-- Hungup 'Zap/25-1'<br>
<br>
Here's my updated function:<br>
[macro-faxreceive]<br>
exten => s,1,Answer()<br>
exten =>
s,n,Set(FAXFILE=/var/spool/asterisk/fax/${ARG1}_${CALLERID(num)}_${UNIQUEID}.tif)<br>
exten => s,n,rxfax(${FAXFILE})<br>
exten => s,n,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")<br>
exten => s,n,Hangup()<br>
exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}" "${ARG2}")<br>
exten => h,n,Hangup()<br>
<br>
Doug Lytle wrote:
<blockquote cite="mid:47F675F7.6050808@drdos.info" type="cite">
<pre wrap="">Rob Schall wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
Here's our setup:
Asterisk 1.4.18
Agx-ast-addons 1.4.5
Problem:
When accepting a fax, the fax itself comes through just fine, and it
does successfully create a tiff file. However, the dialplan should be
executing a system command right after that completes, but isn't due to
hanging up early. I'm getting a cause 16 hangup, which I believe is a
</pre>
</blockquote>
<pre wrap=""><!---->
Use the h extension (hangup) to process the fax.
Doug
</pre>
</blockquote>
<br>
</body>
</html>