I discussed with Mike Jerris some days ago, and as I pointed out we need to be able to tell the duration of the DTMF. At this point libteletone does not help with that (AFAIK), so we need to investigate and fix it. Just haven&#39;t found the time to do it. Help is welcomed :-) <br>
<br><div class="gmail_quote">On Thu, Aug 20, 2009 at 1:58 AM, Alex Green <span dir="ltr">&lt;<a href="mailto:alexg@etherstack.com">alexg@etherstack.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Any thought on the email below? I would imagine that passing an analog<br>
call through freeswitch is not too uncommon a use-case...<br>
<div class="im"><br>
<br>
&gt;     4.: Potential bug:<br>
&gt;     DTMF digit detection *eats some audio* each time a digit is detected. If<br>
&gt;     the device is connected directly to free switch this is not a problem.<br>
&gt;     If a device makes a call through freeswitch (to let&#39;s say phone banking)<br>
&gt;     a digit that is held down may be detected as 3 digits (sometimes more)<br>
&gt;     due to the consumed audio. This can be heard on the other side of<br>
&gt;     freeswitch as a start-stop at the start of the DTMF.<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; Indeed ZAP_CHANNEL_SUPRESS_DTMF causes zap_channel_read to memset the<br>
&gt; read data each time a digit hit is found. The problem is that there is<br>
&gt; no DTMF_START and DTMF_END events and the DTMF length is lost, we just<br>
&gt; have a plain DTMF event for the start. Not sure about how to use<br>
&gt; libteletone to detect the DTMF end though.<br>
 &gt;<br>
DTMF suppression is mangling the digits.<br>
It took me a while to get to the bottom of this, but it turns out to be<br>
very easy to reproduce. Take Freeswitch with an FXS port and a handset.<br>
Dial 1000 on the handset and answer the call on a SIP client. Now hold<br>
down a digit. You will notice that the digit has a wobble at the start.<br>
This is the symptom.<br>
<br>
Commenting out the DTMF suppression code, changes the behaviour but does<br>
not fix the problem. This is what baffled me for a while. I wrote some<br>
trivial code that bridges two analog channels by doing a<br>
zap_channel_read/write() from one to the other. Commenting out the<br>
memset() on line 2042 of zap_io.c produced perfect digits while<br>
</div>uncommenting it produced the wobble. The obvious conclusion is that the<br>
<div class="im">dodgy digit suppression is being attempted somewhere else (like the SIP<br>
side?) and thus the wobble is being introduced at more than one place.<br>
This also explains why I (non scientifically) noticed that the more<br>
times the call passed through Freeswitch the more incorrectly recognised<br>
digits were reported at the final point.<br>
<br>
I imagine that a solution might be to just turn off DTMF digit<br>
suppression by default until it is fixed.<br>
<br>
Cheers, -alex<br>
<br>
<br>
&gt; Anthony, Mike? care to comment about this one?<br>
&gt;<br>
&gt; --<br>
</div><div><div></div><div class="h5">&gt; Moises Silva<br>
&gt; Software Developer<br>
&gt; Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R<br>
&gt; 9T3 Canada<br>
&gt; t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a> &lt;mailto:<a href="mailto:moy@sangoma.com">moy@sangoma.com</a>&gt;<br>
<br>
_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</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>Moises Silva<br>Software Developer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>