<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>I have this in dialplan/default</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> <extension
name="9999999999"><BR>
<condition field="destination_number"
expression="^(9999999999)$"><BR>
<action application="set"
data="domain_name=$${domain}"/><BR>
<action application="export"
data="dialed_extension=$1"/><BR>
<action application="set"
data="hangup_after_bridge=true"/><BR>
<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/><BR>
<action
application="ring_ready"/><BR>
<action application="tone_detect" data="fax 1100 r +5000 transfer 'receivefax
XML features' 1"
/><BR>
<action application="export"
data="originate_timeout=15"/><BR>
<action application="bridge" data="<A
href="mailto:{absolute_codec_string='speex@16000k,G729,GSM,G726,PCMU,PCMA',sip_from_uri=${sip_from_user}@${sip_from_host},origination_caller_id_name=${caller_id_name},origination_caller_id_number=${caller_id_number}}user/${dialed_extension}"/">{absolute_codec_string='speex@16000k,G729,GSM,G726,PCMU,PCMA',sip_from_uri=${sip_from_user}@${sip_from_host},origination_caller_id_name=${caller_id_name},origination_caller_id_number=${caller_id_number}}user/${dialed_extension}"/</A>><BR>
<action application="sleep"
data="3000"/><BR>
<action
application="answer"/><BR>
<action application="voicemail" data="default ${domain_name}
${dialed_extension}"/><BR>
</condition><BR>
</extension><BR></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>and this in dialplan/features</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> <extension
name="receivefax"><BR> <condition
field="destination_number"
expression="^receivefax$"><BR>
<action application="set"
data="session_in_hangup_hook=true"/><BR>
<action application="set"
data="fax_file=/usr/local/freeswitch/storage/fax/${caller_id_number}-${uuid}.rxfax.tiff"/><BR>
<action application="set"
data="fax_mode=recv"/><BR>
<action application="set" data="api_hangup_hook=perl
/usr/local/freeswitch/scripts/perl/faxStatus.pl"/><BR>
<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="/usr/local/freeswitch/storage/fax/${caller_id_number}-${uuid}.rxfax.tiff"/><BR>
<action application="hangup"/><BR>
</condition><BR> </extension></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>the fax is received well, but the perl script is not
executed.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Am I missing anything ?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Franck</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>