Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Fax to an extension of B leg


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
grzegorz at orzel.io
Guest





PostPosted: Fri Feb 26, 2021 1:50 pm    Post subject: [Freeswitch-users] Fax to an extension of B leg Reply with quote

Hi folks,
I have a FreeSwitch serving multiple services. One of them is fax2mail/mail2fax. Logic is implemented as a set of lua scripts and it works fine. I’d like extend mail2fax direction. Currently it (lua script) picks number B, tiff file and sends it directly to B using command originate as follows:

originate {<_bunch_of_headers_>} sofia/service/+4812345678@some.domain ([email]sofia/service/+4812345678@some.domain[/email]);user=phone &txfax(<_tiff_file_path_>) XML <_some_profile_>

What I’d like to do is to add possibility to dial some other extension number. Lest’s say fax is available on +4812345678 but when the call is aswered there needs to be dialed number 123.

I’ve already reviewed all FreeSwitch books on safaribooks, googled but I haven't found any example… :-/

Maybe it is enough to simply add it to the call url - I mean something like:

originate {<_bunch_of_headers_>} sofia/service/+4812345678,,123@some.domain (123@some.domain);user=phone &txfax(<_tiff_file_path_>) XML <_some_profile_>

Can you give me some hint how to do that?


Thanks in advance,
Grzegorz
Back to top
brian at freeswitch.com
Guest





PostPosted: Fri Feb 26, 2021 3:31 pm    Post subject: [Freeswitch-users] Fax to an extension of B leg Reply with quote

Review this, it may give you a road map https://raw.githubusercontent.com/signalwire/freeswitch/master/scripts/perl/fax.cgi

The key here is ignore_early_media=true, you don't want to be in the txfax app until the remote answers, because you are in a chicken egg scenario where the fax will fail or t.38 will fail as it will attempt to do so before the other party answers.


/b


On Fri, Feb 26, 2021 at 12:52 PM Grzegorz Orzeł <grzegorz@orzel.io (grzegorz@orzel.io)> wrote:

Quote:
Hi folks,

I have a FreeSwitch serving multiple services. One of them is fax2mail/mail2fax. Logic is implemented as a set of lua scripts and it works fine. I’d like extend mail2fax direction. Currently it (lua script) picks number B, tiff file and sends it directly to B using command originate as follows:


originate {<_bunch_of_headers_>} sofia/service/+4812345678@some.domain ([email]sofia/service/+4812345678@some.domain[/email]);user=phone &txfax(<_tiff_file_path_>) XML <_some_profile_>


What I’d like to do is to add possibility to dial some other extension number. Lest’s say fax is available on +4812345678 but when the call is aswered there needs to be dialed number 123.


I’ve already reviewed all FreeSwitch books on safaribooks,  googled but I haven't found any example… :-/ 


Maybe it is enough to simply add it to the call url - I mean something like:


originate {<_bunch_of_headers_>} sofia/service/+4812345678,,123@some.domain (123@some.domain);user=phone &txfax(<_tiff_file_path_>) XML <_some_profile_>


Can you give me some hint how to do that?



Thanks in advance,
Grzegorz

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services