<div>The only jitter buffers that matter in your diagram are the SIP ATA and Media Gateway. Both should have jitter buffers at the point where they convert RTP to PCM. If adding a jitter buffer inside the network path somewhere helps then something else is broken.
</div>
<div>&nbsp;</div>
<div>Mark<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 10/27/05, <b class="gmail_sendername">Ray Van Dolson</b> &lt;<a href="mailto:rayvd@digitalpath.net">rayvd@digitalpath.net</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><a href="http://webdev.digitalpath.net/~rayvd/voice/ser_asterisk.cfg">http://webdev.digitalpath.net/~rayvd/voice/ser_asterisk.cfg
</a><br><br>Is my Asterisk configuration file.<br><br>Basically:<br><br>[SIP ATA] &lt;--- <a href="http://172.25.163.0/24">172.25.163.0/24</a> IP<br><br>[Customer CPE] &lt;--- <a href="http://10.0.0.0/8">10.0.0.0/8</a> IP
<br><br>[SER] &lt;--- <a href="http://10.0.0.0/8">10.0.0.0/8</a> IP and Public Internet IP<br><br>[Asterisk] &lt;--- Public Internet IP<br><br>Asterisk and SER are usually far from each other.<br><br>In my setup, Asterisk normally talks to my ISP's SIP/PSTN gateway and then
<br>passes RTP on to my ISP's media gateway.&nbsp;&nbsp;So the normal flow of RTP is:<br><br>SIP ATA -&gt; SER -&gt; Asterisk -&gt; Media Gateway -&gt; PSTN<br><br>Some of our internet connections between SER and Asterisk can be a bit
<br>finnicky at times and introduce jitter.&nbsp;&nbsp;Since Asterisk doesn't have a<br>(working) jitter buffer currently, any benefits from the jitter buffer on my<br>ISP's Media Gateway cannot really be realized.<br><br>So I set up the config as in my cfg above and set canreinvite to yes for the
<br>ATA in my sip.conf on Asterisk (also make sure your Dial() in Asterisk's<br>extensions.conf doesn't have a t or T in the flags list).&nbsp;&nbsp;Then the following<br>happens:<br><br>1. I make a call from my SIP ATA to a PSTN number.
<br>2. INVITE to SER<br>3. Normal negotiation happens. RTP is flowing as in my original flow above<br>&nbsp;&nbsp;(with Asterisk in the media path)<br>4. Asterisk now sends an INVITE to SER with an SDP payload specifying the IP<br>
&nbsp;&nbsp;of my ISP's media gateway.&nbsp;&nbsp;This is a public out on the Internet.<br>5. This requests hits the loose route portion of my route {} block.<br>6. I rewrite the media IP to the <a href="http://10.0.0.0/8">10.0.0.0/8</a> IP on my SER server, but also
<br>&nbsp;&nbsp;specify the &quot;R&quot; flag to &quot;trust&quot; the IP originially passed by Asterisk.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This allows SER to shift it's RTP stream to the Media Gateway's IP<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address.<br>7. I use t_on_reply(2) because I want the reply from my SIP ATA for this
<br>&nbsp;&nbsp;re-INVITE to hit my onreply_route[2] function.<br>8. The re-INVITE goes out to the SIP ATA and back comes the 200 OK response<br>&nbsp;&nbsp;with an SDP payload.&nbsp;&nbsp;This reply hits onreply_route[2] and I fix the media<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;source IP here to have the IP of the SER server.
<br><br>At this point, Asterisk is now out of the media path completely!<br><br>Hope that was somewhat helpful.&nbsp;&nbsp;Don't frown too much on my messy ser.cfg<br>file. :-)<br><br>Ray<br><br>On Fri, Oct 28, 2005 at 11:58:22AM +1300, Patrick Jordan-Smith wrote:
<br>&gt; Hi Ray,<br>&gt;<br>&gt; Can you tell the rest of us how you did it?<br>&gt;<br>&gt; Ta,<br>&gt; Pat<br><br>_______________________________________________<br>Serusers mailing list<br><a href="mailto:Serusers@iptel.org">
serusers@lists.iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a><br></blockquote></div><br>