<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>Thanks Steven..!!<br><br></div>The start and stop just while making play_and_get_digits did the trick, below is the sample used in perl ESL. <br><br><span style="font-family:courier new,monospace">$conn-&gt;execute(&quot;spandsp_start_dtmf&quot;);<br>

$conn-&gt;execute(&quot;play_and_get_digits&quot;,&quot;1 1 1 9000 * play.wav wrong.wav $val [123]&quot;);<br>$conn-&gt;execute(&quot;spandsp_stop_dtmf&quot;);<br></span><br></div>However when using the same when detecting multiple dtmf results in duplicate dtmf sequence, (sample below ) <br>

<br></div><br><span style="font-family:courier new,monospace">$conn-&gt;execute(&quot;spandsp_start_dtmf&quot;);<br>$conn-&gt;execute(&quot;play_and_get_digits&quot;,&quot;6 6 1 9000 * play.wav wrong.wav $val [123]&quot;);<br>

$conn-&gt;execute(&quot;spandsp_stop_dtmf&quot;);<br></span></div><span style="font-family:courier new,monospace"></span><br></div>For the above example when i press 123 i am receiving 112233. Found on <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_start_dtmf">wiki</a> about such repetitive DTMF but is there any way to stop the default inband DTMF detection already going on. <br>

<br></div>I have already tried calling stop_dtmf before starting spandsp_start_dtmf but no luck. :(<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 23, 2014 at 5:15 PM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">

What i found after enabling mod_spandsp is that it tries to evaluate frequencies from entire audio</blockquote>

<div><br></div></div><div>How else would it detect inband DTMF which could happen at any time during the call?</div><div><br></div><div>If you don&#39;t care about DTMF after a certain point you can call spandsp_stop_dtmf later.</div>



</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 23 April 2014 11:46, Manish Kumar <span dir="ltr">&lt;<a href="mailto:manish.kumar.fs@gmail.com" target="_blank">manish.kumar.fs@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Brian, <br><br></div>Thanks for your reply, <br><br></div>We are only using <b>Sangoma cards without echo cancellation</b>, so we are already using our systems with hardware dtmf detection as disabled  ( TDMV_HW_DTMF = NO). <br>





<br></div>Instead we tried on spare <b>Sangoma card with echo cancellation</b> and hardware detection enabled ( TDMV_HW_DTMF = YES) and found no issues. However if i go with this solution then it would need me to replace more than 100 cards. :( <br>





<br></div>Using mod_spandsp with the below dialplan example results in more wierd results, i just pressed key 5 and received 4,5 and 8 DTMF on console. <b>Please suggest if DTMF detection has any more configuration inside spandsp.conf.xml.</b> <br>





<br><span style="font-family:courier new,monospace">&lt;extension name=&quot;park_for_dtmf&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;park_for_dtmf&quot;&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;dtmf_verbose=true&quot;/&gt;<br>





        &lt;action application=&quot;spandsp_start_dtmf&quot; /&gt;<br>        &lt;action application=&quot;park&quot;/&gt;<br>    &lt;/condition&gt;<br> &lt;/extension&gt;<br></span><br><div><div><div>What i found after enabling mod_spandsp is that it tries to evaluate frequencies from entire audio. which in my case can be resource intensive as we do lakhs of calls per day and have 32E1s on single machine. <br>





</div><div><br><br><br><br><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Apr 23, 2014 at 12:57 AM, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Disable the hardware dtmf detector and use the SpanDSP one.<br>
--<br>
Brian West<br>
<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>
FreeSWITCH Solutions, LLC<br>
PO BOX 2531<br>
Brookfield, WI 53008-2531<br>
Twitter: @FreeSWITCH , @briankwest<br>
<a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br>
<a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a><br>
<br>
T: <a href="tel:%2B1.918.420.9001" value="+19184209001" target="_blank">+1.918.420.9001</a>  |  F: <a href="tel:%2B1.918.420.9002" value="+19184209002" target="_blank">+1.918.420.9002</a>  |  M: +1.918.424.WEST<br>
iNUM: <a href="tel:%2B883%205100%201420%209001" value="+883510014209001" target="_blank">+883 5100 1420 9001</a><br>
ISN: 410*543<br>
Skype:briankwest<br>
PGP Key: <a href="http://www.bkw.org:81/key.txt" target="_blank">http://www.bkw.org:81/key.txt</a> (AB93356707C76CED)<br>
<div><div><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Apr 22, 2014, at 8:50 AM, Manish Kumar &lt;<a href="mailto:manish.kumar.fs@gmail.com" target="_blank">manish.kumar.fs@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am facing an issue where DTMF digits are wrongly captured or getting entirely missed from being detected.<br>
&gt;<br>
&gt; Environment:<br>
&gt; Sangoma A116 / A108<br>
&gt; Freeswitch Version 1.2.14<br>
&gt; mod_freetdm<br>
&gt; perl ivr scripts using perl ESL<br>
&gt; PRI lines from Indian operator.<br>
&gt;<br>
&gt; However the same script and same configuration works perfectly well on Freeswitch version 1.0.7. Also none of the versions gave any issue when i test by simply using mod_sofia and an extension on x-lite.<br>
&gt;<br>
&gt; I viewed the entire change logs from version 1.0.7 till 1.2.14, there are no changes on DTMF since 1.0.7<br>
&gt;<br>
&gt; Are there any possibilities that telco plays a role as well in such DTMF issues.?<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
<br>
</div></div><br></div></div><div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>