[asterisk-dev] RTP Bridging optimization

Vadim Lebedev vadim at mbdsys.com
Sat May 12 08:01:28 MST 2007



Joshua Colp wrote:

> Vadim Lebedev wrote:
>
>> I wonder if somebody considered to optimize RTP bridging using 
>> spllice and tee syscalls?
>>
>> Vadim
>>
>
> 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.
>
Sure,

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....


Vadim


> Joshua Colp
> Software Developer
> Digium, Inc.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>


More information about the asterisk-dev mailing list