<div dir="ltr">OK, I uploaded this as a tarball to Jira, as an "improvement" issue type, for the FreeSWITCH project. Here is a paste of the description that I left there, for everyone's information:<div><br>
</div><div><br><div><br></div><div><div>I ran across a problem with a Dahdi-based FreeTDM system a few weeks ago. Because the timer for mod_conference was not synchronized to the T1 clock source, there was significant periodic on-conference noise. The problem was not that the "soft" timer was inaccurate; on the contrary, it was a very accurate 1 mS timer in a system that had a pretty inaccurate T1 clock coming in.</div>
<div><br></div><div>My solution was to create a new "mod_dahdi_timer", which derives the ~1 mS timer from 8 ticks of the 8 kHz /dev/dahdi/timer device. Then a one-line change to mod_conference.c to change "soft" to "dahdi", and the conference sounds perfectly clean.</div>
<div><br></div><div>Installation guidelines:</div><div><br></div><div>- Untar the tarball under the freeswitch source directory</div><div>- Before ./configure build step, edit modules.conf, adding a line for "timers/mod_dahdi_timer"</div>
<div>- Build as usual</div><div>- Add a line to modules.conf.xml enabling mod_dahdi_timer</div><div><br></div><div>Testing the timer:</div><div>- Only do this if you have a Dahdi T1 board installed and configured with dahdi_cfg.</div>
<div>- "show timers" - verify that the new dahdi timer shows up.</div><div>- timer_test 10 10 dahdi</div><div>- timer_test 20 10 dahdi</div><div>- timer_test 40 10 dahdi</div><div>- timer_test 60 10 dahdi</div><div>
- timer_test 120 10 dahdi</div><div><br></div><div>Using the timer:</div><div>- Into any config that allows for specifying a timer name, use "dahdi". This is especially useful for mod_conference.</div><div><br>
</div><div>Todo:</div><div>- See TODO comments in mod_dahdi_timer.c . Exception handling may not be robust, and may fail spectacularly in systems with no configured Dahdi T1 board.</div><div>- Comments at the top of mod_dahdi_timer.c may need to be expanded to include the normal FreeSWITCH copyright notices, etc.</div>
</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 2:59 PM, Moises Silva <span dir="ltr"><<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div class="im">On Mon, Oct 21, 2013 at 1:45 PM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Or for that matter, to put it right in to mod_freetdm.</div></blockquote><div><br></div>
</div><div>Agreed, that would be better.</div><div><br></div><div>Moy</div></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-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>
<br></blockquote></div><br></div>