I'm not sure I understand your application, but a few years back Tony added this dp app:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_wait_for_silence

You could use that to wait for silence. After that I guess you could use this to send your DTMFs:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_send_dtmf

-MC

On Fri, Nov 26, 2010 at 7:20 AM, Will Smith <willbelair@yahoo.com> wrote:
hi, I am working on a small app that will tap to a line to record conversation. After dialing the number, I need to send username and password. Here I need to send dtmf signal (in javascript). I tried

if(session.ready()){
session.execute("queue_dtmf", "12345");
}

but looks like I did that wrong.

Also, I need to detect if there is a silence at the beginning, or in other words, if there is a conversation happening or not, I try to use the function session.recordFile(...) and try to make use of the silencehits value. I am not sure that is the right way to do, and there is a good way to do that.

Thank you for all your help.

Will



_______________________________________________
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