<!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">
lol,<br>
do you have mod_perl compiled/loaded?<br>
:P<br>
Le 08/12/2010 04:53, Madovsky a écrit :
<blockquote cite="mid:2628065EC8D348DE8F47FE7C8B011F4B@e1705"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18939">
<style></style>
<div><font size="2">mmmhmm, weird in the logs I can see :</font></div>
<div> </div>
<div><font size="2">/usr/local/freeswitch/scripts/perl/faxStatus.pl():
///////////// what is these parenthesis at the last?</font></div>
<div><font size="2">INVALID COMMAND!</font></div>
<div> </div>
<div><font size="2">if I use this xml</font></div>
<div><font size="2"><action application="set"
data="api_hangup_hook=/usr/local/freeswitch/scripts/perl/faxStatus.pl"/></font></div>
<div> </div>
<div><font size="2">and</font></div>
<div> </div>
<div><font size="2">system(usr/local/freeswitch/scripts/perl/faxStatus.pl()):
</font>
<div><font size="2"><font size="2">INVALID COMMAND!</font></font></div>
</div>
<div><font size="2"> </font></div>
<div><font size="2">if</font></div>
<div><font size="2"> </font></div>
<div><font size="2"><action application="set"
data="api_hangup_hook=system(/usr/local/freeswitch/scripts/perl/faxStatus.pl)"/></font></div>
<div><font size="2"> </font></div>
<div><font size="2">if you think this log is not enough I will
pastebin, but the rest of logs are ok....</font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2"><br>
</font></div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;">
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">-----
Original Message ----- </div>
<div
style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><b>From:</b>
<a moz-do-not-send="true" title="msc@freeswitch.org"
href="mailto:msc@freeswitch.org">Michael Collins</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>To:</b>
<a moz-do-not-send="true"
title="freeswitch-users@lists.freeswitch.org"
href="mailto:freeswitch-users@lists.freeswitch.org">FreeSWITCH Users
Help</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>Sent:</b>
Tuesday, December 07, 2010 3:51 PM</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;"><b>Subject:</b>
Re: [Freeswitch-users] api_hangup_hook question</div>
<div><br>
</div>
Can you pastebin your logs? There might be a clue as to what is
happening.
<div>-MC<br>
<br>
<div class="gmail_quote">On Tue, Dec 7, 2010 at 10:27 AM, Madovsky <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:infos@madovsky.org">infos@madovsky.org</a>></span>
wrote:<br>
<blockquote
style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"
class="gmail_quote">
<div bgcolor="#ffffff">
<div><font size="2">I have this in dialplan/default</font></div>
<div> </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
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/"
target="_blank">{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> </div>
<div><font size="2">and this in dialplan/features</font></div>
<div> </div>
<div> </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> </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><br>
</div>
</div>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<p> </p>
<hr> _______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
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><br>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
</blockquote>
<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>
<pre class="moz-signature" cols="72">--
Meftah Tayeb
inum: +883510001288000
Phone: +13602276297
Fax: +12538020313</pre>
</body>
</html>