<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 12:44 PM, Peter Volchek <span dir="ltr"><<a href="mailto:pvolchek@voicemobility.com">pvolchek@voicemobility.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Well, the problem with the dialplan is that you could have a single
entry per application.<br>
However, if your mailbox is capable of receiving both the voice and fax
messages, then the decision which one to take should be taken inside
your application.<br>
<br>
In other words, I do have the following in my dialplan:<br>
<br>
<tt> <extension name="main_entry"><br>
<condition field="destination_number"
expression="^(7[0-9][0-9][0-9][0-9])$"><br>
<action application="lua"
data="/home/freeswitch/scripts/app/main.lua"/><br>
</condition><br>
</extension><br>
</tt><br>
All calls to the #s 70000-7999 are directed to main.lua scrtipt. The
call is answered prompt then, is being played, "Please leave a voice
message or fax".<br>
Now, I need a way to catch a fax tone, if exists, and route my code
flow to the appropriate function.<br>
Note, that the sender may hit 'Send' upon listening the prompt, in
other words, the fax negotiation will not start immediately.<br>
Does it all make sense?<br></div></blockquote><div><br>Yep. In either case you need to turn on tone_detect at some point, so you can do it in your script or in your dialplan. <br>-MC<br></div></div><br>