Hi all, I noticed that I am not able to use TXFAX from a LUA script as follows: obSession = freeswitch.Session("freetdm/1/1/9999") if obSession:ready() then session:execute("txfax", "/rxfax.tiff") else My objective was to send a fax to a fax machine connected to an FXS. I does work when I use: originate freetdm/1/1/9999 &txfax(/rxfax.tiff) But I wanted to be able to retry based on DISCONNECT CAUSES and the like. 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? TIA
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. -MC On Thu, Apr 14, 2011 at 6:31 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hi all,
I noticed that I am not able to use TXFAX from a LUA script as follows:
obSession = freeswitch.Session("freetdm/1/1/9999")
if obSession:ready() then session:execute("txfax", "/rxfax.tiff") else
My objective was to send a fax to a fax machine connected to an FXS.
I does work when I use:
originate freetdm/1/1/9999 &txfax(/rxfax.tiff)
But I wanted to be able to retry based on DISCONNECT CAUSES and the like.
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?
TIA
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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.. Like I can do freeswitch.consoleLog("info", "Hello World 1! " .. "\n") session:execute("txfax", "/rxfax.tiff") freeswitch.consoleLog("info", "Hello World 2! " .. "\n") and see Hello World 1 and Hello World 2 then hangs up. Michael, when you say transfer to ext that does the bridge you mean something like: extension name="test_txfax_stream"> <condition field="destination_number" expression="^\*90012$"> <action application="txfax" data="txfax.tiff"/> ... </condition> </extension> What exactly do I need to bridge to? On Thu, Apr 14, 2011 at 11:20 AM, Michael Collins <msc@freeswitch.org>wrote:
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.
-MC
On Thu, Apr 14, 2011 at 6:31 AM, Luis F Urrea <lfurrea@gmail.com> wrote:
Hi all,
I noticed that I am not able to use TXFAX from a LUA script as follows:
obSession = freeswitch.Session("freetdm/1/1/9999")
if obSession:ready() then session:execute("txfax", "/rxfax.tiff") else
My objective was to send a fax to a fax machine connected to an FXS.
I does work when I use:
originate freetdm/1/1/9999 &txfax(/rxfax.tiff)
But I wanted to be able to retry based on DISCONNECT CAUSES and the like.
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?
TIA
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Luis F Urrea
-
Michael Collins