<div dir="ltr">problem is if this is over sip, the dtmf is queued into the rtp stack and sent in real time as the call progresses.<br>Since you are hanging up right away, it never gets a chance to send it.<br>you must sleep long enough for the entire tone to be sent.<br>
<br>I added a convicence variable set once you call send_dtmf that will tell you how long to sleep<br>until all of the digits should be sent.<br><br>update to latest trunk and try this:<br><br>JavaSession s = new JavaSession(uuid);<br>
s.answer();<br>s.streamFile("/usr/local/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch/sounds/1.wav");<br>
s.execute("send_dtmf", "0123456789ABCD*#@2000");<br><div class="Wj3C7c">s.execute("sleep", s.getVariable("last_dtmf_duration"));<br>s.hangup();<br>
</div><br><br><br><div class="gmail_quote">On Thu, Sep 11, 2008 at 11:43 AM, Klaus Teller <span dir="ltr"><<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
HI Brian,<br>
<br>
Thanks for your suggestion. I just don't see how this would help me. I understand queue_dtmf is to be used before bridging. But i'm not bridging calls. I'm just originating calls and interacting with the remote device. What i really want is the inverse of getDigits() that you can call anytime in the call to send DTMFs. The Asterisk equivalent to what i need would be SendDTMF.<br>
<br>
Any further idea?<br>
<br>
Klaus.<br>
<br>
<br>
<br>
-------- Original-Nachricht --------<br>
> Datum: Thu, 11 Sep 2008 11:11:17 -0500<br>
> Von: Brian West <<a href="mailto:brian@freeswitch.org">brian@<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a>><br>
<div class="Ih2E3d">> An: <a href="mailto:freeswitch-users@lists.freeswitch.org"><span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users@lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
</div>> Betreff: Re: [<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users] DTMF Reading and Playing<br>
<div><div></div><div class="Wj3C7c"><br>
> Might want to try queue_dtmf<br>
><br>
> /b<br>
><br>
> On Sep 11, 2008, at 11:03 AM, James Green wrote:<br>
><br>
> > Klaus Teller wrote:<br>
> >> I tried the following but for unknown reason, the caller is not<br>
> >> getting anything:<br>
> >><br>
> >><br>
> >> JavaSession s = new JavaSession(uuid);<br>
> >> s.answer();<br>
> >> s.streamFile("/usr/local/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch/sounds/1.wav");<br>
> >> s.execute("send_dtmf", "0123456789ABCD*#@2000");<br>
> >> s.hangup();<br>
> >><br>
> >><br>
> >> I can play the file 1.wav without problem but the "send_dtmf" is<br>
> >> simply being ignored. I used wireshrack to check if maybe the<br>
> >> outbound DTMF was sent and not played by my softphone. But this is<br>
> >> not the case.<br>
> ><br>
> > streamFile() blocks until sound file ends or a DTMF tone is<br>
> > received, as<br>
> > detailed on the wiki:<br>
> ><br>
> > <a href="http://wiki.freeswitch.org/wiki/Session_streamFile" target="_blank">http://wiki.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/wiki/Session_streamFile</a><br>
> ><br>
> > I suspect you want some background music? I'm still trying to get my<br>
> > head around which programming features to use in which circumstances,<br>
> > something I've not found any clear high level guide on yet.<br>
> > <james_green.vcf>_______________________________________________<br>
> > <span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org"><span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users@lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/mailman/listinfo/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/mailman/options/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
><br>
> Brian West<br>
> <a href="mailto:sip%3Abrian@freeswitch.org">sip:brian@<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> <span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org"><span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users@lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/mailman/listinfo/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/mailman/options/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
<br>
</div></div><font color="#888888">--<br>
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</a><br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org"><span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">Frees</span>witch-users@lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/mailman/listinfo/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org/mailman/options/<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br><span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">FreeS</span>WITCH <a href="http://www">http://www</a>.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span><a href="http://witch.org/">witch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span>witch<br><br>
<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">FreeS</span>WITCH Developer Conference<br>sip:888@conference.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span><a href="http://witch.org">witch.org</a><br>
iax:guest@conference.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span><a href="http://witch.org/888">witch.org/888</a><br>
googletalk:conf+888@conference.<span class="__mozilla-findbar-search" style="padding: 0pt; background-color: yellow; color: black; display: inline; font-size: inherit;">frees</span><a href="http://witch.org">witch.org</a><br>
pstn:213-799-1400<br>
</div>