Problem with T.38 fax receive using ESL
Hi, I'm having problems receiving faxes through the Event Socket API using T.38 and SpanDSP. If I use the example dialplan entry: <extension name="NTS TESTfax"> <condition field="destination_number" expression="^\+(testfax)"> <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="rxfax" data="/tmp/faxes/FAX-${uuid}.tif"/> <action application="hangup"/> </condition> </extension> Then everything is OK and a fax is received nicely whereas if I use an ESL command on an answered call like: SendMsg 5716720c-e291-11df-939c-75e5ad3b2de7 call-command: execute execute-app-name: rxfax execute-app-arg: {fax_enable_t38_request=true,fax_enable_t38=true,fax_header=testheader,fax_ident=testident}/tmp/faxes/myfax.tif Then there's lots of T.38 mucking about but the fax terminates with a communications error. I've tried sleeping for 2 seconds, broadcasting silence_stream://2000 etc but to no avail. Has anyone successfully got T.38 fax receive working through the ESL, and if so, what chain of commands do you execute? I'm using a GIT trunk circa Oct 15th BTW. Many thanks, Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-T-38-fax-receive-... Sent from the freeswitch-users mailing list archive at Nabble.com.
I don't see any indication in the docs that this syntax is doing what you think it is: {fax_enable_t38_request=true,fax_enable_t38=true,fax_header=testheader,fax_ident=testident}/tmp/faxes/myfax.tif You could confirm this by removing the two "set" apps and adding those to the "rxfax" call in the dialplan: <action application="rxfax" data="{fax_enable_t38_request=true,fax_enable_t38=true,fax_header=testheader,fax_ident=testident}/tmp/faxes/FAX-${uuid}.tif"/> My guess is that the above will not work. I would recommend trying the SendMsg to set the vars: SendMsg 5716720c-e291-11df-939c-75e5ad3b2de7 call-command: execute execute-app-name: set execute-app-arg: fax_enable_t38_request=true Do that for each var and then do the rxfax. Let us know what happens. -MC On Thu, Oct 28, 2010 at 6:27 AM, peely <freeswitch@peely.com> wrote:
Hi,
I'm having problems receiving faxes through the Event Socket API using T.38 and SpanDSP. If I use the example dialplan entry:
<extension name="NTS TESTfax"> <condition field="destination_number" expression="^\+(testfax)"> <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="rxfax" data="/tmp/faxes/FAX-${uuid}.tif"/> <action application="hangup"/> </condition> </extension>
Then everything is OK and a fax is received nicely whereas if I use an ESL command on an answered call like:
SendMsg 5716720c-e291-11df-939c-75e5ad3b2de7 call-command: execute execute-app-name: rxfax execute-app-arg:
{fax_enable_t38_request=true,fax_enable_t38=true,fax_header=testheader,fax_ident=testident}/tmp/faxes/myfax.tif
Then there's lots of T.38 mucking about but the fax terminates with a communications error. I've tried sleeping for 2 seconds, broadcasting silence_stream://2000 etc but to no avail.
Has anyone successfully got T.38 fax receive working through the ESL, and if so, what chain of commands do you execute?
I'm using a GIT trunk circa Oct 15th BTW.
Many thanks,
Neil.
-- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-T-38-fax-receive-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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
Thanks. I'll test this when I have a combination of fax machine and compiler in the same place, but note that I have tried setting the variables in the dialplan entry before calling the ASL application. If I get stuck I'll post some more detailed logs / traces etc. Cheers, Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-T-38-fax-receive-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hi, OK, I set those specifically using SendMsg with the set application, but still nothing happened. After some bashing around though I've figured that the behaviour is slightly different in esl compared to the dialplan. It seems that you MUST not issue an answer followed by the broadcast of silence, instead just call rxfax and let it answer the incoming call, if you don't do this then a T.38 session is never reinvited. It's working perfectly now, thank-you! Regards, Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-T-38-fax-receive-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Interesting behavior. In any case, would you be willing to add this knowledge to the wiki? You can put it on the the mod_spandsp page. Create a section just like this one: http://wiki.freeswitch.org/wiki/Mod_spandsp#Invoking_the_app_from_the_XML_di... ...and call it "Invoking_the_app_from_ESL" Let me know if you have any questions and I will be happy to assist. -MC On Fri, Oct 29, 2010 at 1:27 PM, peely <freeswitch@peely.com> wrote:
Hi,
OK, I set those specifically using SendMsg with the set application, but still nothing happened.
After some bashing around though I've figured that the behaviour is slightly different in esl compared to the dialplan.
It seems that you MUST not issue an answer followed by the broadcast of silence, instead just call rxfax and let it answer the incoming call, if you don't do this then a T.38 session is never reinvited.
It's working perfectly now, thank-you!
Regards,
Neil. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-T-38-fax-receive-... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ 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)
-
Michael Collins
-
peely