<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=windows-1252"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
please can you try this:<br>
1. run the info app from inside your perl script<br>
and see what's going on<br>
otherwise:<br>
        &lt;action application="set"
data="api_hangup_hook=system(/usr/local/freeswitch/scripts/perl/faxStatus.pl)"/&gt;<br>
if the info app run so your perl script is likely called<br>
le 07/12/2010 19:27, Madovsky a écrit :
<blockquote cite="mid:4BEF6419594F4281874094369DC3289A@e1705"
 type="cite">
  <meta content="text/html; charset=windows-1252"
 http-equiv="Content-Type">
  <meta name="GENERATOR" content="MSHTML 8.00.6001.18939">
  <style></style>
  <div><font size="2">I have this in dialplan/default</font></div>
  <div> </div>
  <div><font size="2">        &lt;extension name="9999999999"&gt;<br>
                &lt;condition field="destination_number"
expression="^(9999999999)$"&gt;<br>
                        &lt;action application="set"
data="domain_name=$${domain}"/&gt;<br>
                        &lt;action application="export"
data="dialed_extension=$1"/&gt;<br>
                        &lt;action application="set"
data="hangup_after_bridge=true"/&gt;<br>
                        &lt;action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,CALL_REJECTED,USER_NOT_REGISTERED,NO_ANSWER,NO_USER_RESPONSE,USER_BUSY"/&gt;<br>
                        &lt;action application="ring_ready"/&gt;<br>
                        &lt;action application="tone_detect" data="fax
1100 r +5000 transfer 'receivefax XML features' 1" /&gt;<br>
                        &lt;action application="export"
data="originate_timeout=15"/&gt;<br>
                        &lt;action application="bridge" data="<a
 moz-do-not-send="true"
 href="mailto:%7Babsolute_codec_string=%27speex@16000k,G729,GSM,G726,PCMU,PCMA%27,sip_from_uri=$%7Bsip_from_user%7D@$%7Bsip_from_host%7D,origination_caller_id_name=$%7Bcaller_id_name%7D,origination_caller_id_number=$%7Bcaller_id_number%7D%7Duser/$%7Bdialed_extension%7D%22/">{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>&gt;<br>
                        &lt;action application="sleep" data="3000"/&gt;<br>
                        &lt;action application="answer"/&gt;<br>
                        &lt;action application="voicemail"
data="default ${domain_name} ${dialed_extension}"/&gt;<br>
                &lt;/condition&gt;<br>
        &lt;/extension&gt;<br>
  </font></div>
  <div> </div>
  <div><font size="2">and this in dialplan/features</font></div>
  <div> </div>
  <div> </div>
  <div><font size="2">    &lt;extension name="receivefax"&gt;<br>
      &lt;condition field="destination_number"
expression="^receivefax$"&gt;<br>
        &lt;action application="set"
data="session_in_hangup_hook=true"/&gt;<br>
        &lt;action application="set"
data="fax_file=/usr/local/freeswitch/storage/fax/${caller_id_number}-${uuid}.rxfax.tiff"/&gt;<br>
        &lt;action application="set" data="fax_mode=recv"/&gt;<br>
        &lt;action application="set" data="api_hangup_hook=perl
/usr/local/freeswitch/scripts/perl/faxStatus.pl"/&gt;<br>
        &lt;action application="answer" /&gt;<br>
        &lt;action application="playback"
data="silence_stream://2000"/&gt;<br>
        &lt;action application="set"
data="fax_enable_t38_request=true"/&gt;<br>
        &lt;action application="set" data="fax_enable_t38=true"/&gt;<br>
        &lt;action application="rxfax"
data="/usr/local/freeswitch/storage/fax/${caller_id_number}-${uuid}.rxfax.tiff"/&gt;<br>
        &lt;action application="hangup"/&gt;<br>
      &lt;/condition&gt;<br>
    &lt;/extension&gt;</font></div>
  <div> </div>
  <div> </div>
  <div><font size="2">the fax is received well, but the perl script is
not executed.</font></div>
  <div> </div>
  <div><font size="2">Am I missing anything ?</font></div>
  <div> </div>
  <div><font size="2">Thanks</font></div>
  <div> </div>
  <div><font size="2">Franck</font></div>
  <div><font size="2"><br>
  </font></div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
</blockquote>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Meftah Tayeb
inum: +883510001288000
Phone: +13602276297
Fax: +12538020313</pre>
</body>
</html>