[asterisk-dev] Implementing Native Bridging in a DAHDI kernel driver

Matthew Jordan mjordan at digium.com
Thu Dec 24 07:40:07 CST 2015


On Wed, Dec 23, 2015 at 10:27 PM, Fábio Urquiza <flus at cesar.org.br> wrote:

> Hi Matthew. I'm current working on the last 11 version.
>
>
Assuming you want to create a two-party 'native' bridge at the Asterisk
level, then you'll want to look into the 'bridge' channel driver callback
in chan_dahdi as an example to follow. Asterisk will call this channel
driver callback with the two channels that are bridged together. In
Asterisk 11, chan_dahdi performs the reads on the DAHDI channels and - when
a FD on one channel indicates there is data - directly writes the received
data from DAHDI out to the other DAHDI channel with no decoding.

Note that in Asterisk 12+, this mechanism changed. Instead of using a
channel driver callback, a bridging framework is used. That bridging
framework has a pluggable interface, allowing a native bridging technology
to be written in a separate module (outside of the channel driver) and
selected based on criteria it presents to the core. The DAHDI native
bridging is now implemented in the bridge_native_dahdi module.

Matt

-- 
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20151224/2be00761/attachment.html>


More information about the asterisk-dev mailing list