I am facing a bizarre behavior while trying to send fax from zoiper to freeswitch. 

First, i tried to use the dialplan example as shown in documentation page.

<extension name="fax_receive">
  <condition field="destination_number" expression="^9978$">
    <action application="answer" />
    <action application="playback" data="silence_stream://2000"/>
    <action application="set" data="fax_enable_t38_request=true"/>
    <action application="set" data="fax_enable_t38=true"/>
    <action application="rxfax" data="/tmp/FAX-${uuid}.tif"/>
    <action application="hangup"/>
  </condition>
</extension> 

But this resulted in "488 Not Acceptable Here" even though i have set fax_enable_t38 in vars.xml
Logs. 
https://pastebin.freeswitch.org/view/07224882

Second, But i remove few lines from dialplan. 

<extension name="fax_receive">
  <condition field="destination_number" expression="^9978$">
    <action application="answer" />
    <action application="rxfax" data="/tmp/FAX-${uuid}.tif"/>
    <action application="hangup"/>
  </condition>
</extension>

Everything seems to work perfectly. 

Third. When i insert a small lua script after answer in above dialplan it again fails with 488. 


<extension name="fax_receive">
  <condition field="destination_number" expression="^9978$">
    <action application="answer" />
 <action application="lua" data="jack.lua"/>
    <action application="rxfax" data="/tmp/FAX-${uuid}.tif"/>
    <action application="hangup"/>
  </condition>
</extension>

I just want to run a small lua script before i call rxfax application. 
Any help would be much appreciated. 

Best Regards.



Virus-free. www.avast.com