I wouldn'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("info", "Hello World 1! " .. "\n")</div>
<div> session:execute("txfax", "/rxfax.tiff")</div><div> freeswitch.consoleLog("info", "Hello World 2! " .. "\n")</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="test_txfax_stream"></div>
<div> <condition field="destination_number" expression="^\*90012$"></div><div> <action application="txfax" data="txfax.tiff"/></div><div> ...</div><div> </condition></div>
<div> </extension></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"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></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'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"><<a href="mailto:lfurrea@gmail.com" target="_blank">lfurrea@gmail.com</a>></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("freetdm/1/1/9999")</div><div><br></div><div><div>if obSession:ready() then</div>
<div> session:execute("txfax", "/rxfax.tiff")</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 &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 "limitation", 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>