[asterisk-dev] RTP Bridging optimization

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Sat May 12 08:27:11 MST 2007


On Saturday 12 May 2007, Vadim Lebedev wrote:
> Joshua Colp wrote:
> > Vadim Lebedev wrote:
> >> I wonder if somebody considered to optimize RTP bridging using
> >> spllice and tee syscalls?
> >
> > While those are indeed cool system calls splice requires at least one
> > of the file descriptors to be a pipe, and tee requires both to be
> > pipes. That's why they haven't been explored.
>
> However in case of simple bridging it's simply an overhead of 2 file
> descriptors (one pipe)
> and in case of 'monitored' (DTMF detection or channel spying) bridging
> the cost is additional 2 fds (one more pipe).
> The pipes are cheap especially when no buffers are allocated for them as
> in case of splice and tee syscalls....

You're certainly welcome, as are all other contributors, to submit a properly
licensed patch via the bugtracker; it will be considered in due time.

-- 
Tilghman


More information about the asterisk-dev mailing list