Is SELinux enabled on the machine? If it is, you might have a problem with the asterisk process being able to execute in that directory.<br><br><div class="gmail_quote">On Wed, Nov 11, 2009 at 4:38 AM, her Garcia <span dir="ltr"><<a href="mailto:herlit11@lycos.com">herlit11@lycos.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello. I am trying to execute an fax reception script and i am getting the following:<br>
[Nov 11 08:40:52] WARNING[12800]: app_system.c:88 system_exec_helper: Unable to execute '/var/lib/asterisk/scripts/mailfax "" "" "" "" "" ""'<br>
I tried changing the permissions to the mailfax script but Asterisk still can´t execute the script.<br>
The macro is the following:<br>
[macro-faxreceive] exten => s,1,Set(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID}) exten => s,2,Set(EXTEMAIL=${MACRO_EXTEN}/xEmail) exten => s,3,NoOP() exten => s,4,Set(EXTNAME=${MACRO_EXTEN}/xName) exten => s,5,NoOP() exten =! > s,6,Set(EXTCOMPANY=${MACRO_EXTEN}/xCompany) exten => s,7,nvfaxdetect(${FAXFILE}.tif) exten => s,103,Set(EXTMAIL=<a href="mailto:hsalvarezza@bit2net.com">hsalvarezza@bit2net.com</a>) exten => s,104,Goto(7) exten => s,105,Set(EXTNAME=Hernan) exten => s,106,Goto(7) exten => s,107,Set(EXTCOMPANY=Bit2net S.A) exten => s,108,Goto(7)<br>
[fax] exten => 9299,1,Macro(faxreceive)<br>
exten => h,1,System(/var/lib/asterisk/scripts/mailfax "${CALLERIDNUM}" "${CALLEDFAX}" "${EXTNAME}" "${EXTEMAIL}" "${FAXFILE}" "${EXTCOMPANY}")<br>
Any ideas? Thanks in advanceHernán<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>