<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.5512" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am using excute_on_fax_success to call a script
when a fax is received, the script converts the fax to pdf and emails it,
Is there a way to pass the number of pages received, ie, a variable created by
spandsp. Everything works, but I do not seem to be able to pass the
variables.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <condition
field="destination_number"
expression="^1(\d{10})$|(\d{10})$"><BR>
<action application="set"
data="faxtempdirectory=/faxfiles/${caller_id_number}"/> <BR>
<action application="system" data="mkdir
${faxtempdirectory}"/> <BR>
<action application="set"
data="faxDirection=outbound"/> <BR>
<action application="set" data="<A
href='mailto:emailAddress=$1$2@${fax2net_server}"/'>emailAddress=$1$2@${fax2net_server}"/</A>><BR>
<action application="set"
data="faxFile=$1$2-${caller_id_number}-${strftime(%Y-%m-%d-%H-%M-%S)-Success}"/><BR> <action
application="set" data="execute_on_fax_success=system
/./var/mail/sentfaxes/fax2mail.sh ${faxFile} <A
href="mailto:$1$2@${fax2net_server">$1$2@${fax2net_server</A>}
${fax_security_code} ${fromRc} fax2net_orig=${fax_email}=
${fax_transfer_rate}"/> </FONT></DIV>
<DIV><FONT face=Arial
size=2> <action
application="answer"/><BR> <action
application="playback"
data="silence_stream://2000"/><BR>
<action application="set"
data="fax_enable_t38_request=true"/><BR>
<action application="set"
data="fax_enable_t38=true"/><BR>
<action application="rxfax"
data="${faxFile}.tif"/><BR> <action
application="hangup"/><BR> </condition>
<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Darcy Primrose</DIV></FONT></BODY></HTML>