<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi folks,<div class=""><br class=""></div><div class="">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:</div><div class=""><br class=""></div><div class="">originate {<_bunch_of_headers_>} <a href="mailto:sofia/service/+4812345678@some.domain" class="">sofia/service/+4812345678@some.domain</a>;user=phone &txfax(<_tiff_file_path_>) XML <_some_profile_></div><div class=""><br class=""></div><div class="">What I’d like to do is to add possibility to dial some other extension number. Lest’s say fax is available on <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">+4812345678 but when the call is aswered there needs to be dialed number 123.</span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><font color="#000000" class="">I’ve already reviewed all FreeSwitch books on safaribooks,  googled but I haven't found any example… :-/ </font></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Maybe it is enough to simply add it to the call url - I mean something like:</span></div><div class=""><font color="#000000" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class=""></span></font></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">originate {<_bunch_of_headers_></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">} </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">sofia/service/+4812345678,,<a href="mailto:123@some.domain" class="">123@some.domain</a>;user=phone &txfax(<_tiff_file_path_>) XML <_some_profile_></span></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><font color="#000000" class=""><span style="caret-color: rgb(255, 255, 255);" class="">Can you give me some hint how to do that?</span></font></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><font color="#000000" class=""><span style="caret-color: rgb(255, 255, 255);" class=""><br class=""></span></font></div></div><div style="color: rgb(0, 0, 0);" class=""><span style="caret-color: rgb(255, 255, 255);" class="">Thanks in advance,</span></div><div style="color: rgb(0, 0, 0);" class=""><span style="caret-color: rgb(255, 255, 255);" class="">Grzegorz</span></div></body></html>