<div dir="ltr">Moises,<div><br></div><div>Does libsangoma have a way to open a generic socket to get timing from in this manner?</div><div>Ideally if we could get this into mod_freetdm we could make it auto set the timer_name variable in the new channels from the tdm source and have mod_conference auto set the timer as well if the first caller has a certain variable set.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 21, 2013 at 7:48 PM, Bob Hartwig <span dir="ltr">&lt;<a href="mailto:bobjects@gmail.com" target="_blank">bobjects@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">OK, I uploaded this as a tarball to Jira, as an &quot;improvement&quot; issue type, for the FreeSWITCH project.  Here is a paste of the description that I left there, for everyone&#39;s information:<div>
<br>
</div><div><br><div><br></div><div><div class="im"><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 &quot;soft&quot; 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 &quot;mod_dahdi_timer&quot;, 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 &quot;soft&quot; to &quot;dahdi&quot;, and the conference sounds perfectly clean.</div>

<div><br></div></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 &quot;timers/mod_dahdi_timer&quot;</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>- &quot;show timers&quot; - 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 &quot;dahdi&quot;.  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"><div><div class="h5">On Mon, Oct 21, 2013 at 2:59 PM, Moises Silva <span dir="ltr">&lt;<a href="mailto:moises.silva@gmail.com" target="_blank">moises.silva@gmail.com</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 class="h5"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div>On Mon, Oct 21, 2013 at 1:45 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.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 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></div></div><div class="im">_________________________________________________________________________<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-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">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></div></blockquote></div><br></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><br clear="all"><div><br></div>-- <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>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</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="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900
</div>