Changeset 9066

Show
Ignore:
Timestamp:
03/01/10 20:47:03 (3 years ago)
Author:
p_lindheimer
Message:

fixes #4096 Asterisk 1.6.2.something has a problem with ExecIf? + System call to fax-process.pl, used GotoIf? and System instead

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.7/fax/functions.inc.php

    r8924 r9066  
    266266    $exten = 'h'; 
    267267    $ext->add($context, $exten, '', new ext_gotoif('$["${FAXSTATUS:0:6}" = "FAILED"]', 'failed')); 
    268     $ext->add($context, $exten, 'process', new ext_execif('$["${FAX_RX_EMAIL}" != ""]','system','${ASTVARLIBDIR}/bin/fax-process.pl --to ${FAX_RX_EMAIL} --from "'.$sender_address['0'].'" --dest "${FROM_DID}" --subject "New fax from ${URIENCODE(${CALLERID(name)})} ${URIENCODE(<${CALLERID(number)}>)}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${ASTSPOOLDIR}/fax/${UNIQUEID}.tif')); 
     268    $ext->add($context, $exten, 'process', new ext_gotoif('$["${FAX_RX_EMAIL}" = ""]','end')); 
     269    $ext->add($context, $exten, '', new ext_system('${ASTVARLIBDIR}/bin/fax-process.pl --to ${FAX_RX_EMAIL} --from "'.$sender_address['0'].'" --dest "${FROM_DID}" --subject "New fax from ${URIENCODE(${CALLERID(name)})} ${URIENCODE(<${CALLERID(number)}>)}" --attachment fax_${URIENCODE(${CALLERID(number)})}.pdf --type application/pdf --file ${ASTSPOOLDIR}/fax/${UNIQUEID}.tif')); 
    269270 
    270271    $ext->add($context, $exten, 'end', new ext_macro('hangupcall')); 
  • modules/branches/2.7/fax/module.xml

    r9054 r9066  
    22  <rawname>fax</rawname> 
    33  <name>Fax Configuration</name> 
    4   <version>2.7.0.14</version> 
     4  <version>2.7.0.15</version> 
    55  <publisher>Schmoozecom.com</publisher> 
    66  <license>GPLv2+</license> 
     
    1212  <description>Adds configurations, options and GUI for inbound faxing</description> 
    1313  <changelog> 
     14    *2.7.0.15* #4096 (workaround for Asterisk bug in 1.6.2) 
    1415    *2.7.0.14* #4090 
    1516    *2.7.0.13* localizations