I wouldn&#39;t know if it tries to run, it just sits there for a while until the channel is hung with a timeout I assume then the script continues..<div><br></div><div>Like I can do </div><div><br></div><div><div>freeswitch.consoleLog(&quot;info&quot;, &quot;Hello World 1! &quot; .. &quot;\n&quot;)</div>
<div>   session:execute(&quot;txfax&quot;, &quot;/rxfax.tiff&quot;)</div><div>   freeswitch.consoleLog(&quot;info&quot;, &quot;Hello World 2! &quot; .. &quot;\n&quot;)</div><div><br></div><div>and see Hello World 1 and Hello World 2</div>
<div><br></div><div>then hangs up.</div><div><br></div><div>Michael, when you say transfer to ext that does the bridge you mean something like:</div><div><br></div><div><div>extension name=&quot;test_txfax_stream&quot;&gt;</div>
<div>     &lt;condition field=&quot;destination_number&quot; expression=&quot;^\*90012$&quot;&gt;</div><div>       &lt;action application=&quot;txfax&quot; data=&quot;txfax.tiff&quot;/&gt;</div><div>       ...</div><div>     &lt;/condition&gt;</div>
<div>   &lt;/extension&gt;</div></div><div><br></div><div>What exactly do I need to bridge to?</div><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 11:20 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">What happens when you call the txfax app from Lua? Does it even attempt to run? Just curious. In any case, I think you can do a combo of dp and Lua by transferring the call to an extension that does the bridge and if it fails you can check the failure cause in a Lua script and try again. You&#39;ll just need a chan var for the number of attempts.<div>

<br></div><div>-MC<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Apr 14, 2011 at 6:31 AM, Luis F Urrea <span dir="ltr">&lt;<a href="mailto:lfurrea@gmail.com" target="_blank">lfurrea@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi all,<div><br></div><div>I noticed that I am not able to use TXFAX from a LUA script as follows:</div><div><br></div><div>obSession = freeswitch.Session(&quot;freetdm/1/1/9999&quot;)</div><div><br></div><div><div>if obSession:ready() then</div>


<div>    session:execute(&quot;txfax&quot;, &quot;/rxfax.tiff&quot;)</div><div>else</div></div><div><br></div><div>My objective was to send a fax to a fax machine connected to an FXS.</div><div><br></div><div>I does work when I use:</div>


<div><br></div><div>originate freetdm/1/1/9999 &amp;txfax(/rxfax.tiff)</div><div><br></div><div>But I wanted to be able to retry based on DISCONNECT CAUSES and the like.</div><div><br></div><div><br></div><div>Just for peace of mind I wanted to get some input from you on the causes of this &quot;limitation&quot;, and maybe get some suggestions as to any other options?</div>


<div><br></div><div><br></div><div>TIA</div>
<br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>