<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(&quot;/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&quot;);<br>
s.execute(&quot;send_dtmf&quot;, &quot;0123456789ABCD*#@2000&quot;);<br><div class="Wj3C7c">s.execute(&quot;sleep&quot;, s.getVariable(&quot;last_dtmf_duration&quot;));<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">&lt;<a href="mailto:klaus.teller@gmx.net">klaus.teller@gmx.net</a>&gt;</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&#39;t see how this would help me. I understand queue_dtmf is to be used before bridging. But i&#39;m not bridging calls. I&#39;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>
&gt; Datum: Thu, 11 Sep 2008 11:11:17 -0500<br>
&gt; Von: Brian West &lt;<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>&gt;<br>

<div class="Ih2E3d">&gt; 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>&gt; 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>
&gt; Might want to try queue_dtmf<br>
&gt;<br>
&gt; /b<br>
&gt;<br>
&gt; On Sep 11, 2008, at 11:03 AM, James Green wrote:<br>
&gt;<br>
&gt; &gt; Klaus Teller wrote:<br>
&gt; &gt;&gt; I tried the following but for unknown reason, the caller is not<br>
&gt; &gt;&gt; getting anything:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; JavaSession s = new JavaSession(uuid);<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;s.answer();<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;s.streamFile(&quot;/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&quot;);<br>

&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;s.execute(&quot;send_dtmf&quot;, &quot;0123456789ABCD*#@2000&quot;);<br>
&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;s.hangup();<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I can play the file 1.wav without problem but the &quot;send_dtmf&quot; is<br>
&gt; &gt;&gt; simply being ignored. I used wireshrack to check if maybe the<br>
&gt; &gt;&gt; outbound DTMF was sent and not played by my softphone. But this is<br>
&gt; &gt;&gt; not the case.<br>
&gt; &gt;<br>
&gt; &gt; streamFile() blocks until sound file ends or a DTMF tone is<br>
&gt; &gt; received, as<br>
&gt; &gt; detailed on the wiki:<br>
&gt; &gt;<br>
&gt; &gt; <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>

&gt; &gt;<br>
&gt; &gt; I suspect you want some background music? I&#39;m still trying to get my<br>
&gt; &gt; head around which programming features to use in which circumstances,<br>
&gt; &gt; something I&#39;ve not found any clear high level guide on yet.<br>
&gt; &gt; &lt;james_green.vcf&gt;_______________________________________________<br>
&gt; &gt; <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>
&gt; &gt; <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>

&gt; &gt; <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>

&gt; &gt; 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>

&gt; &gt; <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>

&gt;<br>
&gt; Brian West<br>
&gt; <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>

&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; <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>
&gt; <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>

&gt; <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>

&gt; 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>

&gt; <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>