Yes, i understand that streamFile blocks. And i indeed want to play the DTMF after the file is streamed. But playing the DTMF doesn't work. I have also tried removing streamFile without better result. Is there maybe a specific mod that is should install to have send_dtmf work?
I also tried the following with javascript, but without sucess: session.answer(); session.execute("send_dtmf","[EMAIL PROTECTED]"); session.hangup(); Thanks, Klaus. -------- Original-Nachricht -------- > Datum: Thu, 11 Sep 2008 17:03:43 +0100 > Von: James Green <[EMAIL PROTECTED]> > An: freeswitch-users@lists.freeswitch.org > Betreff: Re: [Freeswitch-users] DTMF Reading and Playing > Klaus Teller wrote: > > I tried the following but for unknown reason, the caller is not getting > anything: > > > > > > JavaSession s = new JavaSession(uuid); > > s.answer(); > > s.streamFile("/usr/local/freeswitch/sounds/1.wav"); > > s.execute("send_dtmf", "[EMAIL PROTECTED]"); > > s.hangup(); > > > > > > I can play the file 1.wav without problem but the "send_dtmf" is simply > being ignored. I used wireshrack to check if maybe the outbound DTMF was > sent and not played by my softphone. But this is not the case. > > streamFile() blocks until sound file ends or a DTMF tone is received, as > detailed on the wiki: > > http://wiki.freeswitch.org/wiki/Session_streamFile > > I suspect you want some background music? I'm still trying to get my > head around which programming features to use in which circumstances, > something I've not found any clear high level guide on yet. -- GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion! http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196 _______________________________________________ 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