<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
Thought I would update this for list posterity.<br>
<br>
Although the spandsp_start_dtmf trick seemed to work for me, I soon
discovered that I now had an echo problem, previously banished with
oslec. Indeed, lsmod still showed that oslec was loaded, and
dahdi_cfg claimed that it was enabled for the channels in question.
But when I would make or receive calls through the tdm card, I would
not see the output of "cat /proc/dahdi/1" change. It remained
"OSLEC - INACTIVE." <br>
<br>
I also began poring through the logs (past and present), and soon
realized that freetdm does start a software dtmf detector (and in
fact this had worked in the past). So, there was something else
going on.<br>
<br>
I was trying various things, and looking through the list and docs,
when (seemingly) all of a sudden, the echo went away and now the
dtmf was detecting two keypresses for every single keypress. Ok,
sure, understandable since I had turned on spandsp_dtmf in addition
to freetdm's dtmf detector, but why now? And why did the echo
magically disappear?<br>
<br>
Eventually, I figured out that it was related to me
connecting/disconnecting the fxo port, which I do since I'm using my
home line for testing. Something (freetdm or dahdi, presumably)
doesn't like that. What fixes it is to have the trunk line
connected when the freeswitch server is rebooted. There is
undoubtedly a "smaller hammer" solution, but I haven't figured it
out yet. Just stopping and restarting freeswitch doesn't do it. <br>
<br>
The upshot is that I removed the spandsp_start_dtmf from my
dialplan. Rebooting with the trunk port occupied fixed all of the
sins.<br>
<br>
Tim<br>
<br>
<div class="moz-cite-prefix">On 01/15/2013 12:39 PM, Tim Bock wrote:<br>
</div>
<blockquote cite="mid:50F5B089.3060000@synacktics.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I can tell you how I solved the problem I was having. Don't know
if this is preferred, or if there is a better way, but I'm now
able to detect dtmf from all sources (pstn, cell, sip).<br>
<br>
Apparently, mod spandsp has better dtmf detection than the dtmf
detection in the freeswitch core. On the wiki page for spandsp (<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://wiki.freeswitch.org/wiki/Mod_spandsp">http://wiki.freeswitch.org/wiki/Mod_spandsp</a>),
there is a section on dtmf. I added the spandsp_start_dtmf
parameter before calling the ivr, and that fixed my issue.<br>
<br>
Hope this helps,<br>
Tim<br>
<br>
<div class="moz-cite-prefix">On 01/15/2013 09:02 AM, Viacheslav
Dubrovskyi wrote:<br>
</div>
<blockquote cite="mid:50F57D9F.4050000@tangramltd.com" type="cite">
<pre wrap="">14.01.2013 06:39, Tim Bock пишет:
</pre>
<blockquote type="cite">
<pre wrap="">I have a freeswitch server with a digium tdm wildcard. Compiled,
enabled, and configured freetdm and dahdi...all seems to be working fine
(can make/receive calls).
My problem is with dtmf. When calling from an external pstn number to
freeswitch, dtmf seems to be detected properly and consistently. But
when calling from a cell phone or via another voip line, dtmf doesn't
seem to be detected, or detected only occasionally.
On the same system, if I call into the voip number, calls from any of
the three external options (landline, cell, sip) all seem to work fine
with dtmf.
So the problem seems to be something I've misconfigured with the tdm
card. Can anyone point me in the right direction?
</pre>
</blockquote>
<pre wrap="">Hm. Completely the same problem.
Can someone help?
Here is the log <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://pastebin.freeswitch.org/20447">http://pastebin.freeswitch.org/20447</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tim Bock
Synacktics, LLC
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.synacktics.com">www.synacktics.com</a>
(505)795-1511
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
</body>
</html>