[Freeswitch-users] txfax bug?
Dmitry Saratsky
simpot at simpot.com
Tue Mar 8 02:40:45 MSK 2011
Hi All,
I have some LUA script that designed to send faxes.
If I originate session from within lua in the following way, all ok (fax can be sent successfully), but I see annoying error log in console... why?
Relevant part of LUA script:
local new_session = freeswitch.Session();
new_session:originate(session, "{autohangup=false,sip_cid_type=rpid,absolute_codec_string='PCMU,PCMA',origination_caller_id_name=" .. fax_caller_id .. ",origination_caller_id_number=" .. fax_caller_id .. "}sofia/gateway/sip1.myprovider.com/" .. fax_dst_num .. "|sofia/gateway/ sip2.myprovider.com /" .. fax_dst_num, 20);
new_session:execute("txfax", outgoing_fax_path .. fax_tiff_file .. ".tiff");
repeat
new_session:sleep(1000);
until ((new_session:ready() == false) or (new_session:getVariable("fax_result_code") >= "0"))
new_session:hangup();
Error log:
2011-03-08 01:24:02.289821 [ERR] switch_ivr.c:481 Invalid Command!
According to my investigation, I can say for sure, that reason for error log in console is following line in my LUA script:
new_session:execute("txfax", outgoing_fax_path .. fax_tiff_file .. ".tiff");
Yes, I know that all docs says to use txfax function in lay like: "originate sofia/external/100 at 10.10.10.10 &txfax(/path_to_fax_file)", but from other examples for "rxfax" I decided to do it in my way. It is even works perfect... So, why I still see error for this?
Thanks,
Dmitry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110308/e38b290a/attachment-0001.html
More information about the FreeSWITCH-users
mailing list