[Freeswitch-users] loopback problem with lua and rxfax
Babak Yakhchali
babak.freeswitch at gmail.com
Thu Aug 15 00:28:38 MSD 2013
Hi
I'm using these 2 extensions for receiving faxes. to receive a fax first
call hits "faxin" extension and then is bridged to "dofaxin". I'm using
loopback to be able to handle attended transfers from ivrs that include
fax. the problem is if I send a call directly to 704 everything works fine.
but if I send it to 705 rxfax (which is the main case)it is not working as
expected and after a long waiting rxfax fails with " The call dropped
prematurely".
<extension name="dofaxin">
<condition field="destination_number" expression="^704$">
<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="lua" data="lua/applications/fax.lua"/>
<!--action application="rxfax" data="/tmp/shit.tiff"/-->
</condition>
</extension>
<extension name="faxin">
<condition field="destination_number" expression="^705$">
<action application="bridge" data="loopback/704/public/XML"/>
</condition>
</extension>
and the simplified version of file "lua/applications/fax.lua" is:
...
session:execute('rxfax','/tmp/test.tiff')
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130815/948f91fb/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list