Pretty simple actually...

<?xml version="1.0"?>
<document type="freeswitch/xml">
  <section name="dialplan" description="Regex/XML Dialplan">
    <context name="default">
      <extension name="myextension">
        <condition>
          <action application="enum" data="15555551212"/>
          <action application="set" data="execute_on_answer=lua
uuid_send_dtmf.lua ${uuid} 10 55"/>
          <!-- use this if to wrap just sections you want to test -->
          <action application="tone_detect" data="test 941,1336 rw
+100000 hangup normal_clearing"/>
          <action application="bridge" data="${enum_auto_route}"/> 
          <action application="hangup"/>
        </condition>
      </extension>
    </context>
  </section>
</document>

BTW, this darn tone_detect is something I never could get working.  It
did not matter which side I sent the tone from, it never got trapped by
my test here.  The call never hung up on the tone, a 0.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Michael Collins
Sent: Saturday, December 13, 2008 6:04 PM
To: [email protected]
Subject: Re: [Freeswitch-users] schedule a DTMF tone into bridge

>
> I did this instead of adding an extra extension to transfer to on
> answer.  Everything worked well.  The DTMF was played to the calling
> party.  Out of curiosity, if we wanted also to play the DTMF to the
> called party also, what would we have to give uuid_send_dtmf?
> Particularly since we call it before the bridge.
>

Definitely need the uuid of the leg in question. Could you pastebin or
email a sample dialplan? We could probably work it out together.




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

Reply via email to