<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello all,<div><br></div><div>Since a while some of our SIP users complain about gaps (sometimes multiple seconds of silence) in the RX audio stream (direction pbx -> phones). Our configuration is an Asterisk with two&nbsp;Wildcard TE410P cards that are connected with E1 PRI's to an external server running callcenter software. The SIP users use Snom and Polycom phones. The gaps are not present in recordings on the external callcenter server.</div><div><br></div><div>(there are no problems with calls going through the pbx - where rtp also goes through the pbx - that don't use the PRI's)</div><div><br></div><div>I tcpdumped all traffic on various points in the network between the phones and the pbx and noticed that the gaps are already present on the ethernet interface of the pbx, so I ruled out network problems.</div><div>(It's not packetloss, just silence - I converted the pcap files to audio files and listened to it)</div><div><br></div><div>Next step is to see whether the gaps originate on the Asterisk pbx or the external machine, so I wanted to dump traffic directly from the zaptel interface.</div><div><br></div><div>The supplier of our pbx suggested that it may be possible to use a feature of the oslec patch for zaptel (see below), which has a sample utility that can dump a channel to disk. I've been looking through sample.c, but I see there is a maximum sample time at line 97, though I don't see why this maximum exists. The buffers seem to be written to disk every iteration of the for loop, so it shouldn't fill up memory (correct me if I'm wrong).</div><div><br></div><div>Does anyone have any tips or suggestions, whether I can just remove this limit ? Or is there a better way to dump zaptel traffic for later inspection ?</div><div><br></div><div>Thanks and kind regards,</div><div><br></div><div>Leon de Rooij</div><div><a href="mailto:leon@scarlet-internet.nl">leon@scarlet-internet.nl</a></div><div><br></div><div><br></div><div><br></div><div><br></div><div>(&nbsp;<a href="http://www.rowetel.com/ucasterisk/oslec.html%23sample">http://www.rowetel.com/ucasterisk/oslec.html#sample</a>&nbsp;)</div></body></html>