Frank, I found a simple way to handle this scenario. I decided just to create a small Lua script that would do the job. It's committed in latest trunk. Look in src/scripts/contrib/mcollins for uuid_send_dtmf.lua. It has comments on how to call it, including a sample dp call.
The way I would use this in your scenario is to setup a destination using the execute_on_answer variable. http://wiki.freeswitch.org/wiki/Channel_Variables#execute_on_answer Have the destination be an extension that does something like this: <extension...> <condition...> <action application="answer"/> <action application="lua" data="uuid_send_dtmf ${uuid} 10 123"/> ...rest of diaplan... </condition> </extension> The 10 means ten seconds, the 123 means send the dtmf digits 1,2,3 in order. You can tinker with the settings as you see fit. Please let me know how it goes. BTW, be sure to put the Lua script in /usr/local/freeswitch/scripts or specify the complete path name when calling the lua app in the dialplan. -MC On Fri, Dec 12, 2008 at 7:37 PM, Frank @ Impact <fr...@impactfax.com> wrote: > Not much written in the wiki on this. Also searched the list and not much > on either sched_api or uuid_send_dtmf. > > So from an xml dialplan, can sched_api as an application? > > Is there any way to have the time offset reference the point at which the > call started ? ie. When the called party answers? > > > > Ultimately, I was trying to insert some xml into my dial plan that would > play a dtmf tone 10 seconds after the called party picked up the phone. But > from the little that has been written so far that I can find, it is not > clear to me how to piece this together. Am I being dense and missing > anything that has already been written? > > > > /f > > -----Original Message----- > From: freeswitch-users-boun...@lists.freeswitch.org > [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian > West > > sched_api (hint uuid_send_dtmf) > > > > API CALL [sched_api()] output: > > -ERR Invalid syntax. USAGE: [...@]<time> <group_name> <command_string> > > > > > > /b > > > > On Dec 12, 2008, at 5:51 PM, Frank @ Impact wrote: > > Is there a way to schedule a certain DTMF tone to be played into a bridge > (both a and b legs) after a scheduled number of seconds into the call? > > _______________________________________________ > > > > > _______________________________________________ > Freeswitch-users mailing list > Freeswitch-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org