Could you provide with some examples how to do it within lua script, please? I was not able to find any examples myself,

Michael Collins wrote:


On Wed, Oct 14, 2009 at 12:44 PM, Peter Volchek <[email protected]> wrote:
Well, the problem with the dialplan is that you could have a single entry per application.
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.

In other words, I do have the following in my dialplan:

    <extension name="main_entry">
      <condition field="destination_number" _expression_="^(7[0-9][0-9][0-9][0-9])$">
        <action application="lua" data=""/>
      </condition>
    </extension>

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".
Now, I need a way to catch a fax tone, if exists, and route my code flow to the appropriate function.
Note, that the sender may hit 'Send' upon listening the prompt, in other words, the fax negotiation will not start immediately.
Does it all make sense?

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.
-MC


_______________________________________________ FreeSWITCH-dev mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org



_______________________________________________
FreeSWITCH-dev mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org

Reply via email to