The input thread IO timing seems to be completely based on the endpoint read clock (in FreeTDM case, using hardware timer). The output thread on the other hand uses the soft-timer to time the calls to switch_core_session_write() (and then internally the write will be timed by the hardware timer, again).
I'm seeing some weirdness with my FreeTDM / Dahdi system, where only FreeTDM channels are hearing distortion on conference, and I'm almost certain that this is the culprit, but I have no idea how to proceed to fix it. I'm pretty new to FreeTDM, so I'm hoping that I'm missing something simple. Any thoughts?What kind of distortion exactly?
You may want to use the "ftdm trace" command to record the audio read/written to the TDM endpoint and see if the audio is clean when written to the tdm endopoint.
What sampling rate is your conference? what packetization size? (20ms, 30ms, 40ms??) what kind of hardware are you using?