<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=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Hi folks,</span><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">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="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">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="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">What I’d like to do is to add possibility to dial some other extension number. Lest’s say fax is available on <span class="">+4812345678 but when the call is aswered there needs to be dialed number 123.</span></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span class=""><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><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="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span class=""><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span class="">Maybe it is enough to simply add it to the call url - I mean something like:</span></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><font color="#000000" class=""><br class=""></font></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span class="">originate {<_bunch_of_headers_></span><span class="">} </span><span 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="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span class=""><br class=""></span></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><div class=""><font color="#000000" class=""><span class="" style="caret-color: rgb(255, 255, 255);">Can you give me some hint how to do that?</span></font></div><div class=""><font color="#000000" class=""><span class="" style="caret-color: rgb(255, 255, 255);"><br class=""></span></font></div></div><div class="" style="color: rgb(0, 0, 0);"><span class="" style="caret-color: rgb(255, 255, 255);">Thanks in advance,</span></div><div class="" style="color: rgb(0, 0, 0);"><span class="" style="caret-color: rgb(255, 255, 255);">Grzegorz</span></div></body></html>