yes that&#39;s the same as my sleep explanation.<br><br><br><div class="gmail_quote">On Wed, Nov 5, 2008 at 9:11 PM, Johny Kadarisman <span dir="ltr">&lt;<a href="mailto:jkr888@gmail.com">jkr888@gmail.com</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;">Not sure if this is related or something totally different, I used to have dtmf detection problem with inband setup. One side sending digits with send_dtmf, and on the other side, detecting the digits. Both run freeswitch with custom script, and the call go over pstn carrier network. The receiving side always having problem on detecting these dtmf, But then it solved if I played some kind of audio file after &quot;send_dtmf&quot; command. So, I did something like these:<br>

<br>&lt;action application=&quot;send_dtmf&quot; data=&quot;12345#&quot;/&gt;<br>&lt;action application=&quot;playback&quot; data=&quot;sounds/500ms.wav&quot;/&gt;<br><br>Weirds, but at least solved my problem ;)<div><div>
</div><div class="Wj3C7c"><br><br><br>
<pre><br><br><br></pre><br><br><br><div class="gmail_quote">On Wed, Nov 5, 2008 at 4:46 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</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;">you are one email behind i think.<br>Problem is that FS only sends 2833 while it&#39;s busy doing something so you have to keep FS reading audio to trigger the outbound dtmf.<div>

<div></div><div><br><br><br><div class="gmail_quote">On Wed, Nov 5, 2008 at 3:37 PM, Klaus Teller <span dir="ltr">&lt;<a href="mailto:klaus.teller@gmx.net" target="_blank">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;">I&#39;m updating now and will try the flush dtmf. I yet have a hard time understanding how this is related to sending DTMF (instead of reading DTMF). This because:<br>



<br>
1) The same problem appears when i replace sending DTMF with playing an audio file<br>
2) Introducing a delay between READING Dtmf and playing the file prevents the issue to appear.<br>
<br>
Ideas?<br>
<br>
Klaus.<br>
<br>
<br>
<br>
-------- Original-Nachricht --------<br>
&gt; Datum: Wed, 5 Nov 2008 15:24:33 -0600<br>
<div>&gt; Von: &quot;Anthony Minessale&quot; &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;<br>
</div><div><div></div><div>&gt; An: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
&gt; Betreff: Re: [Freeswitch-users] Inband DTMF Problem<br>
<br>
&gt; When you call send dtmf and it&#39;s rfc2833 you must sleep to give it a<br>
&gt; chance<br>
&gt; to send.<br>
&gt; the variable last_dtmf_duration is always set on the channel with how long<br>
&gt; you should execute sleep<br>
&gt; on the channel in the case of 2833<br>
&gt;<br>
&gt; so call send_dtmf<br>
&gt; execute sleep ${last_dtmf_duration}<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Nov 5, 2008 at 3:08 PM, Klaus Teller &lt;<a href="mailto:klaus.teller@gmx.net" target="_blank">klaus.teller@gmx.net</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; OK, we made some progress on this issue. It appears that if we introduce<br>
&gt; &gt; 50ms delay between the reading (not playing) of the DTMF and the playing<br>
&gt; of<br>
&gt; &gt; the file (or the sending of DTMF), the problem doesn&#39;t occur. And if we<br>
&gt; &gt; place many such calls this delay needs to be increased.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; What i suspect is happening is that there is some sort of race condition<br>
&gt; or<br>
&gt; &gt; interference between the event processing part of Freeswitch and the<br>
&gt; &gt; handling of synchronous commands such as sending dtmf. I recall Anthony<br>
&gt; &gt; saying few days ago that event delivery is paused when a command<br>
&gt; execution<br>
&gt; &gt; request arrives. So, would it be possible that command execution<br>
&gt; requests<br>
&gt; &gt; are able to interfere on the deliverying of events?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt; Klaus.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; -------- Original-Nachricht --------<br>
&gt; &gt; &gt; Datum: Wed, 5 Nov 2008 14:35:16 -0600<br>
&gt; &gt; &gt; Von: Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;<br>
&gt; &gt; &gt; An: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
&gt; &gt; &gt; Betreff: Re: [Freeswitch-users] Inband DTMF Problem<br>
&gt; &gt;<br>
&gt; &gt; &gt; Extract the RTP audio into wav/au files in wireshark and lets look at<br>
&gt; &gt; &gt; them.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; /b<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Nov 5, 2008, at 2:30 PM, Klaus Teller wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Hi Anthony,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Let me add some few facts.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; 1) I am sending DTMF using RFC2833 and the IVR is using Inband<br>
&gt; &gt; &gt; &gt; 2) The problem is not limited to when i send DTMF. It also happens<br>
&gt; &gt; &gt; &gt; when i try to play a file.<br>
&gt; &gt; &gt; &gt; 3) The functions are from my java code. They send commands to<br>
&gt; &gt; &gt; &gt; Freeswitch via socket interface.<br>
&gt; &gt; &gt; &gt; 4) The same functions are working perfectly when the remote IVR<br>
&gt; &gt; &gt; &gt; sends DTMF via RFC2833.<br>
&gt; &gt; &gt; &gt; 5) I have a pause of 2000 ms after sending the DTMF.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Let me reformulate my problem. I have a spurious dtmf-# being<br>
&gt; &gt; &gt; &gt; detected by freeswitch where nothing was sent by the other party.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; The strange thing to me is that Wireschark (running on the same<br>
&gt; &gt; &gt; &gt; machine as Freeswitch) detects the proper digit sequence.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Klaus.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Freeswitch-users mailing list<br>
&gt; &gt; &gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; &gt;<br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit<br>
&gt; allen:<br>
&gt; &gt; <a href="http://www.gmx.net/de/go/multimessenger" target="_blank">http://www.gmx.net/de/go/multimessenger</a><br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Freeswitch-users mailing list<br>
&gt; &gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt;<br>
&gt; AIM: anthm<br>
</div></div>&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a> &lt;<a href="mailto:MSN%253Aanthony_minessale@hotmail.com" target="_blank">MSN%3Aanthony_minessale@hotmail.com</a>&gt;<br>


&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a>&lt;<a href="mailto:PAYPAL%253Aanthony.minessale@gmail.com" target="_blank">PAYPAL%3Aanthony.minessale@gmail.com</a>&gt;<br>


<div>&gt; IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
</div>&gt; <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> &lt;<a href="mailto:sip%253A888@conference.freeswitch.org" target="_blank">sip%3A888@conference.freeswitch.org</a>&gt;<br>


<div>&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
</div>&gt; <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a>&lt;<a href="mailto:googletalk%253Aconf%252B888@conference.freeswitch.org" target="_blank">googletalk%3Aconf%2B888@conference.freeswitch.org</a>&gt;<br>



&gt; pstn:213-799-1400<br>
<font color="#888888"><br>
--<br>
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten<br>
Browser-Versionen downloaden: <a href="http://www.gmx.net/de/go/browser" target="_blank">http://www.gmx.net/de/go/browser</a><br>
</font><div><div></div><div><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>


<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br></div></div><div>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>

</div><div>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>

</div><div><a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br></div>pstn:213-799-1400<br>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.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> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>